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

Disassembly:
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x68]
push esi
push edi
push eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
lea ecx, [ebp + 0x14]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00517390
fld dword [ebp + 0x28]
fmul dword [0x5da74c]
mov eax, 0x3f800000
mov ecx, 0x7f7fffff
fstp dword [esi + 0x28]
fld dword [ebp + 0x24]
fmul dword [0x5da74c]
fstp dword [esi + 0x2c]
fld dword [ebp + 0x20]
mov dword [esi + 0x34], eax
fmul dword [0x5da74c]
mov dword [esi + 0x44], eax
fstp dword [esi + 0x30]
fld dword [esi + 0x28]
fchs
fstp dword [esi + 0x38]
fld dword [esi + 0x2c]
fchs
fstp dword [esi + 0x3c]
fld dword [esi + 0x30]
fchs
fstp dword [esi + 0x40]
fld dword [ebp + 0x5c]
fld dword [ebp + 0x58]
fstp dword [esi + 0x3cc]
fstp dword [esi + 0x3d0]
fld dword [ebp + 0x64]
fld dword [ebp + 0x60]
fstp dword [esi + 0x3d4]
fstp dword [esi + 0x3d8]
fld dword [ebp + 0x74]
fld dword [ebp + 0x70]
fcom dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x5182a7
fstp st(0)
mov dword [esi + 0x3dc], ecx
jmp 0x5182ad
fstp dword [esi + 0x3dc]
fcom dword [0x60477c]
fnstsw ax
test ah, 5
jp 0x5182c4
fstp st(0)
mov dword [esi + 0x3e0], ecx
jmp 0x5182ca
fstp dword [esi + 0x3e0]
fld dword [ebp + 0x54]
mov edx, dword [esp + 0x150]
fld dword [ebp + 0x50]
xor edi, edi
fld dword [ebp + 0x4c]
fld dword [ebp + 0x48]
fld dword [ebp + 0x44]
fmul dword [0x5da74c]
fstp dword [esi + 0x3b8]
fstp dword [esi + 0x3bc]
fstp dword [esi + 0x3c0]
fstp dword [esi + 0x3c4]
fstp dword [esi + 0x3c8]
fld dword [ebp + 0x6c]
fstp dword [esi + 0x50]
mov ecx, dword [ebp + 0x78]
mov dword [esi + 0x64], ecx
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0x78]
test eax, eax
jle 0x518334
lea ebx, [ebp + 0x7c]
nop
push ebx
push edi
mov ecx, esi
call fcn.00517400
mov eax, dword [ebp + 0x78]
inc edi
add ebx, 0x34
cmp edi, eax
jl 0x518320
mov eax, dword [ebp + 0x21c]
mov dword [esi + 0x2e8], eax
mov eax, dword [ebp + 0x21c]
xor edi, edi
test eax, eax
jle 0x518369
lea ebx, [ebp + 0x220]
push ebx
push edi
mov ecx, esi
call fcn.00517470
mov eax, dword [ebp + 0x21c]
inc edi
add ebx, 0x20
cmp edi, eax
jl 0x518352
mov eax, dword [esp + 0x148]
fld dword [eax]
fmul dword [0x5da74c]
fld dword [eax + 4]
fmul dword [0x5da74c]
fld dword [eax + 8]
mov eax, dword [esp + 0x14c]
fmul dword [0x5da74c]
fstp dword [esp + 0x24]
fxch st(1)
fadd dword [esi + 0x28]
fstp dword [esp + 0x1c]
fadd dword [esi + 0x2c]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esi + 0x30]
fstp dword [esp + 0x24]
fld dword [eax]
fmul dword [0x5da740]
fmul dword [0x5da6c4]
fstp dword [esp + 0x28]
fld dword [eax + 4]
fmul dword [0x5da740]
fmul dword [0x5da6c4]
fsub dword [0x5da710]
fstp dword [esp + 0x2c]
fld dword [eax + 8]
mov dword [esi + 0x3e4], 0
mov ecx, dword [0x6897ac]
fchs
fmul dword [0x5da740]
push ecx
fmul dword [0x5da6c4]
fstp dword [esp + 0x34]
call fcn.005b94f0
push esi
push eax
mov dword [esi + 0x38c], eax
call fcn.005b9b70
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
push eax
xor ebx, ebx
push ecx
lea edx, [esp + 0x80]
push edx
mov dword [esi + 0x3e8], ebx
mov dword [esi + 0x3ec], ebx
mov dword [esi + 0x3f0], ebx
mov dword [esi + 0x3f8], ebx
call fcn.005c5ea0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xe8], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], ecx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x100], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x104], ecx
mov dword [esp + 0xf8], edx
mov edx, dword [esp + 0x94]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x110], edx
call fcn.005c5ab0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi + 0x38c]
push ecx
push edx
push eax
call fcn.005b9c20
mov ecx, dword [esi + 0x38c]
push 0x3e4ccccd
push ecx
call fcn.005bae60
mov edx, dword [esi + 0x38c]
push 0x3e4ccccd
push edx
call fcn.005bae00
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
lea eax, [esp + 0x120]
push eax
mov eax, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x4c]
push edx
push eax
push ecx
call fcn.005bc4a0
mov eax, dword [esi + 0x38c]
lea edx, [esp + 0x120]
push edx
push eax
call fcn.005b9fb0
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x38c]
push ecx
push edx
call fcn.005b9f30
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x38c]
push ecx
push edx
push eax
call fcn.005b9b90
mov eax, dword [0x61c288]
cmp eax, 0xffffffff
jne 0x518589
mov ecx, dword [0x6897b0]
push ecx
call fcn.005b8390
mov dword [0x61c288], eax
mov edx, dword [0x6897b8]
push eax
mov eax, dword [0x6897b0]
push edx
push eax
call fcn.005b81e0
mov edi, eax
push 2
push edi
call fcn.005ba7a0
mov ecx, dword [esi + 0x3cc]
push ecx
push edi
call fcn.005ba990
mov edx, dword [esi + 0x3d0]
push edx
push edi
call fcn.005ba870
mov eax, dword [0x61c28c]
cmp eax, 0xffffffff
jne 0x5185da
mov eax, dword [0x6897b0]
push eax
call fcn.005b8390
mov dword [0x61c28c], eax
mov ecx, dword [0x6897b8]
mov edx, dword [0x6897b0]
push eax
push ecx
push edx
call fcn.005b81e0
mov edi, eax
push 2
push edi
call fcn.005ba7a0
push 0x3f000000
push edi
call fcn.005ba8e0
push 0x3ca3d70a
push edi
call fcn.005ba990
push 0x3a83126f
push edi
call fcn.005ba870
mov eax, dword [0x6897b8]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x517ba0
push eax
push ecx
push edx
call fcn.005b8400
mov eax, dword [0x6897b8]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x517e30
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x6897b8]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x5181c0
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c298]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x51a770
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c298]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x51a770
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2a8]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push eax
push ecx
push edx
call fcn.005b8240
test eax, eax
jne 0x518744
mov eax, dword [0x61c2a8]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2a8]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2ac]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2ac]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2a0]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push eax
push ecx
push edx
call fcn.005b8240
test eax, eax
jne 0x5187d9
mov eax, dword [0x61c2a0]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2a0]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c29c]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c29c]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c294]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push eax
push ecx
push edx
call fcn.005b8240
test eax, eax
jne 0x51886e
mov eax, dword [0x61c294]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c294]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c290]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c290]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c28c]
push eax
push eax
mov eax, dword [0x6897b0]
push eax
call fcn.005b8240
test eax, eax
jne 0x5188f0
mov eax, dword [0x61c28c]
mov ecx, dword [0x6897b0]
push 0x4f7a60
push eax
push eax
push ecx
call fcn.005b83a0
mov edx, dword [0x61c28c]
mov eax, dword [0x61c288]
mov ecx, dword [0x6897b0]
push 0x4f7a60
push edx
push eax
push ecx
call fcn.005b83a0
mov edx, dword [0x61c288]
mov eax, dword [0x61c28c]
mov ecx, dword [0x6897b0]
push 0x4f7a60
push edx
push eax
push ecx
call fcn.005b83a0
mov eax, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push eax
push edx
call fcn.005b83a0
mov eax, dword [0x61c2b4]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push eax
push ecx
push edx
call fcn.005b8240
test eax, eax
jne 0x518985
mov eax, dword [0x61c2b4]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2b4]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2b0]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2b0]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2bc]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push eax
push ecx
push edx
call fcn.005b8240
test eax, eax
jne 0x518a1a
mov eax, dword [0x61c2bc]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2bc]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2b8]
mov ecx, dword [0x61c28c]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
mov eax, dword [0x61c2b8]
mov ecx, dword [0x61c288]
mov edx, dword [0x6897b0]
push 0x4f7a60
push eax
push ecx
push edx
call fcn.005b83a0
cmp dword [esi + 0x64], ebx
mov dword [esp + 0x18], ebx
jle 0x518d68
lea eax, [ebp + 0xa4]
mov dword [esp + 0x10], eax
lea edi, [esi + 0x7c]
fld dword [edi - 0x10]
mov ecx, dword [0x6897ac]
fld st(0)
push ecx
fmul dword [esi + 0x50]
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
fmulp st(1)
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
fst dword [esp + 0x9c]
fst dword [esp + 0xac]
fstp dword [esp + 0xbc]
call fcn.005b94f0
push esi
push eax
mov dword [edi + 8], eax
call fcn.005b9b70
mov ebx, dword [edi + 8]
lea edx, [esp + 0x98]
push edx
push ebx
call fcn.005b9fb0
mov eax, dword [esi + 0x50]
push eax
push ebx
call fcn.005b9f30
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
push ebx
call fcn.005b9c20
fld dword [edi - 4]
fsub dword [esi + 0x28]
lea ecx, [edi - 4]
lea edx, [esp + 0x34]
lea eax, [esp + 0x28]
fstp dword [ecx]
fld dword [edi]
fsub dword [esi + 0x2c]
fstp dword [edi]
fld dword [edi + 4]
fsub dword [esi + 0x30]
fstp dword [edi + 4]
call fcn.00500270
push 0x3e4ccccd
push ebx
call fcn.005bae60
push 0x3e4ccccd
push ebx
call fcn.005bae00
fld dword [esp + 0x30]
fadd dword [esp + 0x24]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fadd dword [esp + 0x2c]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fadd dword [esp + 0x28]
fstp dword [esp]
push ebx
call fcn.005b9b90
mov eax, dword [esp + 0x10]
fld dword [eax - 0xc]
fmul dword [0x5da74c]
fstp dword [esp + 0x14]
fld dword [eax]
fmul dword [0x5da74c]
fstp dword [esp + 0x5c]
lea ecx, [edi + 0xc]
fld dword [eax - 4]
fmul dword [0x5da74c]
fstp dword [esp + 0x60]
fld dword [eax - 8]
mov al, byte [edi - 0x14]
test al, 0x20
fmul dword [0x5da74c]
fstp dword [esp + 0x64]
je 0x518b9c
mov edx, dword [esp + 0x14]
mov eax, dword [0x61c288]
push edx
mov edx, dword [edi + 8]
push eax
push edx
jmp 0x518bac
mov eax, dword [esp + 0x14]
mov edx, dword [0x61c288]
push eax
mov eax, dword [edi + 8]
push edx
push eax
call fcn.004f7750
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [edi + 0xc]
call fcn.004f7960
mov edx, dword [edi + 0x38]
xor ecx, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x30], ecx
mov ecx, dword [edi + 8]
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], ecx
push eax
lea ecx, [edi + 0xc]
mov dword [eax], edx
call fcn.004f6f10
mov edx, dword [0x6897a8]
push edx
lea ecx, [edi + 0xc]
call fcn.004f6e90
mov eax, dword [0x6897ac]
push eax
call fcn.005bc550
mov ecx, dword [edi + 8]
mov dword [edi + 0x34], eax
mov edx, dword [esi + 0x38c]
push ecx
push edx
push eax
call fcn.005bac70
push eax
call fcn.005bb950
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.005b98e0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [edi + 0x34]
push edx
push eax
push ecx
call fcn.005bac70
push eax
call fcn.005bb9d0
mov eax, dword [esi + 0x38c]
lea edx, [esp + 0xbc]
push edx
push eax
call fcn.005b9940
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0xd4]
push edx
mov edx, dword [esp + 0xd4]
push eax
mov eax, dword [esp + 0xd4]
push ecx
mov ecx, dword [edi + 0x34]
push edx
push eax
push ecx
call fcn.005bac70
push eax
call fcn.005bbf10
test byte [edi - 0x14], 2
jne 0x518c9e
mov edx, dword [edi + 0x34]
push 1
push edx
call fcn.005bc930
fld dword [esi + 0x28]
sub esp, 0xc
fdiv dword [esi + 0x14]
mov eax, dword [esi + 0x3bc]
mov edx, dword [edi + 0x34]
fmul dword [0x5da2f8]
fadd dword [0x5da6cc]
fmul dword [esi + 0x4c]
fld dword [esi + 0x3b8]
fld dword [esi + 0x3c4]
fld dword [esi + 0x3c8]
fmul st(2)
fld dword [0x684198]
fmul dword [0x684198]
fld dword [0x684194]
fmul dword [0x684194]
faddp st(1)
fld dword [0x684190]
fmul dword [0x684190]
faddp st(1)
fsqrt
fmul st(4)
fadd st(0), st(0)
fdiv st(1)
fstp dword [esp + 0x20]
fmul dword [0x5e7610]
fstp dword [esp + 8]
fld dword [0x5f53f4]
fsub st(1)
fmul st(2)
fstp dword [esp + 4]
fmul st(1)
fchs
fstp dword [esp]
push eax
fstp st(0)
push ecx
fmul dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fsqrt
fmul dword [esi + 0x3c0]
fstp dword [esp]
push ecx
push edx
call fcn.005bc7e0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x64]
inc eax
add ebx, 0x34
add edi, 0x50
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
jl 0x518a34
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x38c]
push ecx
push edx
push eax
call fcn.005b9b90
fld dword [ebp + 0x34]
fmul dword [0x5da74c]
mov edx, dword [0x61c28c]
mov eax, dword [esi + 0x38c]
fstp dword [esp + 0x44]
fld dword [ebp + 0x30]
lea ecx, [esp + 0x44]
fmul dword [0x5da74c]
push ecx
push edx
fstp dword [esp + 0x50]
fld dword [ebp + 0x2c]
lea edi, [esi + 0x390]
fmul dword [0x5da74c]
push eax
mov ecx, edi
fstp dword [esp + 0x58]
fld dword [ebp + 0x40]
fmul dword [0x5da74c]
fstp dword [esp + 0x5c]
fld dword [ebp + 0x3c]
fmul dword [0x5da74c]
fstp dword [esp + 0x60]
fld dword [ebp + 0x38]
fmul dword [0x5da74c]
fstp dword [esp + 0x64]
call fcn.004f77b0
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call fcn.004f7960
mov ecx, dword [esi + 0x38c]
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x3a8]
mov dword [esi + 0x3b0], ecx
push eax
mov ecx, edi
mov dword [eax], edx
mov dword [esi + 0x3ac], ebx
mov dword [esi + 0x3b4], ebx
call fcn.004f6f10
mov edx, dword [0x6897a8]
push edx
mov ecx, edi
call fcn.004f6e90
cmp dword [esi + 0x64], ebx
mov dword [esp + 0x18], ebx
jle 0x518e6d
lea ebx, [esi + 0x84]
lea eax, [ebx + 4]
push eax
mov ecx, edi
call fcn.004f7890
mov ecx, dword [ebx]
push ecx
call fcn.005ba2d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x64]
inc eax
add ebx, 0x50
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x518e45
xor ebx, ebx
mov edx, dword [esi + 0x38c]
push edx
call fcn.005ba2d0
mov eax, dword [esi + 0x64]
xor edi, edi
cmp eax, ebx
jle 0x518eb5
lea eax, [esi + 0xb0]
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.005bac70
push eax
call fcn.005bb7c0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x64]
inc edi
add ecx, 0x50
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x518e90
mov eax, dword [esi + 0x2e8]
xor ecx, ecx
cmp eax, ebx
jle 0x518eea
cmp cl, 0xff
jle 0x518edf
movsx eax, cl
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
mov dword [eax + 0x30c], 1
mov dword [eax + 0x308], ebx
mov eax, dword [esi + 0x2e8]
inc ecx
cmp ecx, eax
jl 0x518ec1
fld dword [ebp + 8]
fstp dword [esi + 0x54]
mov ecx, dword [ebp]
mov dword [esi + 0x58], ecx
mov edx, dword [ebp]
mov ecx, dword [esp + 0x158]
mov dword [esi + 0x60], edx
mov eax, dword [ebp + 4]
mov edx, dword [esi + 8]
or edx, 1
cmp ecx, ebx
mov dword [esi + 0x5c], eax
mov dword [esi + 8], edx
mov eax, edx
jne 0x518f2b
pop edi
or eax, 2
mov dword [esi + 8], eax
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 0x14
pop edi
and eax, 0xfffffffd
mov dword [esi + 8], eax
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 0x14