Function at 0x4570fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
cmp dword [ebp + 0xc], 0
je 0x457132
mov eax, dword [ebp + 0x10]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e30ff
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45712d
xor eax, eax
jmp 0x4572d4
jmp 0x4571c6
cmp dword [0x5efb14], 0
je 0x457146
mov edx, dword [0x5efb14]
mov dword [ebp - 0x28], edx
jmp 0x45714e
call fcn.0044e5e8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call dword [0x5bef4c]
add esp, 4
mov dword [ebp - 0x1c], eax
push 2
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x457184
xor eax, eax
jmp 0x4572d4
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4571a2
xor eax, eax
jmp 0x4572d4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4571c6
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x4572d4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
add edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp + 0x14], 0
jle 0x45722d
mov dword [ebp - 0x20], 0
jmp 0x4571e9
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
jge 0x45722b
mov ecx, dword [ebp + 0x18]
shl ecx, 6
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x850]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov edx, dword [esi + edx*4]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
push edx
call fcn.004572d9
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
jmp 0x4571e0
jmp 0x45726c
cmp dword [ebp + 0x14], 0
jge 0x45726c
mov dword [ebp - 0x24], 0
jmp 0x457245
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x10
jge 0x45726c
mov ecx, dword [ebp + 0x18]
shl ecx, 6
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x850]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov eax, dword [eax + esi*4]
mov dword [edx + ecx*4], eax
jmp 0x45723c
mov ecx, dword [ebp - 0x18]
add ecx, 0x40
mov dword [ebp - 0xc], ecx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 0xc], 0
je 0x4572bd
mov ecx, dword [ebp - 4]
push ecx
call fcn.00593e07
add esp, 4
jmp 0x4572d1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret