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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebx], eax
lea edi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x20], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x24], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebx + 0x2c], ecx
mov eax, dword [eax + 0x54]
add eax, 0x7c
push eax
lea ecx, [ebx + 0x3c]
call fcn.004e0463
mov eax, dword [ebx + 0x54]
fld dword [ebx + 0x48]
mov dword [ebp + 8], eax
fst dword [ebp + 0x14]
fcomp dword [0x39801580]
fnstsw ax
test ah, 0x41
jnp 0x54e73a
fld dword [0x39801580]
fld dword [ebx + 0x4c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x54e73a
fld dword [0x39801580]
fld dword [ebx + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jp 0x54e73a
fld dword [0x39801580]
fld dword [ebp + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x54e73a
fld dword [ebx + 0x24]
fcomp qword [0x398049b0]
fnstsw ax
test ah, 0x41
jnp 0x54e45e
mov eax, dword [ebx]
mov eax, dword [eax + 0x50]
cmp eax, dword [0x399834c8]
je 0x54e73a
xor edi, edi
cmp dword [ebx + 8], 0xffffffff
jne 0x54e3b9
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp word [eax], di
je 0x54e3b6
inc ecx
cmp word [eax + ecx*2], di
jne 0x54e3af
mov dword [ebx + 8], ecx
cmp dword [ebx + 8], edi
je 0x54e785
mov eax, dword [ebx + 0x28]
xor ecx, ecx
inc ecx
cmp eax, edi
je 0x54e40a
fld dword [eax + 0x34]
fmul dword [ebx + 0x24]
fstp dword [ebx + 0x64]
fld dword [eax + 0x38]
fmul dword [ebx + 0x24]
fstp dword [ebx + 0x68]
mov ecx, dword [eax + 0x14]
mov dword [ebx + 0x34], ecx
mov ecx, dword [eax + 0xc]
test ecx, 0x40000003
mov dword [ebx + 0x30], ecx
mov edx, dword [eax + 0x3c]
mov dword [ebp + 0x18], edx
jne 0x54e73a
cmp dword [eax + 0x48], edi
jg 0x54e73a
mov ecx, dword [eax + 0x40]
jmp 0x54e426
fld dword [ebx + 0x24]
mov dword [ebx + 0x34], edi
fmul dword [0x3981b580]
mov dword [ebx + 0x30], edi
mov dword [ebp + 0x18], 0x3f83d70a
fst dword [ebx + 0x64]
fstp dword [ebx + 0x68]
mov eax, dword [ebx + 0x30]
fldz
test ah, 0x10
fstp dword [ebx + 0xa4]
je 0x54e43a
cmp ecx, edi
je 0x54e44c
test al, 2
je 0x54e443
mov eax, dword [ebx + 0x18]
jmp 0x54e446
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0xa4], eax
push dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
call fcn.005f16a8
cmp eax, edi
mov dword [ebx + 0x38], eax
jne 0x54e465
push 2
jmp 0x54e73c
cmp dword [eax + 0x34], edi
jne 0x54e73a
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebx + 8]
mov dword [ebp + 0x10], edi
push dword [ebx + 4]
mov dword [ebp + 0xc], edi
call fcn.0055448a
cmp dword [ebp + 0xc], edi
jne 0x54e73a
cmp dword [ebp + 0x10], edi
je 0x54e4b1
mov eax, dword [ebx + 0x28]
cmp eax, edi
je 0x54e4b1
mov cx, word [eax + 0x20]
push ecx
push dword [eax + 0x1c]
call fcn.00555b9a
test eax, eax
jne 0x54e73a
mov eax, dword [ebx + 0x38]
mov cx, word [eax + 0x3a]
mov word [ebx + 0xb0], cx
mov eax, dword [eax + 0xc]
mov ax, word [eax + 0x2a]
mov word [ebx + 0xb2], ax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xac], eax
movzx eax, word [ebx + 0xb2]
mov dword [ebp + 0x1c], eax
sub esp, 0x18
lea ecx, [ebx + 0x7c]
fild dword [ebp + 0x1c]
fdivr dword [ebx + 0x24]
fld dword [ebp + 0x14]
fmul st(1)
fst dword [ebp + 0x14]
fldz
fstp dword [esp + 0x14]
fldz
fstp dword [esp + 0x10]
fld st(1)
fmul dword [ebp + 8]
fstp dword [esp + 0xc]
fldz
fstp dword [esp + 8]
fldz
fstp dword [esp + 4]
fstp dword [esp]
fstp st(0)
call fcn.0054d7c4
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
movzx ecx, word [eax + 0x2e]
movzx eax, word [eax + 0x2c]
add ecx, eax
movzx eax, word [ebx + 0xb2]
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
mov dword [ebp + 8], eax
fmul dword [ebx + 0x24]
fidiv dword [ebp + 8]
fst dword [ebx + 0xb4]
fld dword [0x39801580]
fld dword [ebx + 0x64]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x54e577
fld dword [ebx + 0x24]
fmul dword [0x3981b588]
fadd st(1)
fstp dword [ebx + 0xb4]
fstp st(0)
push ecx
fld dword [ebp + 0x14]
fmul dword [0x39801e54]
fstp dword [esp]
call fcn.004df0c4
cmp eax, 0x10000
mov dword [ebx + 0xb8], eax
jg 0x54e73a
mov eax, dword [ebx + 0x34]
sub eax, edi
je 0x54e5d3
dec eax
je 0x54e5b4
dec eax
jne 0x54e5e8
fld dword [ebx + 0xa8]
fmul dword [ebx + 0x64]
jmp 0x54e5dc
fld dword [ebx + 0x64]
fcomp dword [ebx + 0x68]
fnstsw ax
test ah, 5
jp 0x54e5c6
fld dword [ebx + 0x64]
jmp 0x54e5c9
fld dword [ebx + 0x68]
fmul dword [ebx + 0xa8]
fadd st(0), st(0)
jmp 0x54e5dc
fld dword [ebx + 0x68]
fmul dword [ebx + 0xa8]
push ecx
fstp dword [esp]
call fcn.004e030d
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx]
fldz
push dword [ebx + 8]
fstp dword [ebx + 0x70]
mov eax, dword [eax + 0x2d0]
or dword [ebx + 0xc0], 0xffffffff
lea esi, [ebx + 0x74]
mov dword [esi], edi
lea edi, [ebx + 0xc4]
mov ecx, edi
mov dword [ebx + 0xbc], eax
call fcn.0054df18
mov ecx, edi
call fcn.0054d773
test eax, eax
je 0x54e6af
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 0x20]
xor edi, edi
push edi
push esi
push dword [ebx + 0xc8]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0054df6b
mov eax, dword [ebx + 0x28]
cmp eax, edi
je 0x54e65c
cmp dword [eax + 0x30], edi
je 0x54e65c
mov ecx, ebx
call fcn.0054d82b
test eax, eax
jne 0x54e73a
cmp dword [esi], edi
jle 0x54e785
test byte [ebx + 0x31], 4
jne 0x54e695
mov eax, dword [ebx + 0x38]
cmp dword [eax + 0x40], edi
jne 0x54e695
mov ax, word [eax + 0x38]
mov ecx, dword [ebx + 0xc8]
xor edx, edx
cmp dword [esi], edx
jle 0x54e68d
cmp word [ecx + edx*2], ax
je 0x54e68d
inc edx
cmp edx, dword [esi]
jl 0x54e682
cmp edx, dword [esi]
jl 0x54e73a
push dword [esi]
lea edi, [ebx + 0x14c]
mov ecx, edi
call fcn.0054df18
mov ecx, edi
call fcn.0054d773
test eax, eax
jne 0x54e6b6
push 3
jmp 0x54e73c
push dword [ebx + 0x150]
fld dword [ebp + 0x18]
xor edi, edi
push ecx
mov ecx, dword [ebx + 0x38]
fstp dword [esp]
push edi
push dword [ebx + 0x20]
push dword [esi]
push dword [ebx + 0xc8]
call fcn.005e5cb7
mov ecx, dword [ebx + 0x150]
xor eax, eax
cmp dword [esi], edi
mov dword [ebp + 8], edi
jle 0x54e6f4
movzx edx, word [ecx + eax*2]
add dword [ebp + 8], edx
inc eax
cmp eax, dword [esi]
jl 0x54e6e8
movzx eax, word [ebx + 0xb2]
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
fstp dword [ebp + 0x14]
fild dword [ebp + 8]
fmul dword [ebx + 0x24]
fdiv dword [ebp + 0x14]
fst dword [ebx + 0x78]
fld dword [ebx + 0xa4]
fcomp qword [0x398049b0]
fnstsw ax
test ah, 0x41
jne 0x54e744
fld st(0)
fadd dword [ebx + 0x68]
fadd dword [ebx + 0x64]
fcomp dword [ebx + 0xa4]
fnstsw ax
fstp st(0)
test ah, 0x41
jne 0x54e746
push 6
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x24
fstp st(0)
test byte [ebx + 0x31], 8
jne 0x54e785
cmp dword [esi], 0
jle 0x54e785
mov edx, dword [ebx + 0xc8]
mov di, word [ebx + 0xb0]
mov eax, dword [esi]
cmp word [edx + eax*2 - 2], di
jne 0x54e785
dec eax
mov dword [esi], eax
movzx eax, word [ecx + eax*2]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul dword [ebx + 0x24]
fdiv dword [ebp + 0x14]
fsubr dword [ebx + 0x78]
fstp dword [ebx + 0x78]
cmp dword [esi], 0
jg 0x54e75e
xor eax, eax
jmp 0x54e73d