Function at 0x461750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
push 2
push esi
push ebx
call sub.KERNEL32.DLL_FindResourceW
test eax, eax
je 0x4619e1
push eax
push ebx
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x10], eax
xor ecx, ecx
push ebp
push 0x4619da
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4619c3
xor ecx, ecx
push ebp
push 0x4619bc
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xe]
movzx edx, ax
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx + 0xc]
imul edx, ecx
cmp edx, 8
ja 0x46195d
mov ecx, eax
mov eax, 1
shl eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
add edx, edx
add edx, edx
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call fcn.004042dc
mov dword [ebp - 0x20], eax
xor ecx, ecx
push ebp
push 0x461956
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.00404494
mov eax, dword [ebp - 0x1c]
cmp word [eax + 0xe], 8
ja 0x461892
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.0045d6e0
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x461887
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0
mov edi, dword [ebp + 0x10]
test edi, edi
jl 0x46187f
inc edi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
call fcn.0045aa1c
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [edx + ecx*4]
jne 0x461876
mov eax, dword [esi]
call fcn.0045aa1c
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [edx + ecx*4], eax
add esi, 4
add ebx, 4
dec edi
jne 0x461854
inc dword [ebp - 0x28]
dec dword [ebp - 0x38]
jne 0x461846
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.0045d6e0
mov edi, dword [ebp - 0x1c]
add edi, dword [ebp - 0x18]
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x2c], eax
xor ecx, ecx
push ebp
push 0x461936
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x2c]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov ebx, eax
test ebx, ebx
je 0x461917
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x461917
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x30], eax
push 0xcc0020
push 0
mov ecx, dword [ebp - 0x20]
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 - 0x30]
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 0x46193d
mov eax, dword [ebp - 0x2c]
push eax
push 0
call sub.user32.dll_ReleaseDC
ret
mov dl, 1
mov eax, dword [0x458764]
call fcn.004623cc
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4619a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 0x34]
call fcn.00463518
mov eax, dword [ebp - 0x34]
call fcn.00464520
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4619ae
mov eax, dword [ebp - 0x34]
call fcn.00405064
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4619e1
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_FreeResource
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc