Function at 0x40afa5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x10]
push esi
push edi
xor edi, edi
mov dword [esp + 0x24], edi
mov esi, edi
mov ebx, edi
push eax
cmp ebp, 0x10000
jge 0x40b040
push str.IMAGE
push ebp
call fcn.00405ec0
mov dword [esp + 0x24], eax
test eax, eax
jne 0x40b00c
push ebp
push str.IMAGE__d_Not_Found_in_Resource
call fcn.004062bb
pop ecx
pop ecx
mov edi, 0x714
mov ebp, ebx
push esi
call fcn.0040af63
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b209
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b212
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov dword [esp + 0x28], ebp
call fcn.0040af2d
mov esi, eax
test esi, esi
je 0x40afec
push dword [esp + 0x18]
push ebp
push esi
call fcn.00409fa1
test eax, eax
jns 0x40b055
push str.PNG_DecodeFrame___Error
call fcn.004062bb
pop ecx
jmp 0x40afec
push ebp
call fcn.004059a3
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x40b019
push 2
pop edi
jmp 0x40afec
mov ebp, dword [esi + 0x38]
push 8
pop eax
cmp ebp, eax
cmovl ebp, eax
push ebp
push dword [esi + 0x18]
mov dword [esp + 0x38], ebp
call fcn.00403edd
push 0x161
push 0x428
mov dword [esp + 0x44], eax
call fcn.00401224
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x40b202
push 0x28
push edi
push ebx
call sub.ntdll.dll_memset
mov dword [ebx], 0x28
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 8], eax
xor eax, eax
inc eax
mov word [ebx + 0xc], ax
mov eax, dword [esi + 0x1c]
imul eax, dword [esp + 0x3c]
mov word [ebx + 0xe], bp
mov dword [ebx + 0x14], eax
cmp dword [esi + 0x38], 8
jg 0x40b0e0
push 0x400
lea eax, [esi + 0xa4]
push eax
lea eax, [ebx + 0x28]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push edi
push edi
lea eax, [esp + 0x34]
push eax
push edi
push ebx
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x40afee
mov ebp, dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x1c], ecx
lea ebx, [ebp - 1]
imul ebx, eax
add ebx, dword [esp + 0x2c]
cmp dword [esp + 0x40], edi
jne 0x40b153
test ebp, ebp
je 0x40b146
mov edi, ecx
push eax
push edi
push ebx
call sub.ntdll.dll_memcpy
mov eax, dword [esp + 0x48]
add esp, 0xc
add edi, dword [esi + 0x94]
sub ebx, eax
sub ebp, 1
jne 0x40b128
xor edi, edi
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
jmp 0x40afee
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x44]
call fcn.00404101
mov ecx, eax
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x40b146
cmp dword [esp + 0x30], 0x20
jne 0x40b1e9
movzx eax, word [ecx + 0xe]
cmp eax, 0x18
jb 0x40b1e9
mov edx, eax
push eax
push dword [ecx + 4]
shr edx, 3
mov dword [esp + 0x48], edx
call fcn.00403edd
mov edx, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov edx, dword [edx + 8]
sub edx, dword [esp + 0x48]
dec edx
imul edx, eax
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x44]
add eax, dword [esp + 0x38]
add eax, edx
mov dword [esp + 0x38], eax
test ebp, ebp
je 0x40b1f4
mov edi, dword [esp + 0x1c]
push dword [esi + 0x18]
push dword [esp + 0x44]
push eax
push edi
push ebx
call fcn.00409be4
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
add edi, dword [esi + 0x94]
sub ebx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
sub ebp, 1
jne 0x40b1bb
xor edi, edi
jmp 0x40b1f4
push str.No_Support_Backgroud_Bitmap...
call fcn.004062bb
pop ecx
push dword [esp + 0x20]
call fcn.00403dae
jmp 0x40b146
mov ebp, edi
jmp 0x40afee
push dword [esp + 0x28]
call fcn.00403dae
push ebx
call fcn.00403dae
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret 0x14