Function at 0x424004
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x424269
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffeb
push ebx
call sub.user32.dll_GetWindowLongA
mov edx, dword [eax*4 + 0x486b1c]
lea eax, [ebp - 0x444]
call fcn.00404758
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x10]
mov edx, 0x424284
call fcn.0040486c
push 0
push 0x10
push 0x10
push 1
mov eax, dword [ebp - 0x10]
call fcn.00404a20
mov edi, eax
push edi
push esi
call sub.user32.dll_LoadImageA
mov ebx, eax
test ebx, ebx
je 0x4240a9
mov byte [ebp - 5], 1
push 3
push 0
push 0
push 0
push 0
push ebx
push 3
push 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
push eax
call sub.user32.dll_DrawIconEx
push ebx
call sub.user32.dll_DestroyIcon
jmp 0x424248
mov byte [ebp - 5], 0
push 2
push edi
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x424248
push ebx
push esi
call sub.kernel32.dll_SizeofResource
cmp eax, 0x428
jne 0x424248
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x424248
push ebx
call sub.kernel32.dll_LockResource
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, esi
mov ecx, 0x28
call fcn.0040290c
add esi, 0x28
lea edx, [ebp - 0x440]
mov eax, esi
mov ecx, 0x400
call fcn.0040290c
mov eax, ebx
call fcn.0040739c
push ebx
call sub.kernel32.dll_FreeResource
mov eax, dword [ebp - 4]
and eax, 0xff
shl eax, 0x10
mov edx, dword [ebp - 4]
and edx, 0xff00
add eax, edx
mov edx, dword [ebp - 4]
and edx, 0xff0000
shr edx, 0x10
add eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0x440]
mov ecx, dword [eax]
mov edx, ecx
shr edx, 0x18
inc edx
mov ebx, pe_nt_image_headers32
sub ebx, edx
mov esi, dword [ebp - 4]
and esi, 0xff00ff
imul ebx, esi
mov esi, ecx
and esi, 0xff00ff
imul esi, edx
add ebx, esi
shr ebx, 8
and ebx, 0xff00ff
mov esi, pe_nt_image_headers32
sub esi, edx
mov edi, dword [ebp - 4]
and edi, 0xff00
imul esi, edi
and ecx, 0xff00
imul ecx, edx
add esi, ecx
shr esi, 8
and esi, 0xff00
add ebx, esi
mov dword [eax], ebx
add eax, 4
dec dword [ebp - 0xc]
jne 0x424150
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
test esi, esi
je 0x424248
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
push esi
call sub.gdi32.dll_CreateDIBSection
mov ebx, eax
test ebx, ebx
je 0x424242
cmp dword [ebp - 0x14], 0
je 0x424242
call sub.gdi32.dll_GdiFlush
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x440]
mov ecx, 0x400
call fcn.0040290c
call sub.gdi32.dll_GdiFlush
push ebx
push esi
call sub.gdi32.dll_SelectObject
mov edi, eax
push 0xcc0020
push 0
push 0
push esi
push 0x10
push 0x10
push 3
push 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
push eax
call sub.gdi32.dll_BitBlt
push edi
push esi
call sub.gdi32.dll_SelectObject
push ebx
call sub.gdi32.dll_DeleteObject
mov byte [ebp - 5], 1
push esi
call sub.gdi32.dll_DeleteDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424270
lea eax, [ebp - 0x444]
call fcn.00404560
lea eax, [ebp - 0x10]
call fcn.00404560
ret