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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
push edi
mov dword [esp + 0x34], esi
jne 0x54a80c
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x64]
lea edi, [esi + 0x54]
mov dword [esp + 0x18], eax
cmp dword [edi + 0xc], eax
jbe 0x54a820
call fcn.00588c45
mov ebx, dword [edi + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x60], eax
cmp ebx, dword [edi + 0x10]
jbe 0x54a833
call fcn.00588c45
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
mov eax, dword [edi]
push ecx
push edx
push ebx
push eax
lea ebx, [esp + 0x90]
call fcn.0054b340
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 0x68]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x70]
imul edx, dword [esp + 0x74]
push edx
call fcn.00587d67
mov ecx, dword [esi + 0xa8]
mov edi, eax
mov eax, dword [esp + 0x74]
imul eax, dword [esp + 0x78]
add esp, 4
push edi
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
xor edx, edx
cmp dword [esp + 0x70], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edx
jle 0x54aaab
mov ecx, dword [esp + 0x6c]
jmp 0x54a8c0
cmp ecx, edx
mov dword [esp + 0x1c], edx
jle 0x54aa94
fld dword [ebp + 0x10]
call fcn.005a8240
fstp dword [esp + 0x38]
fild dword [esp + 0x20]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x38]
fstp qword [esp + 0x90]
fld dword [ebp + 0x10]
call fcn.005a8370
fstp dword [esp + 0x3c]
fld dword [esp + 0x14]
fmul dword [esp + 0x3c]
fstp qword [esp + 0x88]
fld dword [ebp + 0xc]
call fcn.005a8370
fstp dword [esp + 0x5c]
fld dword [ebp + 0xc]
call fcn.005a8240
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul qword [0x5e7a10]
fstp qword [esp + 0x80]
fld dword [ebp + 8]
call fcn.005a8370
fstp dword [esp + 0x44]
fld dword [ebp + 8]
call fcn.005a8240
fstp dword [esp + 0x14]
jmp 0x54a950
movzx eax, word [esp + 0x7a]
fld dword [esp + 0x44]
imul eax, dword [esp + 0x1c]
fld dword [esp + 0x14]
fild dword [esp + 0x1c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fmul dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
fadd qword [esp + 0x90]
imul ebx, dword [esp + 0x74]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0x18]
add ebx, eax
call fcn.005a84c0
fmul dword [esp + 0x38]
mov edi, eax
mov dword [esp + 0x48], edi
fsubr qword [esp + 0x88]
call fcn.005a84c0
fild dword [esp + 0x48]
mov esi, eax
mov dword [esp + 0x4c], esi
fmul dword [esp + 0x5c]
mov dword [esp + 0x10], edi
fld qword [esp + 0x80]
fsub st(1), st(0)
fxch st(1)
call fcn.005a84c0
fild dword [esp + 0x10]
mov dword [esp + 0x48], eax
fmul dword [esp + 0x40]
faddp st(1)
call fcn.005a84c0
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
mov dword [esp + 0x60], esi
fstp dword [esp + 0x10]
fild dword [esp + 0x4c]
fmul st(2)
fld dword [esp + 0x10]
fld st(0)
fmul st(3)
faddp st(2)
fxch st(1)
call fcn.005a84c0
fmulp st(2)
mov dword [esp + 0x4c], eax
fimul dword [esp + 0x60]
fsubp st(1)
call fcn.005a84c0
movzx edx, byte [ebx + 2]
movzx ecx, byte [ebx]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x50], eax
movzx eax, byte [ebx + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
mov dword [esp + 0x58], edx
lea edx, [esp + 0x48]
push edx
add edi, 0x54
call fcn.0054b1d0
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x24]
jge 0x54aa57
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x2c]
jle 0x54aa61
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x28]
jge 0x54aa6f
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x30]
jle 0x54aa79
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x54a950
mov esi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
jl 0x54a8c0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], edx
push edi
mov dword [esi + 0x78], eax
call fcn.00588add
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc