Function at 0x4059a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d02a
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x1c
and eax, 0xffff
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x439334
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x405be2
push ebx
push ebp
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebp, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 1
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push 0x432e40
push esi
push esi
push edx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov esi, dword [esp + 0x3c]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
mov edx, dword [esi + 8]
push edx
call edi
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push ecx
push eax
call ebx
mov edx, dword [esi + 8]
push 0x58
mov ebp, eax
push edx
call edi
mov ecx, dword [esp + 0x14]
push 0x9ec
push ecx
push eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x48]
push 0x10
lea ebx, [eax - 1]
lea edx, [edi + eax + 1]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
lea ecx, [eax + ebp]
mov dword [esp + 0x28], ecx
call fcn.00422e2f
add esp, 4
mov dword [esp + 0x3c], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x34], ecx
je 0x405b0b
mov ecx, eax
call fcn.0042916b
mov dword [esp + 0x3c], eax
jmp 0x405b0f
mov dword [esp + 0x3c], ecx
push 8
mov dword [esp + 0x38], 0xffffffff
call fcn.00422e2f
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x405b36
mov dword [eax + 4], ecx
mov dword [eax], 0x42f6b4
mov dword [esp + 0x48], eax
jmp 0x405b3a
mov dword [esp + 0x48], ecx
cmp esi, ecx
jne 0x405b42
xor eax, eax
jmp 0x405b45
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.00429222
mov edx, dword [esi + 4]
push edi
push ebp
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [esp + 0x48]
push eax
mov ecx, esi
call fcn.0042980c
test esi, esi
je 0x405b75
mov esi, dword [esi + 4]
push esi
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 4]
push eax
call fcn.0042934d
test esi, esi
jne 0x405b8b
xor ebp, ebp
jmp 0x405b8e
mov ebp, dword [esi + 4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
mov edi, dword [ecx]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x50]
push 0
sub ebx, edx
push 0
sub eax, edi
push ebx
push eax
push edx
push edi
push ebp
push ecx
mov ecx, dword [esp + 0x68]
call dword [ecx + 0x20]
pop ebp
pop ebx
test esi, esi
je 0x405bd4
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret