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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51aa60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x14]
push ebx
mov ecx, dword [eax]
call fcn.0040a240
mov ecx, eax
call fcn.00493a90
fptan
fstp st(0)
fcomp qword [0x520dc0]
fnstsw ax
test ah, 0x41
jne 0x4be72e
fld qword [esi + 0x60]
fmul qword [0x523268]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x3ff00000
fsubr qword [esi + 0x40]
fstp qword [esp + 0x2c]
jmp 0x4be751
fld qword [esi + 0x60]
fmul qword [0x523268]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xbff00000
fadd qword [esi + 0x50]
fstp qword [esp + 0x2c]
mov edi, dword [ebp + 0x14]
push 0x4be2f0
push 4
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
nop
call 0x6090c4
add esp, 0x10
mov dword [esp + 0x40], 0x522d18
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [esi + 0x18]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], ebx
call fcn.004de680
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov ecx, dword [esp + 0x44]
mov ebx, eax
dec eax
test ebx, ebx
je 0x4be7b6
inc eax
mov ebx, dword [edx]
add edx, 4
mov dword [ecx], ebx
add ecx, 4
dec eax
jne 0x4be7a9
mov eax, dword [ebp + 8]
test al, al
je 0x4be7c5
mov edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
jmp 0x4be7d5
fld qword [esp + 0x1c]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
fchs
fstp qword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
push edi
push edx
mov edx, dword [esp + 0x30]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.004be450
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x48]
fstp st(0)
call fcn.004de680
mov eax, dword [edi + 8]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x4be883
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
mov esi, dword [edx + eax*4]
mov eax, dword [esp + 0x4c]
add esi, 0x10
mov ebx, eax
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
lea ecx, [esp + 0x48]
call fcn.004de680
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
lea ecx, [edx + ebx*4]
mov edx, eax
dec eax
test edx, edx
je 0x4be86f
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x4be862
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4be829
mov ebx, dword [esp + 0x30]
mov esi, dword [ebp + 0x18]
push 0x4be2f0
push 4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
nop
call 0x6090cd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esp, 0x10
lea eax, [esp + 0x40]
push esi
push eax
mov eax, dword [esp + 0x2c]
push ebx
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
call fcn.004be450
fstp qword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x54], 0x5294c8
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov edi, dword [esi + 8]
mov byte [esp + 0x70], 1
dec edi
js 0x4be927
jmp 0x4be8fa
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], eax
inc eax
push 0xffffffffffffffff
mov edx, dword [ecx + edi*4]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], edx
call fcn.004de680
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec edi
mov dword [eax + edx*4], ecx
jns 0x4be8f6
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edi
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
call fcn.004be450
fcomp qword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4be98e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push edi
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
call fcn.004be450
fstp st(0)
mov dword [esp + 0x54], 0x5294c8
mov eax, dword [esp + 0x58]
mov byte [esp + 0x70], 2
test eax, eax
je 0x4be9ac
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x54], 0x520384
mov dword [esp + 0x40], 0x522d18
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], 3
test eax, eax
je 0x4be9d5
push eax
call fcn.0050b204
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14