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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
xor edi, edi
cmp dword [esi + 0x50], edi
je 0x4be977
cmp dword [esi + 0x4c], edi
je 0x4be977
mov eax, dword [0x1325b3c]
xor ebp, ebp
xor ecx, ecx
cmp eax, edi
mov dword [0xa7b4ac], ebp
jle 0x4be4ac
mov eax, dword [0x1325b40]
lea edx, [eax + 0x18]
mov eax, dword [esp + 0xa8]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x4be497
fld dword [edx - 0x18]
fsub dword [edx]
lea edi, [edx - 0x18]
fcomp dword [esi + 0x20]
fnstsw ax
and eax, 0x4100
je 0x4be483
fld dword [edx]
fadd dword [edi]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 5
jnp 0x4be483
fld dword [edx - 0x14]
fsub dword [edx]
fcomp dword [esi + 0x24]
fnstsw ax
and eax, 0x4100
je 0x4be483
fld dword [edx]
fadd dword [edx - 0x14]
fcomp dword [esi + 0x18]
fnstsw ax
test ah, 5
jnp 0x4be483
fld dword [edx - 0x10]
fsub dword [edx]
fcomp dword [esi + 0x28]
fnstsw ax
and eax, 0x4100
je 0x4be483
fld dword [edx]
fadd dword [edx - 0x10]
fcomp dword [esi + 0x1c]
fnstsw ax
test ah, 5
jnp 0x4be483
mov ebx, dword [edx + 8]
lea eax, [ebp + ebp*4]
fld dword [0x5374e8]
mov dword [eax*4 + 0xa7b234], ebx
mov eax, dword [0xa7b4ac]
mov ebx, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa7b238], ebx
mov eax, dword [0xa7b4ac]
mov ebx, dword [edx + 0x10]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa7b23c], ebx
mov eax, dword [0xa7b4ac]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa7b22c], edi
mov eax, dword [0xa7b4ac]
fdiv dword [edx]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xa7b230]
mov ebp, dword [0xa7b4ac]
inc ebp
mov dword [0xa7b4ac], ebp
jmp 0x4be495
mov eax, dword [esp + 0xa8]
not ebx
and eax, ebx
mov dword [esp + 0xa8], eax
xor edi, edi
mov eax, dword [0x1325b3c]
inc ecx
add edx, 0x2c
cmp ecx, eax
jl 0x4be394
cmp ebp, edi
jne 0x4be4c3
mov ecx, dword [0x13250f4]
xor eax, eax
mov dword [esi + ecx*4 + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esi + 0x4c]
push eax
push ecx
push edx
call fcn.004bde00
add esp, 0x10
test eax, eax
je 0x4be977
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x38], edi
shl edx, 7
fmul qword [0x5389b0]
add edx, ebx
mov dword [0xa7b224], ecx
lea eax, [edx*4 + 0xa6b224]
mov dword [0xa7b228], eax
fild dword [esi + 0x44]
fmul qword [0x5389b0]
fsubp st(1)
fstp dword [esi + 0x3c]
fild dword [esp + 0x28]
fmul qword [0x5389b0]
fild dword [esi + 0x48]
fmul qword [0x5389b0]
fsubp st(1)
fstp dword [esi + 0x40]
mov ecx, dword [0x1325bfc]
mov eax, dword [0x1325c08]
inc ecx
mov dword [0x1325bfc], ecx
mov ecx, dword [esi + 0x50]
imul ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [0x1325c08], eax
mov ebx, dword [esi + 0x70]
fld dword [esi + 0x94]
lea edx, [ebx + ebx*4]
lea eax, [ebx + edx*2]
fcomp dword [esi + eax*4 + 0x68]
lea ecx, [esi + eax*4]
fld dword [esi + 0x94]
fnstsw ax
test ah, 0x44
jp 0x4be5d6
mov edx, dword [esi + 0x74]
mov dword [esp + 0x18], edi
lea eax, [edx - 1]
imul eax, ebx
lea ebp, [eax + eax*4]
lea eax, [eax + ebp*2]
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
fcomp dword [esi + eax*4 + 0x94]
fnstsw ax
and eax, 0x4100
je 0x4be5b0
mov dword [esp + 0x14], 1
fld dword [esi + 0x98]
fcomp dword [ecx + 0x6c]
mov dword [esp + 0x1c], edi
fnstsw ax
and eax, 0x4100
jne 0x4be5cc
mov dword [esp + 0x20], ebp
jmp 0x4be62a
mov dword [esp + 0x20], 1
jmp 0x4be62a
fcomp dword [ecx + 0x68]
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
fnstsw ax
and eax, 0x4100
je 0x4be5f5
mov dword [esp + 0x18], 1
mov edx, dword [esi + 0x74]
mov dword [esp + 0x20], edi
fld dword [esi + 0x98]
lea eax, [edx - 1]
mov dword [esp + 0x1c], ebp
imul eax, ebx
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
fcomp dword [esi + eax*4 + 0x98]
fnstsw ax
and eax, 0x4100
je 0x4be62a
mov dword [esp + 0x1c], 1
xor ecx, ecx
cmp edx, edi
mov dword [esp + 0x34], ecx
jle 0x4be910
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
sub edx, ebp
mov dword [esp + 0x40], edx
jmp 0x4be64c
mov ebp, dword [esp + 0x1c]
cmp ebx, edi
mov dword [esp + 0x30], edi
jle 0x4be8fa
lea eax, [ecx + ebp]
mov dword [esp + 0x44], eax
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
add ebp, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
sub eax, edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], eax
mov eax, ebx
mov ebp, dword [esi + 0x44]
imul eax, ecx
add eax, dword [esp + 0x30]
neg ebp
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x50], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x5389a8]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x54], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x58], edx
call fcn.0051bfdc
fld dword [edi + 0x18]
fmul dword [0x5389a8]
mov ecx, ebp
sub ecx, eax
mov eax, dword [esi + 0x48]
neg eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x24], eax
call fcn.0051bfdc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x60], edx
jge 0x4be702
xor ecx, ecx
jmp 0x4be70c
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4be70c
lea ecx, [eax - 1]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add edx, eax
test edx, edx
jge 0x4be71e
xor edx, edx
jmp 0x4be725
cmp edx, ebx
jl 0x4be725
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x64], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x5389a8]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x68], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x6c], edx
call fcn.0051bfdc
fld dword [edi + 0x18]
fmul dword [0x5389a8]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x70], ecx
call fcn.0051bfdc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x74], edx
jge 0x4be794
xor ecx, ecx
jmp 0x4be79e
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4be79e
lea ecx, [eax - 1]
mov edx, dword [esp + 0x10]
test edx, edx
jge 0x4be7aa
xor edx, edx
jmp 0x4be7b1
cmp edx, ebx
jl 0x4be7b1
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x78], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x5389a8]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x7c], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x80], edx
call fcn.0051bfdc
fld dword [edi + 0x18]
fmul dword [0x5389a8]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x84], ecx
call fcn.0051bfdc
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x88], edx
jge 0x4be829
xor ecx, ecx
jmp 0x4be833
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4be833
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, eax
test edx, edx
jge 0x4be845
xor edx, edx
jmp 0x4be84c
cmp edx, ebx
jl 0x4be84c
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x8c], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x5389a8]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x90], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x94], edx
call fcn.0051bfdc
fld dword [edi + 0x18]
fmul dword [0x5389a8]
sub ebp, eax
mov dword [esp + 0x98], ebp
call fcn.0051bfdc
mov ecx, dword [esp + 0x24]
sub ecx, eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xa0], ecx
call fcn.004be0e0
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
or ebx, eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x38], ebx
mov ebx, dword [esi + 0x70]
inc eax
inc edx
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jl 0x4be683
mov edx, dword [esp + 0x40]
xor edi, edi
mov eax, dword [esi + 0x74]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x4be648
cmp dword [esp + 0x38], edi
jne 0x4be927
mov ecx, dword [0x13250f4]
xor eax, eax
mov dword [esi + ecx*4 + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esi + 0x4c]
xor eax, eax
cmp ecx, edi
jle 0x4be952
mov edx, dword [esp + 0x2c]
lea ecx, [edx*4 + 0xa6b024]
mov edx, dword [esp + 0x28]
mov edi, dword [esi + 0x50]
add ecx, 4
add edi, edx
inc eax
mov dword [ecx - 4], edi
mov edi, dword [esi + 0x4c]
cmp eax, edi
jl 0x4be93f
mov eax, dword [0xa6b020]
mov ecx, dword [0x13250f4]
inc eax
pop edi
mov dword [esi + ecx*4 + 0xc], eax
mov edx, dword [0x13250f4]
mov eax, dword [esi + edx*4 + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [0x13250f4]
mov dword [esi + eax*4 + 0xc], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret