Function at 0x40b5e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0xc]
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x2c], edi
mov esi, edi
mov ebp, edi
push eax
cmp ebx, 0x10000
jae 0x40b686
push str.IMAGE
push ebx
call fcn.00406400
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x40b634
push ebx
push str.IMAGE__d_Not_Found_in_Resource
call fcn.004067fd
pop ecx
pop ecx
mov edi, 0x714
mov ebx, esi
jmp 0x40b668
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [esp + 0x30], ebx
call fcn.0040b571
mov esi, eax
test esi, esi
je 0x40b666
push dword [esp + 0x18]
push ebx
push esi
call fcn.0040a68d
test eax, eax
jns 0x40b69b
push str.PNG_DecodeFrame___Error
call fcn.004067fd
pop ecx
mov ebx, edi
push esi
call fcn.0040b5a7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b866
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b86f
push ebx
call fcn.00405d9a
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x40b641
push 2
pop edi
jmp 0x40b630
mov ebx, dword [esi + 0x38]
push 8
pop eax
cmp ebx, eax
cmovl ebx, eax
push ebx
push dword [esi + 0x18]
mov dword [esp + 0x28], ebx
call fcn.004041c2
push 0x161
push 0x428
mov dword [esp + 0x4c], eax
call fcn.00401286
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x40b666
push 0x28
push edi
push ebp
call sub.ntdll.dll_memset
mov dword [ebp], 0x28
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp + 8], eax
xor eax, eax
inc eax
mov word [ebp + 0xc], ax
mov eax, dword [esi + 0x1c]
imul eax, dword [esp + 0x44]
mov word [ebp + 0xe], bx
mov dword [ebp + 0x14], eax
cmp dword [esi + 0x38], 8
jg 0x40b723
push 0x400
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp + 0x28]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push edi
push edi
lea eax, [esp + 0x3c]
push eax
push edi
push ebp
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x40b668
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x40], eax
lea ebx, [eax - 1]
mov dword [esp + 0x1c], ecx
imul ebx, edx
add ebx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jne 0x40b79a
test eax, eax
je 0x40b791
mov edi, eax
mov ebp, ecx
push edx
push ebp
push ebx
call sub.ntdll.dll_memcpy
mov edx, dword [esp + 0x50]
add esp, 0xc
add ebp, dword [esi + 0x94]
sub ebx, edx
sub edi, 1
jne 0x40b771
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
jmp 0x40b668
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x4c]
call fcn.004043e6
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x40b791
cmp dword [esp + 0x20], 0x20
jne 0x40b84d
movzx eax, word [ecx + 0xe]
cmp eax, 0x18
jb 0x40b84d
mov edx, eax
push eax
push dword [ecx + 4]
shr edx, 3
mov dword [esp + 0x28], edx
call fcn.004041c2
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov edx, dword [edx + 8]
sub edx, dword [esp + 0x50]
dec edx
imul edx, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
imul ecx, dword [esp + 0x4c]
add edx, dword [esp + 0x14]
add ecx, edx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x40], edi
je 0x40b858
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
push dword [esi + 0x18]
push eax
push ecx
push ebp
push ebx
call fcn.0040a2d0
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x38]
add ebp, dword [esi + 0x94]
sub ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], ecx
sub edi, 1
jne 0x40b816
mov ebp, dword [esp + 0x24]
xor edi, edi
jmp 0x40b858
push str.No_Support_Backgroud_Bitmap...
call fcn.004067fd
pop ecx
push dword [esp + 0x28]
call fcn.00404070
jmp 0x40b791
push dword [esp + 0x30]
call fcn.00404070
push ebp
call fcn.00404070
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret 0x14