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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x673bfc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0064dc20
lea ecx, [esp + 0x34]
call fcn.0064dc20
mov al, byte [esi + 0x1e0]
xor ebx, ebx
cmp al, bl
jne 0x515ff6
mov eax, dword [esi + 0x210]
mov edi, dword [ebp + 0xc]
cmp byte [eax], bl
jne 0x515fc7
mov ecx, dword [esi + 0x1e8]
mov edx, dword [esi + 0x1ec]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
jmp 0x515fdb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xb8]
fsub qword [esi + 0x1e8]
fstp qword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
push eax
lea eax, [esp + 0x8c]
push ecx
push eax
mov ecx, edi
jmp 0x5162ea
cmp al, 1
jne 0x51623c
lea ecx, [esp + 0xd0]
call fcn.0064dc20
lea ecx, [esp + 0xb8]
call fcn.0064dc20
lea ecx, [esp + 0x88]
call fcn.00473110
push 0xa
push ebx
lea ecx, [esp + 0x90]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x90], 0x69db4c
call fcn.0048b670
mov ecx, dword [esi + 0x98]
mov dword [esp + 0xf0], 1
call fcn.004da3a0
mov edi, eax
mov dword [esp + 0x4c], 0x69dbfc
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov eax, 0x69dbe8
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x78]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x54]
mov byte [esp + 0xf8], 4
push edx
push edi
call dword [eax + 0x11c]
cmp eax, ebx
je 0x5161a4
mov eax, dword [esi + 0x210]
cmp byte [eax], bl
jne 0x516115
mov edx, dword [edi]
lea eax, [esp + 0xa0]
push eax
mov ecx, edi
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jmp 0x516150
mov eax, dword [edi]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, edi
call dword [eax + 0x84]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
sub esp, 0x18
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0064dc70
lea eax, [esp + 0x64]
push eax
call fcn.00468a00
mov edx, dword [esp + 0x6c]
lea ecx, [eax + eax*2]
add esp, 0x1c
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov edi, 0x69dbe8
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x64]
mov byte [esp + 0xf0], 5
cmp eax, ebx
je 0x5161c6
push eax
call fcn.0065e732
add esp, 4
mov esi, 0x691080
mov dword [esp + 0x74], edi
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x78]
mov byte [esp + 0xf0], 6
cmp eax, ebx
je 0x5161ec
push eax
call fcn.0065e732
add esp, 4
mov dword [esp + 0x74], esi
mov dword [esp + 0x4c], 0x69dbfc
mov eax, dword [esp + 0x50]
mov byte [esp + 0xf0], 7
cmp eax, ebx
je 0x516211
push eax
call fcn.0065e732
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x4c], esi
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x88], 0x69db4c
call fcn.004602f0
jmp 0x516319
cmp al, 2
jne 0x516319
mov eax, dword [esi + 0x200]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jle 0x516319
mov eax, dword [esi + 0x1fc]
mov ecx, dword [eax + edi*4]
call fcn.004da3a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xb8]
fld qword [esp + 0x14]
fadd st(1)
fst qword [esp + 0x14]
fcomp qword [esi + 0x1e8]
fnstsw ax
test ah, 1
je 0x5162a4
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
fstp st(0)
jl 0x516268
jmp 0x516319
mov eax, dword [esi + 0x210]
cmp byte [eax + edi], bl
jne 0x5162c3
fld qword [esp + 0x14]
fsub st(1)
fsubr qword [esi + 0x1e8]
fstp qword [esp + 0xc]
fstp st(0)
jmp 0x5162d3
fstp st(0)
fld qword [esp + 0x14]
fsub qword [esi + 0x1e8]
fstp qword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0xa8]
push eax
call dword [edx + 0x94]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0064dc70
mov ecx, dword [esp + 0xe8]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8