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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [ebx + 0x14], eax
mov dword [ebx], 0x3981b610
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x28]
push esi
xor esi, esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], esi
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x60], esi
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], esi
lea eax, [ebx + 0x78]
mov word [eax], si
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea eax, [ebx + 0x98]
push edi
lea edi, [ebx + 0x88]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
lea eax, [ebx + 0xac]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea eax, [ebx + 0xbc]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea eax, [ebx + 0xcc]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea eax, [ebx + 0xdc]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea eax, [ebx + 0xec]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
push eax
lea ecx, [ebx + 0xfc]
mov dword [eax + 0xc], esi
call fcn.00548e42
push edi
lea ecx, [ebx + 0x114]
call fcn.00548e42
fldz
fstp dword [ebx + 0x144]
mov dword [ebx + 0x12c], esi
mov dword [ebx + 0x130], esi
fldz
mov dword [ebx + 0x134], esi
mov dword [ebx + 0x138], esi
mov dword [ebx + 0x13c], 0x7fffffff
mov dword [ebx + 0x140], 0x80000000
mov dword [ebx + 0x148], esi
mov dword [ebx + 0x14c], esi
mov dword [ebx + 0x150], esi
lea eax, [ebx + 0x154]
fstp dword [eax + 4]
mov dword [ebp + 0x10], esi
fldz
fstp dword [eax]
mov dword [ebx + 0x15c], esi
mov dword [ebx + 0x164], esi
mov dword [ebx + 0x168], 0x3980ffd0
lea eax, [ebx + 0x170]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea eax, [ebx + 0x17c]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push 2
pop ecx
mul ecx
push edx
push eax
mov dword [ebx + 0x188], 1
call fcn.0059c785
test eax, eax
jl 0x54f975
push dword [ebp + 0x10]
call fcn.005b5380
mov dword [ebx + 0xc], eax
jmp 0x54f978
mov dword [ebx + 0xc], esi
mov edi, dword [ebx + 0xc]
cmp edi, esi
je 0x54fa22
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0x24]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebx + 0x10], edi
call fcn.0054bcee
test eax, eax
mov dword [ebp + 0x10], eax
je 0x54fa08
lea eax, [ebp + 0xc]
push eax
xor esi, esi
push edi
mov dword [ebp + 0xc], esi
call fcn.004e0240
test eax, eax
jl 0x54fa08
cmp dword [ebp + 0xc], esi
jbe 0x54fa08
mov eax, dword [ebx + 0xc]
lea eax, [eax + esi*2]
cmp word [eax], 0x26
jne 0x54fa02
or word [eax], 0xffff
inc esi
cmp dword [ebp + 0x10], 1
jne 0x54fa02
cmp esi, dword [ebp + 0xc]
jae 0x54fa02
mov eax, dword [ebx + 0xc]
cmp word [eax + esi*2], 0x26
je 0x54fa02
lea eax, [esi - 1]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebx + 0x17c]
call fcn.0054f669
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x54f9c6
xor esi, esi
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x54fa2e
test byte [eax + 0xc], 2
je 0x54fa2e
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x14]
jmp 0x54fa37
mov dword [ebx + 8], 3
mov dword [ebx + 0x10], esi
jmp 0x54fa0a
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x18]
fld dword [ebp + 0x20]
push ecx
fdivr qword [0x3981b608]
mov dword [ebx + 0x20], eax
fst dword [ebx + 0x24]
fmul dword [ebp + 0x20]
fmul dword [0x398046f4]
fstp dword [esp]
call fcn.004df0c4
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 0x16c], eax
call fcn.005f16a8
mov edi, eax
cmp edi, esi
je 0x54fa96
push dword [esi*4 + 0x3981b5f8]
mov ecx, edi
call fcn.005e5710
test eax, eax
jne 0x54fa87
inc esi
cmp esi, 4
jl 0x54fa6f
cmp esi, 4
jge 0x54fa96
mov dword [ebx + 0x168], 0x398101e0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x24