Function at 0x40efe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x30
test eax, 0xffffdfef
push ebx
push ebp
push esi
push edi
je 0x40f006
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0xc
xor ebx, ebx
mov dword [esp + 0x10], 0
test al, 0x10
je 0x40f105
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40eff2
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0x8000000
push eax
call fcn.0040e1a0
test al, al
je 0x40f16e
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push ecx
xor edi, edi
push 1
push edx
mov dword [esp + 0x54], edi
call fcn.00418640
add esp, 0xc
test eax, eax
je 0x40f1f9
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor esi, esi
cmp ebp, esi
je 0x40f1ec
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], 0x28
push eax
call fcn.00419c90
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
push ecx
call fcn.00419ca0
mov ecx, dword [esp + 0x54]
add esp, 8
test ch, 0x20
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0x18
mov dword [esp + 0x24], esi
je 0x40f17a
push esi
lea edx, [esp + 0x48]
push esi
push edx
lea eax, [esp + 0x20]
push esi
push eax
push ebp
mov dword [esp + 0x5c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
cmp edi, esi
je 0x40f1e3
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.0040f220
call dword [sym.imp.GDI32.dll_GdiFlush]
jmp 0x40f1e3
mov eax, dword [0x431738]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40f16e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f16e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x40f158
lea eax, [esp + 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.004185e0
test al, al
jne 0x40f041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0xc
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
lea esi, [ecx + ecx*2]
shl esi, 3
shr esi, 3
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
je 0x40f1e3
mov eax, esi
neg eax
and eax, 3
add eax, esi
imul eax, dword [esp + 0x1c]
push eax
call fcn.0041db00
mov esi, eax
test esi, esi
je 0x40f1da
mov eax, dword [esp + 0x48]
push esi
push eax
call fcn.0040f220
lea ecx, [esp + 0x14]
push 0
mov edx, dword [esp + 0x20]
push ecx
push esi
push edx
push 0
push edi
push ebp
call dword [sym.imp.GDI32.dll_SetDIBits]
push esi
call fcn.0041dfb0
jmp 0x40f1e3
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x48]
push eax
call fcn.00419cc0
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call fcn.00418410
test ebx, ebx
je 0x40f20e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc