Function at 0x4561b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [0x592c80]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
xor eax, eax
mov dword [esp + 0x30], ecx
push esi
push edi
mov dword [esp + 0x34], eax
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
xor ebp, ebp
mov dword [esp + 0x3c], eax
mov esi, 0x80004005
mov dword [esp + 0x50], eax
xor ebx, ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], 0
push eax
push edx
mov dword [esp + 0x18], ebp
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x4562fd
lea eax, [esp + 0x60]
push eax
push 0x18
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4562fd
mov edi, dword [esp + 0x68]
mov ecx, edi
mov ebp, dword [esp + 0x64]
cmp dword [esp + 0x50], ebx
jne 0x456248
shr ecx, 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x14], ecx
jmp 0x456250
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x38]
lea esi, [esp + 0x1c]
push esi
push 0x15
push ecx
mov eax, dword [edx]
push ebp
push edx
call dword [eax + 0x6c]
mov esi, eax
test esi, esi
js 0x4562fb
mov eax, edi
mov ecx, 4
imul eax, ebp
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004c8bda
add esp, 4
mov dword [esp + 0x78], 0x28
xorps xmm0, xmm0
mov dword [esp + 0x7c], ebp
mov ebx, eax
movlpd qword [esp + 0x8c], xmm0
mov dword [esp + 0x18], ebx
push 0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0x200001
mov dword [esp + 0x8c], 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x456389
mov esi, 0x80004005
xor ebp, ebp
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x45630e
push eax
call edi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x456319
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45632a
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x34]
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x45633b
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x456346
push eax
call edi
test ebp, ebp
je 0x456353
push ebp
call fcn.004c8b97
add esp, 4
test ebx, ebx
je 0x456360
push ebx
call fcn.004c8b97
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x45636e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0xa4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c8873
add esp, 0x9c
ret
push dword [esp + 0x4c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call ebx
push 0
mov esi, eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x20]
push edi
push 0
push dword [esp + 0x60]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_GetDIBits]
push esi
push dword [esp + 0x24]
call ebx
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
jne 0x456434
mov eax, esi
mov ecx, 4
imul eax, ebp
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004c8bda
add esp, 4
mov dword [esp + 0x10], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x456410
mov ebx, dword [esp + 0x18]
mov esi, 0x80004005
mov ebp, dword [esp + 0x10]
jmp 0x4562fd
push dword [esp + 0x50]
push eax
call ebx
push 0
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x40]
push esi
push 0
push dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push 0
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test esi, esi
je 0x456528
mov eax, dword [esp + 0x5c]
lea ebx, [esi - 1]
lea esi, [esi*4 - 4]
imul ecx, ebp, 0xfffffffc
lea edx, [edi*4 - 4]
imul esi, ebp
mov edi, dword [esp + 0x18]
imul edx, ebp
imul ebx, ebp
mov dword [esp + 0x28], eax
add esi, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
add edx, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edx
nop word [eax + eax]
xor ecx, ecx
test ebp, ebp
je 0x4564fe
cmp dword [esp + 0x24], ecx
je 0x4564c3
mov esi, eax
nop
cmp dword [edx], 0
jne 0x4564b2
lea eax, [ebx + ecx]
mov eax, dword [edi + eax*4]
or eax, 0xff000000
jmp 0x4564b4
xor eax, eax
mov dword [esi], eax
inc ecx
add edx, 4
add esi, 4
cmp ecx, ebp
jb 0x4564a0
jmp 0x4564f2
sub edi, dword [esp + 0x10]
mov ecx, esi
mov edx, eax
mov esi, ebp
nop dword [eax]
cmp dword [ecx + edi], 0
jne 0x4564df
mov eax, dword [ecx]
or eax, 0xff000000
jmp 0x4564e1
xor eax, eax
mov dword [edx], eax
add ecx, 4
add edx, 4
sub esi, 1
jne 0x4564d0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add edx, dword [esp + 0x54]
lea ecx, [ebp*4]
add esi, dword [esp + 0x54]
add eax, ecx
sub ebx, ebp
mov dword [esp + 0x28], eax
sub dword [esp + 0x14], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
jne 0x456490
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
mov ebx, dword [esp + 0x18]
mov esi, eax
mov ebp, dword [esp + 0x10]
xor eax, eax
test esi, esi
cmovns esi, eax
jmp 0x4562fd