Function at 0x497670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7a7c
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 0x4977b9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax], 0x3c
je 0x4977b9
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62b19c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x62a6f0]
cmp eax, dword [ecx + 4]
jg 0x497993
cmp byte [ebp + 0x24], 1
jne 0x4979db
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x62a610
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0049f510
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4977b6
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 0x497772
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 0x4977aa
mov byte [ebp - 4], 3
test al, al
js 0x497792
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.0040b9fb
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 0x497872
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax], 0x3c
jne 0x497847
cmp ecx, ecx
jne 0x4979db
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.00494620
test al, al
jne 0x49797b
xor esi, esi
mov al, byte [ebp + 0x24]
mov dword [ebp - 4], 4
test al, al
js 0x497828
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.0053a175
mov esp, ebp
pop ebp
ret 0x34
cmp ecx, 1
jne 0x4979db
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.004946b0
test al, al
jne 0x49797b
jmp 0x4977fd
mov esi, dword [edx + 0x88]
test esi, esi
jne 0x497883
call fcn.00474990
mov esi, eax
movsx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x4979db
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 0x4977fd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
push edi
test eax, eax
jne 0x4978c3
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4977fd
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.00494c40
test al, al
je 0x4977fd
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 0x497941
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 0x49797b
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x49797b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497971
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497a00
push edx
push ecx
call fcn.0053a186
add esp, 8
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
push dword [ebp - 0x40]
push dword [ebp + 0x30]
call fcn.00495ee0
mov esi, eax
jmp 0x4977ff
push 0x62a6f0
call fcn.0053a71f
add esp, 4
cmp dword [0x62a6f0], 0xffffffff
jne 0x4976f1
mov ecx, 0x62a610
mov byte [ebp - 4], 1
call fcn.0049f070
push 0x5cd970
call fcn.0053a449
push 0x62a6f0
mov byte [ebp - 4], 0
call fcn.0053a6d5
add esp, 8
jmp 0x4976f1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00495e90
push 0x619368
lea eax, [ebp - 0x1c]
push eax
call fcn.0058e27a
call fcn.0059164f
int3