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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x6c], esi
cmp dword [esi + 0x84], 0
jne 0x4b85a6
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
mov dword [ecx + 4], eax
lea eax, [esp + 0x80]
push eax
push 0x18
push dword [esi + 0x84]
mov dword [esp + 0x68], ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x88]
imul eax, dword [esp + 0x8c]
push eax
call fcn.00550341
mov ecx, dword [esp + 0x8c]
add esp, 4
imul ecx, dword [esp + 0x8c]
mov dword [esp + 0x2c], eax
push eax
push ecx
push dword [esi + 0x84]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov eax, dword [esp + 0x88]
xorps xmm0, xmm0
xor esi, esi
movdqa xmmword [esp + 0x40], xmm0
test eax, eax
jle 0x4b8894
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], edx
xor edi, edi
test ecx, ecx
jle 0x4b8885
movss xmm0, dword [ebp + 0x10]
cvtps2pd xmm0, xmm0
call fcn.005918d0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x14], xmm0
mulss xmm0, xmm1
movss dword [esp + 0x74], xmm0
movss xmm0, dword [ebp + 0x10]
cvtps2pd xmm0, xmm0
call fcn.00590390
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm1
movss dword [esp + 0x7c], xmm1
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
call fcn.00590390
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x58], xmm0
movss xmm0, dword [ebp + 0xc]
cvtps2pd xmm0, xmm0
call fcn.005918d0
cvtsd2ss xmm0, xmm0
xorps xmm1, xmm1
movss dword [esp + 0x78], xmm0
mulss xmm0, xmm1
movss dword [esp + 0x68], xmm0
movss xmm0, dword [ebp + 8]
cvtps2pd xmm0, xmm0
call fcn.00590390
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x70], xmm0
movss xmm0, dword [ebp + 8]
cvtps2pd xmm0, xmm0
call fcn.005918d0
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
movss dword [esp + 0x64], xmm5
jmp 0x4b8720
movzx eax, word [esp + 0x92]
imul eax, edi
movd xmm1, edi
cvtdq2ps xmm1, xmm1
cdq
and edx, 7
add eax, edx
mov edx, esi
imul edx, dword [esp + 0x8c]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x7c]
sar eax, 3
add eax, dword [esp + 0x2c]
mulss xmm1, dword [esp + 0x60]
add edx, eax
addss xmm0, dword [esp + 0x74]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x14]
subss xmm0, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si ecx, xmm0
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x78]
mulss xmm0, dword [esp + 0x58]
addss xmm1, dword [esp + 0x68]
movd xmm3, ecx
subss xmm0, dword [esp + 0x68]
cvtdq2ps xmm3, xmm3
movzx ecx, byte [edx + 2]
shl ecx, 8
cvttss2si eax, xmm0
movaps xmm0, xmm3
mulss xmm3, xmm5
mov dword [esp + 0x98], eax
mulss xmm0, dword [esp + 0x70]
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movaps xmm1, xmm2
mulss xmm2, dword [esp + 0x70]
mulss xmm1, xmm5
subss xmm2, xmm3
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [esp + 0x9c], eax
cvttss2si eax, xmm2
mov dword [esp + 0xa0], eax
movzx eax, byte [edx + 1]
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
lea eax, [esp + 0x98]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x5c]
push eax
call fcn.0041f190
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
mov edx, dword [esp + 0x1c]
cmovl ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
cmovl ecx, eax
cmp eax, edx
mov dword [esp + 0x18], ecx
cmovg edx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], edx
inc edi
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x84]
movss xmm5, dword [esp + 0x64]
cmp edi, ecx
jl 0x4b8720
mov eax, dword [esp + 0x88]
inc esi
cmp esi, eax
jl 0x4b8643
movdqa xmm0, xmmword [esp + 0x40]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x2c]
movdqu xmmword [eax + 0x3c], xmm0
call fcn.00551995
mov ecx, dword [esp + 0xb0]
add esp, 4
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0xc