Function at 0x43ef50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x43f211
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov edx, dword [0x40821c]
call fcn.004060b4
push 0xffffffffffffffeb
mov eax, dword [ebp + 0x14]
push eax
call sub.user32.dll_GetWindowLongA
mov edx, dword [eax*4 + 0x4ea4d8]
lea eax, [ebp - 0x54]
call fcn.00404d14
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov edx, 0x43f22c
call fcn.00404e28
mov byte [ebp - 0xd], 0
push 2
mov eax, dword [ebp - 0x18]
call fcn.00404fdc
push eax
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x43f1e5
push ebx
push edi
call sub.kernel32.dll_SizeofResource
mov edx, esi
imul edx, esi
shl edx, 2
add edx, 0x28
cmp eax, edx
jne 0x43f1e5
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x43f1e5
mov eax, esi
imul esi
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x40821c]
call fcn.00405f88
add esp, 4
push ebx
call sub.kernel32.dll_LockResource
mov edi, eax
lea edx, [ebp - 0x50]
mov eax, edi
mov ecx, 0x28
call fcn.00402d24
add edi, 0x28
mov eax, esi
imul esi
mov ecx, eax
shl ecx, 2
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.00402d24
mov eax, ebx
call fcn.00407f84
push ebx
call sub.kernel32.dll_FreeResource
mov eax, dword [ebp + 0x10]
and eax, 0xff
shl eax, 0x10
mov edx, dword [ebp + 0x10]
and edx, 0xff00
add eax, edx
mov edx, dword [ebp + 0x10]
and edx, 0xff0000
shr edx, 0x10
add eax, edx
mov dword [ebp + 0x10], eax
cmp dword [ebp + 8], 0
je 0x43f09b
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
imul edx, eax
add edx, eax
mov eax, edx
shl eax, 2
add dword [ebp + 8], eax
mov eax, esi
imul esi
dec eax
test eax, eax
jb 0x43f150
inc eax
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + ecx*4]
shr ebx, 0x18
inc ebx
cmp dword [ebp + 8], 0
je 0x43f0e6
test ecx, ecx
jbe 0x43f0da
mov eax, ecx
xor edx, edx
div esi
test edx, edx
jne 0x43f0da
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
sub eax, esi
shl eax, 2
add dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
add dword [ebp + 8], 4
mov eax, pe_nt_image_headers32
sub eax, ebx
mov edx, dword [ebp + 0x10]
and edx, 0xff00ff
imul edx
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + ecx*4]
and edx, 0xff00ff
imul edx, ebx
add eax, edx
shr eax, 8
and eax, 0xff00ff
mov edx, pe_nt_image_headers32
sub edx, ebx
mov edi, dword [ebp + 0x10]
and edi, 0xff00
imul edx, edi
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + ecx*4]
and edi, 0xff00
imul edi, ebx
add edx, edi
shr edx, 8
and edx, 0xff00
add eax, edx
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx*4], eax
inc ecx
dec dword [ebp - 0x24]
jne 0x43f0ae
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
je 0x43f1e5
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.gdi32.dll_CreateDIBSection
mov edi, eax
test edi, edi
je 0x43f1df
cmp dword [ebp - 0x1c], 0
je 0x43f1df
call sub.gdi32.dll_GdiFlush
mov eax, esi
imul esi
mov ecx, eax
shl ecx, 2
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.00402d24
call sub.gdi32.dll_GdiFlush
push edi
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
push 0xcc0020
push 0
push 0
push ebx
push esi
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.gdi32.dll_SelectObject
push edi
call sub.gdi32.dll_DeleteObject
mov byte [ebp - 0xd], 1
push ebx
call sub.gdi32.dll_DeleteDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f218
lea eax, [ebp - 0x54]
call fcn.00404b1c
lea eax, [ebp - 0x20]
mov edx, dword [0x40821c]
call fcn.004060b4
lea eax, [ebp - 0x18]
call fcn.00404b1c
ret