Function at 0x45f98c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
push 2
push esi
push ebx
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x45fc1d
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x45fc16
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45fbff
xor ecx, ecx
push ebp
push 0x45fbf8
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xe]
movzx edx, ax
mov ecx, dword [ebp - 0x18]
movzx ecx, word [ecx + 0xc]
imul edx, ecx
cmp edx, 8
ja 0x45fb99
mov ecx, eax
mov eax, 1
shl eax, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
add edx, edx
add edx, edx
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0042adb8
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x45fb92
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
call fcn.0042b018
mov eax, dword [ebp - 0x18]
cmp word [eax + 0xe], 8
ja 0x45face
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0045cc14
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x45fac3
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0
mov edi, dword [ebp + 0x10]
test edi, edi
jl 0x45fabb
inc edi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
call fcn.0045a7d8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp eax, dword [edx + ecx*4]
jne 0x45fab2
mov eax, dword [esi]
call fcn.0045a7d8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
add esi, 4
add ebx, 4
dec edi
jne 0x45fa90
inc dword [ebp - 0x24]
dec dword [ebp - 0x34]
jne 0x45fa82
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0045cc14
mov edi, dword [ebp - 0x18]
add edi, dword [ebp - 0x14]
push 0
call sub.USER32.DLL_GetDC
mov dword [ebp - 0x28], eax
xor ecx, ecx
push ebp
push 0x45fb72
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
je 0x45fb53
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45fb53
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x2c], eax
push 0xcc0020
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
mov edx, dword [esi + 8]
push edx
mov eax, dword [esi + 4]
push eax
push 0
push 0
push edx
push eax
push 0
push 0
push ebx
call sub.GDI32.DLL_StretchDIBits
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.GDI32.DLL_SelectObject
push ebx
call sub.GDI32.DLL_DeleteDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fb79
mov eax, dword [ebp - 0x28]
push eax
push 0
call sub.USER32.DLL_ReleaseDC
ret
mov dl, 1
mov eax, dword [0x459c44]
call fcn.00460608
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x45fbe3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0x30]
call fcn.0046122c
mov eax, dword [ebp - 0x30]
call fcn.004621c0
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fbea
mov eax, dword [ebp - 0x30]
call fcn.0042bb74
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc1d
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_FreeResource
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc