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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x553203
mov eax, 1
mov edi, eax
push 0
call fcn.005330f8
add esp, 4
mov esi, eax
cmp esi, 0x66dc40
jne 0x553223
mov eax, 0x66dc40
jmp 0x5536e5
add dword [0x68240c], 1
mov eax, ebx
inc dword [eax + 4]
mov ebx, eax
mov eax, dword [esi + 0xf4]
dec dword [eax + 4]
jne 0x553245
push eax
call fcn.004c1de0
add esp, 4
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xc], 0x4a
mov dword [esi + 0x90], edi
push 1
fld dword [ebp + 0x78]
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
push eax
call fcn.00659bc1
add esp, 8
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul dword [0x69b770]
fld dword [0x69b774]
fld dword [ebp + 0x74]
fucompp
fnstsw ax
sahf
sete al
movzx eax, al
cmp eax, 0
je 0x55329d
fstp st(0)
jmp 0x5532c7
fld dword [0x69b778]
sub esp, 8
fstp qword [esp]
fld dword [ebp + 0x74]
fmul dword [0x69b77c]
fsubrp st(1)
sub esp, 8
fstp qword [esp]
call fcn.004c18c0
add esp, 0x10
fstp dword [esi + 0x70]
jmp 0x5532cc
fldz
fstp dword [esi + 0x70]
fld dword [ebp + 0x80]
fstp dword [esi + 0xa8]
fld dword [ebp + 0x2c]
fstp dword [esi + 0x6c]
fld dword [esi + 0x6c]
fstp qword [ebp - 8]
fldz
sub esp, 8
fstp qword [esp]
fld dword [ebp + 0x7c]
sub esp, 8
fstp qword [esp]
call fcn.00659b80
add esp, 0x10
fld qword [ebp - 8]
faddp st(1)
fstp qword [ebp - 8]
fld qword [ebp - 8]
fstp dword [esi + 0x78]
fld dword [ebp + 0x54]
fstp dword [esi + 0x74]
fld dword [esi + 0x74]
fldz
fxch st(1)
fucompp
fnstsw ax
sahf
setbe al
movzx eax, al
cmp eax, 0
jne 0x55332d
fldz
fstp dword [esi + 0x6c]
mov eax, dword [ebp + 0x64]
mov dword [esi + 0xd8], eax
mov eax, dword [ebp + 0x84]
mov dword [esi + 0xdc], eax
cmp dword [ebp + 0x8c], 0
jne 0x553357
mov dword [esi + 0xe0], 2
jmp 0x553378
cmp dword [ebp + 0x8c], 0xffffffff
jne 0x55336c
mov dword [esi + 0xe0], 0
jmp 0x553378
mov eax, dword [ebp + 0x8c]
mov dword [esi + 0xe0], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0x40]
mov eax, dword [esi + 0x24]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0x44]
fld dword [esi + 0x40]
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
mov dword [esi + 0xcc], eax
fld dword [esi + 0x44]
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
mov dword [esi + 0xd0], eax
fld dword [ebp + 0x4c]
fmul dword [ebp + 0x60]
sub esp, 8
fstp qword [esp]
fld dword [ebp + 0x4c]
sub esp, 8
fstp qword [esp]
call fcn.00659b80
add esp, 0x10
fstp dword [esi + 0x64]
fld dword [ebp + 0x4c]
fstp dword [esi + 0x68]
fld dword [ebp + 0x50]
fstp dword [esi + 0xac]
fld dword [ebp + 0x5c]
fstp dword [esi + 0xb0]
fldz
sub esp, 8
fstp qword [esp]
fld dword [esi + 0x64]
fadd dword [esi + 0xac]
sub esp, 8
fstp qword [esp]
call fcn.004c18c0
add esp, 0x10
fstp dword [esi + 0x64]
fld dword [esi + 0xb0]
sub esp, 8
fstp qword [esp]
fld dword [esi + 0x64]
sub esp, 8
fstp qword [esp]
call fcn.004c18a0
add esp, 0x10
fstp dword [esi + 0x64]
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul dword [0x69b780]
fstp dword [esi + 0x50]
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0x60]
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0x58]
fldz
fstp dword [esi + 0x5c]
cmp dword [ebp + 0x40], 0
jne 0x55348c
push 1
push 0x168
call fcn.00659bc1
add esp, 8
mov edx, eax
jmp 0x5534e8
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul dword [0x69b784]
faddp st(1)
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
push eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul dword [0x69b788]
fsubp st(1)
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
push eax
call fcn.00659bc1
add esp, 8
mov edx, eax
cmp edx, 0
jge 0x5534f3
add edx, 0x168
fld dword [esi + 0x58]
fld dword [0x69b78c]
fxch st(1)
fucompp
fnstsw ax
sahf
sete al
movzx eax, al
cmp eax, 0
jne 0x553524
fld dword [esi + 0x58]
fld dword [0x69b790]
fxch st(1)
fucompp
fnstsw ax
sahf
sete al
movzx eax, al
cmp eax, 0
je 0x55355b
mov dword [ebp - 0xc], edx
fild dword [ebp - 0xc]
fstp dword [esi + 0x60]
fld dword [esi + 0x60]
fldz
fxch st(1)
fucompp
fnstsw ax
sahf
setae al
movzx eax, al
cmp eax, 0
jne 0x553555
fld dword [esi + 0x60]
fadd dword [0x69b794]
fstp dword [esi + 0x60]
fld dword [esi + 0x60]
fstp dword [esi + 0x5c]
push 0x167
push edx
call fcn.004c17f0
add esp, 8
mov edx, eax
mov eax, dword [0x682db0]
fld dword [eax + edx*4 + 0x18]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmulp st(1)
fstp dword [esi + 0x84]
mov eax, dword [0x682da8]
fld dword [eax + edx*4 + 0x18]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmulp st(1)
fstp dword [esi + 0x88]
fld dword [ebp + 0x68]
fmul dword [0x69b798]
fstp dword [esi + 0xa0]
fld dword [ebp + 0x6c]
fmul dword [0x69b79c]
fstp dword [esi + 0xa4]
mov eax, dword [ebp + 0x70]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 0x48]
mov dword [esi + 0x80], eax
mov ebx, dword [ebp + 0xc]
inc dword [ebx + 4]
mov eax, dword [esi + 0x10]
dec dword [eax + 4]
jne 0x5535e3
push eax
call fcn.004c1de0
add esp, 4
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x94], eax
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul dword [0x69b7a0]
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
push eax
mov eax, dword [ebp + 0x24]
neg eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fmul dword [0x69b7a4]
sub esp, 8
fstp qword [esp]
call fcn.0065d35c
add esp, 8
push eax
call fcn.00659bc1
add esp, 8
add ebx, eax
mov dword [esi + 0x98], ebx
mov eax, dword [ebp + 0x88]
mov dword [esi + 0x18], eax
cmp dword [ebp + 0x10], 0
jle 0x55367c
push 1
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
call fcn.00659bc1
add esp, 8
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0x14]
cmp dword [esi + 0x98], 0
jne 0x55367c
mov dword [esi + 0x94], 0
cmp dword [ebp + 0x10], 1
jg 0x553691
mov dword [esi + 0x94], 0
fldz
fstp dword [esi + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0xb4]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0xb8]
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp dword [esi + 0xbc]
fldz
fstp dword [esi + 0x3c]
mov dword [esi + 0xc4], 0x65d29c
mov dword [esi + 0xc8], 0x65d29c
mov dword [esi + 0xe8], 0
mov eax, esi
jmp 0x5536e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret