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

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x40]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x7a39fc]
mov dword [esp + 0x2c], 0x40400000
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], eax
mov ecx, dword [ecx + 8]
push eax
call fcn.004ae780
mov ebx, eax
test ebx, ebx
jne 0x515b1c
mov eax, dword [0x745dc4]
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4
mov ecx, dword [esi + 0xfc]
cmp dword [ecx], 0
push edi
je 0x515b4e
call fcn.005e9c80
mov edi, eax
test edi, edi
je 0x515b43
mov ecx, edi
call fcn.004cc4d0
push edi
call fcn.006fa390
add esp, 4
mov ecx, dword [esi + 0xfc]
cmp dword [ecx], 0
jne 0x515b28
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0x78]
test eax, eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
jle 0x515f74
lea edx, [esp + 0x88]
push edx
push 3
lea eax, [esp + 0xa4]
push eax
push 2
lea ecx, [esp + 0xa8]
push ecx
xor eax, eax
mov ax, word [ebp + 0x6c]
push 2
lea edx, [esp + 0x94]
push edx
push 2
mov ecx, esi
push eax
push 0x2d
call fcn.004ccb00
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
xor edx, edx
mov dx, word [ebp + 0x6c]
push 0
lea ecx, [esp + 0x90]
push ecx
push 2
mov ecx, esi
push edx
push 0x1e
call fcn.004ccb00
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.006fc447
cdq
mov ecx, 0xf
idiv ecx
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fsub dword [0x747c6c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
call fcn.006fc447
cdq
mov ecx, 0xf
idiv ecx
push 0
push 1
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
fsub dword [0x747c6c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
mov ecx, ebx
call fcn.004bc380
fstp dword [esp + 0x2c]
fld dword [esp + 0x24]
lea edi, [esi + 0x90]
fsub dword [edi]
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x44]
fld dword [esp + 0x28]
mov dword [esp + 0x14], eax
fsub dword [edi + 4]
lea eax, [esp + 0x14]
push eax
fstp dword [esp + 0x4c]
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
fsub dword [edi + 8]
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edx
call fcn.004ab100
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
fmul dword [0x746d38]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x8c]
push eax
fstp dword [esp + 0x70]
mov dword [esp + 0x74], ecx
call fcn.004ab180
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x340]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
mov dword [ebx + 0x1ac], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x340]
mov edx, dword [eax + 4]
add esp, 0xc
push 0
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0x14]
push 0
mov ecx, eax
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
push edx
lea eax, [esp + 0x34]
push eax
push edi
mov ecx, ebx
mov dword [esp + 0x38], 0x14
call fcn.004bcb70
cmp eax, 1
je 0x515f07
mov edi, edi
fld dword [esp + 0x10]
fmul dword [0x73e31c]
fst dword [esp + 0x10]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 5
jp 0x515e55
call fcn.006fc447
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x3f800000
call fcn.004ab210
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 8]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x3f800000
call fcn.004ab210
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
fld dword [esp + 0x2c]
mov edx, dword [eax + 4]
fchs
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], edx
fld dword [esp + 0x30]
mov eax, dword [eax + 8]
fchs
mov dword [esp + 0x34], eax
fstp dword [esp + 0x60]
fld dword [esp + 0x34]
mov edx, dword [esp + 0x60]
fchs
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x80]
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x64]
add esp, 0x18
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
fld dword [esp + 0x14]
fmul dword [esp + 0x10]
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x8c]
fxch st(1)
fadd dword [edi]
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x24], edx
fadd dword [edi + 4]
fstp dword [esp + 0x70]
fld dword [esp + 0x8c]
mov eax, dword [esp + 0x70]
fadd dword [edi + 8]
mov dword [esp + 0x28], eax
fstp dword [esp + 0x74]
fld dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
fcomp dword [0x73d764]
mov dword [esp + 0x2c], ecx
fnstsw ax
test ah, 5
jnp 0x516001
mov eax, dword [esp + 0x20]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x20], eax
jl 0x516001
mov eax, dword [esi + 0x340]
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 0x14]
push 0
mov eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x34]
push edx
push edi
mov ecx, ebx
call fcn.004bcb70
cmp eax, 1
jne 0x515d60
push 0
push 0
push 0
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x64]
push eax
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
xor eax, eax
mov ax, word [ebp + 0x6c]
push 0x7f000000
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, esi
mov dword [esp + 0x98], 0
push eax
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
call fcn.004f8a50
mov eax, dword [0x745dc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4
lea ecx, [esp + 0x88]
push ecx
push 3
lea edx, [esp + 0xa4]
push edx
push 2
lea eax, [esp + 0xa8]
push eax
xor edx, edx
mov dx, word [ebp + 0x6c]
push 2
lea ecx, [esp + 0x94]
push ecx
push 2
mov ecx, esi
mov dword [esp + 0x98], 0x41700000
push edx
push 0x2d
call fcn.004ccb00
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
xor ecx, ecx
mov cx, word [ebp + 0x6c]
push 0
lea eax, [esp + 0x90]
push eax
push 2
push ecx
push 0x1e
mov ecx, esi
call fcn.004ccb00
mov eax, dword [0x745dc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4