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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3f4
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [edi + 8]
add eax, 0x20
add ecx, 0x20
push eax
push ecx
lea ecx, [esp + 0x3c8]
call fcn.0054c890
mov eax, dword [ebp + 0x10]
fld dword [eax + 8]
mov ecx, dword [esi]
fmul dword [0x6431e4]
mov edx, dword [ecx]
lea esi, [esp + 0x60]
push esi
fstp dword [esp + 0x20]
push ecx
fld dword [esp + 0x24]
fadd dword [eax + 8]
lea eax, [esp + 0x3c8]
fstp dword [esp]
push eax
call dword [edx + 0x18]
mov al, byte [0x6a72fa]
test al, al
je 0x518d3b
fld dword [ebx + 0x30]
fsub dword [esp + 0x70]
fld dword [ebx + 0x34]
fsub dword [esp + 0x74]
fld dword [ebx + 0x38]
fsub dword [esp + 0x78]
fstp dword [esp + 0x38]
fld dword [ebx + 0x3c]
fsub dword [esp + 0x7c]
fstp dword [esp + 0x3c]
fxch st(1)
fabs
fstp dword [esp + 0x30]
fabs
fld dword [esp + 0x38]
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fabs
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jp 0x518c12
mov cl, 1
jmp 0x518c14
xor cl, cl
fld dword [esp + 0x1c]
mov byte [esp + 0x23], 1
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x518c2d
mov byte [esp + 0x23], 0
fld dword [esp + 0x1c]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x518c40
mov dl, 1
jmp 0x518c42
xor dl, dl
fld dword [esp + 0x1c]
mov byte [esp + 0x1b], 1
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jnp 0x518c5b
mov byte [esp + 0x1b], 0
xor eax, eax
mov al, byte [esp + 0x23]
shl edx, 1
neg ecx
shl ecx, 3
shl eax, 2
or edx, eax
or edx, ecx
or edx, dword [esp + 0x1b]
test dl, 0xe
jne 0x518d3b
fld dword [ebx + 0x20]
fsub dword [esp + 0x60]
fld dword [ebx + 0x24]
fsub dword [esp + 0x64]
fld dword [ebx + 0x28]
fsub dword [esp + 0x68]
fstp dword [esp + 0x38]
fld dword [ebx + 0x2c]
fsub dword [esp + 0x6c]
fstp dword [esp + 0x3c]
fxch st(1)
fabs
fstp dword [esp + 0x30]
fabs
fld dword [esp + 0x38]
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fabs
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jp 0x518cd1
mov cl, 1
jmp 0x518cd3
xor cl, cl
fld dword [esp + 0x1c]
mov byte [esp + 0x1b], 1
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x518cec
mov byte [esp + 0x1b], 0
fld dword [esp + 0x1c]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x518cff
mov dl, 1
jmp 0x518d01
xor dl, dl
fld dword [esp + 0x1c]
mov byte [esp + 0x23], 1
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jnp 0x518d1a
mov byte [esp + 0x23], 0
xor eax, eax
mov al, byte [esp + 0x1b]
shl edx, 1
neg ecx
shl ecx, 3
shl eax, 2
or edx, eax
or edx, ecx
or edx, dword [esp + 0x23]
test dl, 0xe
je 0x5193af
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0x78]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x70]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], edx
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x1bc]
mov dword [ebx + 0x38], ecx
mov dword [esp + 0x1b0], eax
lea eax, [esp + 0x1b0]
mov dword [ebx + 0x3c], edx
mov esi, dword [edi]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0x80000080
mov edx, dword [esi]
push ecx
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 8]
mov dword [esp + 0x90], eax
mov al, byte [0x9610bd]
test al, al
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], edx
je 0x51907c
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
lea esi, [ebx + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x8c], ecx
lea ecx, [edi + edx*4]
cmp edi, ecx
mov edx, dword [esp + 0x1b0]
lea eax, [edx + eax*4]
mov dword [esp + 0x28], ecx
mov ebx, edx
mov dword [esp + 0x2c], eax
je 0x518ed6
cmp ebx, eax
je 0x518e23
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x518e23
add ebx, 4
jmp 0x518ec7
cmp edx, eax
mov ebx, edx
mov dword [esp + 0x1c], ebx
je 0x518e43
mov ecx, dword [edi]
nop
cmp ecx, dword [ebx]
je 0x518f82
add ebx, 4
cmp ebx, eax
jne 0x518e30
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esi + 4]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
mov ecx, edi
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [esi + 4]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jge 0x518eae
lea ecx, [eax + eax*2]
shl ecx, 2
mov dword [esp + 0x24], ecx
lea esp, [esp]
mov edx, dword [esi]
add ecx, edx
lea edx, [ecx + 0xc]
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
inc eax
add ecx, 0xc
cmp eax, edx
mov dword [esp + 0x24], ecx
jl 0x518e80
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1b0]
sub edi, 0xc
sub eax, 0xc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add edi, 0xc
cmp edi, ecx
jne 0x518e11
mov eax, dword [esi + 4]
cmp dword [esp + 0x1b4], eax
je 0x51938d
mov edi, dword [esi]
mov ebx, dword [esp + 0x1b4]
lea ecx, [eax + eax*2]
lea ecx, [edi + ecx*4]
lea ebx, [edx + ebx*4]
cmp edx, ebx
mov dword [esp + 0x24], ecx
mov ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x58], ebx
je 0x51938d
mov edi, edi
cmp edi, dword [esp + 0x24]
je 0x518f20
mov ebx, dword [edi]
cmp ebx, dword [ecx]
je 0x519061
mov edi, ecx
sub edi, edx
lea ebx, [eax + 1]
sar edi, 2
sub eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
and eax, 0x7fffffff
cmp eax, ebx
mov dword [esp + 0x28], ebx
jge 0x518f54
add eax, eax
cmp ebx, eax
jl 0x518f48
mov eax, ebx
push 0xc
push eax
push esi
call fcn.0054d250
add esp, 0xc
mov edx, dword [esi]
mov ecx, dword [esp + 0x2c]
lea eax, [edi + edi*2]
shl eax, 2
dec ecx
lea edi, [edx + eax]
lea edx, [edi + 0xc]
mov dword [esp + 0x5c], edx
js 0x518fb8
lea ebx, [ecx + ecx*2]
lea edx, [edx + ebx*4]
sub edi, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], ecx
jmp 0x518f92
mov dword [esp + 0x1c], ebx
add ebx, 4
jmp 0x518ec7
mov edi, dword [esp + 0x2c]
add edi, edx
mov ebx, dword [edi]
mov ecx, edx
mov dword [ecx], ebx
mov ebx, dword [edi + 4]
mov dword [ecx + 4], ebx
mov edi, dword [edi + 8]
mov dword [ecx + 8], edi
mov ecx, dword [esp + 0x24]
sub edx, 0xc
dec ecx
mov dword [esp + 0x24], ecx
jne 0x518f8e
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov edi, dword [esi]
mov ecx, dword [esp + 0x90]
mov dword [esi + 4], ebx
mov ebx, dword [edx]
lea edx, [esp + 0xb0]
push edx
add edi, eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x34]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push ebx
mov ebx, dword [esp + 0x94]
push ebx
lea ebx, [esp + 0x9c]
push ebx
mov ebx, dword [ebp + 8]
push ebx
push eax
lea eax, [esp + 0x2f]
push eax
call dword [edx]
cmp byte [eax], 0
je 0x519037
mov ecx, dword [esp + 0x8c]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [esp + 0x9c]
push eax
mov ecx, ebx
push ecx
call dword [ebp + 0x14]
add esp, 0x10
jmp 0x51903c
call fcn.00525d20
mov edx, dword [esp + 0x1c]
mov dword [edi + 8], eax
mov eax, dword [edx]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea ecx, [eax + eax*2]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x1b0]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x58]
add ecx, 4
add edi, 0xc
cmp ecx, ebx
mov dword [esp + 0x1c], ecx
jne 0x518f10
jmp 0x51938d
mov ecx, dword [esp + 0x1b4]
cmp ecx, 1
mov byte [esp + 0x58], 0
jle 0x5190ad
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x1b0]
push edx
dec ecx
push ecx
push 0
push eax
call fcn.00518960
mov ecx, dword [esp + 0x1c4]
add esp, 0x10
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
mov esi, dword [esp + 0x1b0]
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], edx
lea edx, [edi + eax*4]
lea eax, [esi + ecx*4]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
call fcn.005189e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1b4]
and eax, 0x7fffffff
cmp eax, ecx
mov dword [esp + 0x58], ecx
jge 0x51910c
add eax, eax
cmp ecx, eax
jl 0x5190fc
mov eax, ecx
push 0xc
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0054d250
add esp, 0xc
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
cmp edi, eax
mov dword [esp + 0x34], edx
je 0x51924e
jmp 0x519130
cmp esi, dword [esp + 0x24]
je 0x519231
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
mov dword [esp + 0x5c], eax
jne 0x51916e
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
add edx, 0xc
add edi, 0xc
mov dword [esp + 0x1c], edx
add esi, 4
jmp 0x519223
jae 0x519212
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx]
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x98], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x94], eax
mov edx, dword [esi]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x94]
push edx
lea edx, [esp + 0x9c]
push edx
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0x10]
push edx
lea edx, [esp + 0x2f]
push edx
call dword [eax]
cmp byte [eax], 0
je 0x5191f2
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [esp + 0x9c]
push edx
push eax
call dword [ebp + 0x14]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + 8], eax
jmp 0x5191fe
call fcn.00525d20
mov edx, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
mov dword [eax], ecx
add eax, 0xc
mov dword [esp + 0x1c], eax
add esi, 4
jmp 0x519223
mov eax, dword [edi + 8]
test eax, eax
je 0x519220
mov ecx, eax
mov edx, dword [ecx]
call dword [edx + 0x14]
add edi, 0xc
mov eax, dword [esp + 0x28]
cmp edi, eax
jne 0x519130
jmp 0x51924e
cmp edi, eax
je 0x51924e
mov eax, dword [edi + 8]
test eax, eax
je 0x519243
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esp + 0x28]
add edi, 0xc
cmp edi, eax
jne 0x519235
cmp esi, dword [esp + 0x24]
je 0x5192fe
jmp 0x519260
mov edi, dword [esi]
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx]
lea eax, [esp + 0xb0]
push eax
push edi
call dword [edx + 0x34]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], eax
mov edi, dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edi
mov edi, dword [esp + 0x94]
push edi
lea edi, [esp + 0x9c]
push edi
mov edi, dword [ebp + 8]
push edi
push eax
lea eax, [esp + 0x2f]
push eax
call dword [edx]
cmp byte [eax], 0
je 0x5192d4
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x10]
push ecx
push edx
lea eax, [esp + 0x9c]
push eax
mov ecx, edi
push ecx
call dword [ebp + 0x14]
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov dword [edx + 8], eax
jmp 0x5192e0
call fcn.00525d20
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
mov dword [eax], edx
add eax, 0xc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esi, 4
cmp esi, eax
jne 0x519260
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x34]
mov eax, ecx
and eax, 0x7fffffff
cmp eax, edx
jge 0x51934e
test ecx, ecx
js 0x51932c
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
lea eax, [eax + eax*2]
push 0x12
shl eax, 2
push eax
mov eax, dword [ebx + 0xc]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x9617f0]
mov edx, dword [ecx]
lea eax, [eax + eax*2]
push 0x12
shl eax, 2
push eax
call dword [edx + 0x10]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], edx
test edx, edx
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x10], edx
jle 0x51937d
mov eax, dword [esp + 0x30]
lea esp, [esp]
mov esi, eax
mov ebx, dword [esi]
mov edi, ecx
mov dword [edi], ebx
mov ebx, dword [esi + 4]
mov dword [edi + 4], ebx
mov esi, dword [esi + 8]
add eax, 0xc
add ecx, 0xc
dec edx
mov dword [edi + 8], esi
jne 0x519360
lea ecx, [esp + 0x30]
call fcn.00518a50
mov edx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x1b8]
test eax, eax
js 0x5193af
mov ecx, dword [0x9617f0]
mov esi, dword [ecx]
and eax, 0x7fffffff
push 0x12
shl eax, 2
push eax
push edx
call dword [esi + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10