Function at 0x497960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c77bc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x3c], eax
cmp byte [ebp + 0x24], 1
mov dword [ebp - 4], 0
jne 0x497aa9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax], 0x3c
je 0x497aa9
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62b1bc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x62a710]
cmp eax, dword [ecx + 4]
jg 0x497c83
cmp byte [ebp + 0x24], 1
jne 0x497ccb
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x62a630
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0049f800
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x497aa6
xor ecx, ecx
mov dword [ebp - 0x1c], 0
push eax
push dword [ebp - 0x48]
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.0040612d
mov dword [ebp - 0x14], 0
mov al, byte [ebp + 0x24]
movsx ecx, al
mov byte [ebp - 4], 2
cmp ecx, 1
jne 0x497a62
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp + 8]
push eax
call fcn.0040612d
jmp 0x497a9a
mov byte [ebp - 4], 3
test al, al
js 0x497a82
mov eax, dword [ecx*4 + 0x5d0d70]
lea ecx, [ebp - 0x2d]
push ecx
lea ecx, [ebp + 8]
mov byte [ebp - 0x2d], 0
push ecx
call eax
add esp, 8
lea eax, [ebp - 0x2c]
mov byte [ebp + 0x24], 0xff
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040b8db
mov byte [ebp + 0x24], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00405f7b
mov edx, dword [ebp - 0x34]
movsx ecx, byte [ebp + 0x24]
cmp ecx, 1
jne 0x497b62
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax], 0x3c
jne 0x497b37
cmp ecx, ecx
jne 0x497ccb
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, edx
push eax
call fcn.00494930
test al, al
jne 0x497c6b
xor esi, esi
mov al, byte [ebp + 0x24]
mov dword [ebp - 4], 4
test al, al
js 0x497b18
movsx eax, al
lea ecx, [ebp - 0x2d]
push ecx
lea ecx, [ebp + 8]
mov byte [ebp - 0x2d], 0
push ecx
mov eax, dword [eax*4 + 0x5d0d70]
call eax
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret 0x34
cmp ecx, 1
jne 0x497ccb
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, edx
push eax
call fcn.004949c0
test al, al
jne 0x497c6b
jmp 0x497aed
mov esi, dword [edx + 0x88]
test esi, esi
jne 0x497b73
call fcn.00474880
mov esi, eax
movsx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x497ccb
push dword [ebp + 0x28]
movzx eax, word [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x497aed
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
push edi
test eax, eax
jne 0x497bb3
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x497aed
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x30]
push esi
mov dword [ecx + 0x68], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x38]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push esi
mov esi, dword [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00494f50
test al, al
je 0x497aed
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp + 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
push dword [ebp + 0x28]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
add esi, 0x6c
mov word [ebp - 0x28], ax
call fcn.0040612d
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x497c31
mov ecx, esi
call fcn.00406228
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
jmp 0x497c6b
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x497c6b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497c61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497cf0
push edx
push ecx
call fcn.00539e76
add esp, 8
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x40]
push dword [ebp + 0x30]
call fcn.004961f0
mov esi, eax
jmp 0x497aef
push 0x62a710
call fcn.0053a412
add esp, 4
cmp dword [0x62a710], 0xffffffff
jne 0x4979e1
mov ecx, 0x62a630
mov byte [ebp - 4], 1
call fcn.0049f360
push 0x5cd630
call fcn.0053a13c
push 0x62a710
mov byte [ebp - 4], 0
call fcn.0053a3c8
add esp, 8
jmp 0x4979e1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.004961a0
push 0x6191f8
lea eax, [ebp - 0x1c]
push eax
call fcn.0058dfba
call fcn.0059138f
int3