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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x79a7a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
cmp ebx, esi
push edi
jl 0x511a2d
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp ebx, eax
jge 0x511a2d
cmp eax, 1
jle 0x511a2d
cmp eax, 2
jne 0x511601
dec eax
cmp ebx, eax
jne 0x511355
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
push ebx
push 0xffffffffffffffff
jmp 0x511362
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 1
push edi
call fcn.00511a50
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call fcn.004fbe30
fst qword [esp + 0x1c]
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x5113b6
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
jmp 0x5114a1
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.004fc710
fld st(0)
fsub qword [0x7cb8b0]
fabs
fcomp qword [0x7cb888]
fnstsw ax
test ah, 1
je 0x511407
fld st(0)
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x511407
fstp st(0)
fld qword [0x7ca980]
fld qword [0x7ca988]
jmp 0x511419
fmul qword [0x7cc740]
fst qword [esp + 0x3c]
fcos
fld qword [esp + 0x3c]
fsin
mov eax, dword [edi + 4]
fmul qword [esp + 0x1c]
mov esi, dword [eax + ebx*8]
mov ebx, dword [eax + ebx*8 + 4]
call fcn.007496f4
fmul qword [esp + 0x1c]
sub esi, eax
call fcn.007496f4
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esp + 0x18]
push ebx
push esi
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.004fc5c0
mov ecx, dword [eax]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [eax + 4]
push esi
push ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
call fcn.004fb030
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
fstp qword [esp + 0xc]
push eax
push ecx
push esi
push ebx
call fcn.004fb030
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 1
je 0x51149f
fld qword [esp + 0x1c]
fchs
fstp qword [esp + 0x1c]
xor esi, esi
mov eax, dword [edi + 8]
mov dword [esp + 0x44], esi
test eax, eax
jle 0x511a2d
mov ebx, dword [ebp + 0x18]
dec eax
cmp esi, eax
jne 0x5114c7
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push esi
push 0xffffffffffffffff
jmp 0x5114d4
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push 1
push edi
call fcn.00511a50
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.004fc710
fld st(0)
fsub qword [0x7cb8b0]
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 1
je 0x51152b
fld st(0)
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x51152b
fstp st(0)
fld qword [0x7ca980]
fld qword [0x7ca988]
jmp 0x51153d
fmul qword [0x7cc740]
fst qword [esp + 0x3c]
fcos
fld qword [esp + 0x3c]
fsin
mov ecx, dword [edi + 4]
fmul qword [esp + 0x1c]
mov edx, dword [ecx + esi*8]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + esi*8 + 4]
mov dword [esp + 0x28], eax
call fcn.007496f4
mov edx, dword [esp + 0x24]
fmul qword [esp + 0x1c]
sub edx, eax
mov dword [esp + 0x24], edx
call fcn.007496f4
mov ecx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [ebp + 0x14]
cmp esi, eax
mov dword [esp + 0x28], ecx
jne 0x5115a4
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
mov dword [esp + 0x48], eax
inc eax
push eax
mov ecx, ebx
call fcn.005fc3f0
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x44]
mov edx, dword [ebp + 0xc]
mov dword [ecx + eax*8], edx
mov edx, dword [ebp + 0x10]
mov dword [ecx + eax*8 + 4], edx
jmp 0x5115da
mov esi, dword [ebx + 8]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
lea edx, [esi + 1]
push 0xffffffffffffffff
push edx
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.005fc3f0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], edx
mov esi, dword [esp + 0x44]
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x44], esi
jl 0x5114b3
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x7cb8e8
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xa0], 1
call fcn.005fc3f0
mov eax, dword [edi + 8]
test eax, eax
jle 0x51169d
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x54]
push 0xffffffffffffffff
mov ecx, dword [eax + esi*8]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x50]
mov edx, dword [eax + esi*8 + 4]
lea eax, [ebx + 1]
push eax
mov dword [esp + 0x18], edx
call fcn.005fc3f0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xc]
inc esi
mov dword [ecx + ebx*8], edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
mov dword [eax + ebx*8 + 4], ecx
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x511656
mov ebx, dword [ebp + 0x14]
mov edx, dword [esp + 0x54]
lea eax, [edx - 1]
cmp ebx, eax
jne 0x5116b7
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push 0xffffffffffffffff
jmp 0x5116c4
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push 1
lea edx, [esp + 0x5c]
push edx
call fcn.00511a50
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 0xc]
push eax
push ecx
push esi
push edx
call fcn.004fbe30
fst qword [esp + 0x14]
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x51171c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x511814
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.004fc710
fld st(0)
fsub qword [0x7cb8b0]
fabs
fcomp qword [0x7cb888]
fnstsw ax
test ah, 1
je 0x51176d
fld st(0)
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x51176d
fstp st(0)
fld qword [0x7ca980]
fld qword [0x7ca988]
jmp 0x51177f
fmul qword [0x7cc740]
fst qword [esp + 0xc]
fcos
fld qword [esp + 0xc]
fsin
fmul qword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov edi, dword [eax + ebx*8]
mov ebx, dword [eax + ebx*8 + 4]
fchs
fstp qword [esp + 0xc]
fmul qword [esp + 0x14]
fld qword [esp + 0xc]
call fcn.007496f4
add edi, eax
call fcn.007496f4
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add ebx, eax
mov eax, dword [esp + 0x20]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.004fc5c0
mov ecx, dword [eax]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [eax + 4]
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004fb030
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
fstp qword [esp + 0x24]
push eax
push ecx
push esi
push edi
call fcn.004fb030
fld qword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x511814
fld qword [esp + 0x14]
fchs
fstp qword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x60], 0x7cb8e8
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x98], 2
cmp eax, edi
jle 0x511971
dec eax
cmp edi, eax
jne 0x511856
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
push eax
push edi
push 0xffffffffffffffff
jmp 0x511863
lea edx, [esp + 0x34]
lea eax, [esp + 0x1c]
push edx
push eax
push edi
push 1
lea ecx, [esp + 0x5c]
push ecx
call fcn.00511a50
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.004fc710
fld st(0)
fsub qword [0x7cb8b0]
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 1
je 0x5118be
fld st(0)
fabs
fcomp qword [0x7cc738]
fnstsw ax
test ah, 0x41
je 0x5118be
fstp st(0)
fld qword [0x7ca980]
fld qword [0x7ca988]
jmp 0x5118d0
fmul qword [0x7cc740]
fst qword [esp + 0xc]
fcos
fld qword [esp + 0xc]
fsin
fmul qword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov esi, dword [eax + edi*8]
fchs
fstp qword [esp + 0xc]
mov dword [esp + 0x3c], esi
mov ebx, dword [eax + edi*8 + 4]
fmul qword [esp + 0x14]
fld qword [esp + 0xc]
call fcn.007496f4
add esi, eax
mov dword [esp + 0x3c], esi
call fcn.007496f4
add ebx, eax
mov eax, dword [ebp + 0x14]
cmp edi, eax
mov dword [esp + 0x40], ebx
jne 0x511938
mov esi, dword [esp + 0x68]
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
lea eax, [esi + 1]
push eax
call fcn.005fc3f0
mov ecx, dword [esp + 0x64]
mov edx, dword [ebp + 0xc]
mov dword [ecx + esi*8], edx
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x10]
mov dword [eax + esi*8 + 4], ecx
jmp 0x511962
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x68]
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
lea edx, [esi + 1]
push edx
call fcn.005fc3f0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
mov dword [eax + esi*8], ecx
mov edx, dword [esp + 0x64]
mov dword [edx + esi*8 + 4], ebx
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
jl 0x511842
xor edi, edi
mov ebx, dword [ebp + 0x18]
push 0xffffffffffffffff
push edi
mov ecx, ebx
call fcn.005fc3f0
mov eax, dword [esp + 0x68]
xor esi, esi
test eax, eax
jle 0x5119c6
mov eax, dword [esp + 0x64]
mov edi, dword [ebx + 8]
push 0xffffffffffffffff
mov ecx, dword [eax + esi*8]
mov edx, dword [eax + esi*8 + 4]
lea eax, [edi + 1]
mov dword [esp + 0x10], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x18], edx
call fcn.005fc3f0
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
inc esi
mov dword [ecx + edi*8], edx
mov dword [ecx + edi*8 + 4], eax
mov eax, dword [esp + 0x68]
cmp esi, eax
jl 0x511988
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x54]
call fcn.005fc3f0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x68]
call fcn.005fc3f0
mov esi, 0x7cb8e8
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x64]
mov byte [esp + 0x98], 3
cmp eax, edi
je 0x511a0d
push eax
call fcn.007604d0
add esp, 4
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], 5
cmp eax, edi
je 0x511a2d
push eax
call fcn.007604d0
add esp, 4
mov ecx, dword [esp + 0x90]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14