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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cba54
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61a654]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x48], ebp
mov eax, dword [ebp + 0x14]
xor esi, esi
cmp byte [eax + 0x64], 0
je 0x4befed
lea ecx, [ebp + 0x38]
call fcn.004bdf60
mov eax, dword [ebp + 0x14]
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
mov ecx, dword [eax + 0x88]
mov edi, dword [eax + 0x74]
mov ecx, dword [ecx]
add eax, 0x74
mov dword [esp + 0x38], edi
mov byte [esp + 0x27], 1
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 0x88]
add eax, 0x74
mov eax, dword [eax]
mov dword [esp + 0x3c], ecx
cmp edi, esi
je 0x4be890
cmp edi, eax
je 0x4be895
call fcn.0059ec50
cmp dword [esp + 0x3c], ebx
je 0x4befed
cmp edi, esi
jne 0x4beb6f
call fcn.0059ec50
xor edi, edi
mov edx, dword [esp + 0x3c]
cmp edx, dword [edi + 0x14]
jne 0x4be8bc
call fcn.0059ec50
mov esi, dword [esp + 0x3c]
mov eax, dword [ebp + 0x18]
add esi, 8
cmp eax, dword [esi + 0x90]
jl 0x4befbf
mov ecx, dword [esi + 0x94]
cmp eax, ecx
jle 0x4be8e5
cmp ecx, 0xffffffff
jne 0x4befbf
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x1b], 1
mov dword [esp + 0x1c], 0
je 0x4be9ed
mov dword [esp + 0x20], 0
lea esp, [esp]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x28], eax
jbe 0x4be931
call fcn.0059ec50
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x4be95c
call fcn.0059ec50
mov edi, dword [esi + 0x10]
mov eax, dword [ebp + 0x2c]
add edi, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
cmp dword [ebp + 0x28], eax
jbe 0x4be974
call fcn.0059ec50
mov ebx, dword [ebp + 0x28]
cmp ebx, dword [ebp + 0x2c]
jbe 0x4be981
call fcn.0059ec50
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x1c]
push edi
push edx
push ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebx
call fcn.004a1c10
add esp, 0xc
cmp dword [esp + 0x64], 0
mov edi, eax
je 0x4be9ae
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x64], eax
je 0x4be9b3
call fcn.0059ec50
cmp edi, dword [esp + 0x28]
jne 0x4be9be
mov byte [esp + 0x1b], 0
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov edi, dword [esp + 0x1c]
add dword [esp + 0x20], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [esp + 0x1c], edi
cmp edi, ecx
jb 0x4be920
mov ecx, dword [ebp + 0x2c]
sub ecx, dword [ebp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], 0
je 0x4beaed
mov dword [esp + 0x20], 0
lea esp, [esp]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x28], eax
jbe 0x4bea31
call fcn.0059ec50
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [ebp + 0x2c]
sub ecx, dword [ebp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x4bea5c
call fcn.0059ec50
mov edi, dword [ebp + 0x28]
mov eax, dword [esi + 0x2c]
add edi, dword [esp + 0x20]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x28], eax
jbe 0x4bea74
call fcn.0059ec50
mov ebx, dword [esi + 0x28]
cmp ebx, dword [esi + 0x2c]
jbe 0x4bea81
call fcn.0059ec50
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x1c]
push edi
push edx
push ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebx
call fcn.004a1c10
add esp, 0xc
cmp dword [esp + 0x54], 0
mov edi, eax
je 0x4beaae
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x54], eax
je 0x4beab3
call fcn.0059ec50
cmp edi, dword [esp + 0x2c]
je 0x4beabe
mov byte [esp + 0x1b], 0
mov ecx, dword [ebp + 0x2c]
sub ecx, dword [ebp + 0x28]
mov edi, dword [esp + 0x1c]
add dword [esp + 0x20], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [esp + 0x1c], edi
cmp edi, ecx
jb 0x4bea20
cmp byte [esp + 0x1b], 0
je 0x4befbf
lea ecx, [esp + 0x9c]
call fcn.004b0db0
mov ebx, dword [ebp + 0x4c]
mov edx, dword [ebx + 4]
lea edi, [ebp + 0x38]
push eax
push edx
push ebx
mov ecx, edi
mov dword [esp + 0x1a4], 0
call fcn.004bdd90
push 1
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.004a3630
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ad4e0
mov ebx, dword [edi + 0x14]
mov edi, dword [edi]
test edi, edi
jne 0x4beb60
call fcn.0059ec50
mov ebx, dword [ebx + 4]
mov dword [esp + 0x50], ebx
test edi, edi
je 0x4beb76
mov eax, dword [edi]
jmp 0x4beb78
mov edi, dword [edi]
jmp 0x4be8ae
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4beb82
call fcn.0059ec50
test edi, edi
jne 0x4bec7a
call fcn.0059ec50
cmp ebx, dword [edi + 0x14]
jne 0x4beb99
call fcn.0059ec50
fld1
mov dword [ebx + 0xc], esi
fst qword [esp + 0x6c]
fld qword [ebp + 0x58]
fstp qword [esp + 0x5c]
fcomp qword [ebp + 0x58]
fnstsw ax
test ah, 0x44
jp 0x4bec89
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4bebca
cmp dword [ebp + 0x18], eax
jne 0x4bec89
lea ecx, [esi + 0x74]
call fcn.004a1280
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x14], 0
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
mov ebx, dword [esi + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebx
lea esp, [esp]
mov edi, dword [esi + 0x4c]
mov eax, dword [esi + 0x34]
test ebx, ebx
je 0x4bebfe
cmp ebx, eax
je 0x4bec03
call fcn.0059ec50
cmp dword [esp + 0x44], edi
je 0x4bef36
test ebx, ebx
jne 0x4bec81
call fcn.0059ec50
xor eax, eax
mov edx, dword [esp + 0x44]
cmp edx, dword [eax + 0x18]
jne 0x4bec26
call fcn.0059ec50
mov edi, dword [esp + 0x44]
add edi, 0xc
test ebx, ebx
jne 0x4bec85
call fcn.0059ec50
mov eax, dword [esp + 0x44]
cmp eax, dword [ebx + 0x18]
jne 0x4bec44
call fcn.0059ec50
mov ecx, dword [esp + 0x50]
push edi
add ecx, 0x18
call fcn.004ad8a0
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov edx, dword [edi + 8]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x40]
mov dword [eax + 0xc], edx
call fcn.00497530
mov ebx, dword [esp + 0x40]
jmp 0x4bebf0
mov edi, dword [edi]
jmp 0x4beb8f
mov eax, dword [ebx]
jmp 0x4bec18
mov ebx, dword [ebx]
jmp 0x4bec36
mov eax, dword [esi + 0x98]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4beca9
fild dword [esp + 0x28]
fstp qword [esp + 0x6c]
fild dword [ebp + 0x18]
fmul qword [ebp + 0x58]
fstp qword [esp + 0x5c]
push 0x6c
call fcn.0059e72d
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x198], 1
test eax, eax
je 0x4becda
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x6c]
push edx
mov ecx, eax
call fcn.004a8250
mov dword [esp + 0x2c], eax
jmp 0x4bece2
mov dword [esp + 0x2c], 0
mov eax, dword [esi + 0x4c]
mov eax, dword [eax]
mov ebp, dword [esi + 0x34]
xor ebx, ebx
mov edi, eax
mov dword [esp + 0x198], 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
lea esp, [esp]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x34]
test ebp, ebp
je 0x4bed25
cmp ebp, eax
je 0x4bed2a
call fcn.0059ec50
cmp edi, dword [esp + 0x88]
je 0x4bedf0
test ebp, ebp
jne 0x4bede3
call fcn.0059ec50
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4bed50
call fcn.0059ec50
fild dword [edi + 0x18]
fld qword [esp + 0x5c]
fmul st(1), st(0)
fld qword [esp + 0x6c]
fdiv st(2), st(0)
fxch st(2)
call fcn.005a0400
fimul dword [edi + 0x1c]
mov dword [esp + 0x94], eax
fdivrp st(1)
call fcn.005a0400
mov ebx, eax
test ebp, ebp
jne 0x4bedeb
call fcn.0059ec50
cmp edi, dword [ebp + 0x18]
jne 0x4bed8c
call fcn.0059ec50
mov ecx, dword [esp + 0x50]
add edi, 0xc
push edi
add ecx, 0x18
call fcn.004ad8a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x94]
mov dword [eax], ecx
xor ecx, ecx
cmp ebx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
jle 0x4bedbe
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 0x94]
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
call fcn.00497530
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
jmp 0x4bed10
mov eax, dword [ebp]
jmp 0x4bed46
mov ebp, dword [ebp]
jmp 0x4bed82
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ebp
mov byte [eax + 0x14], 1
mov eax, dword [ebp]
mov edx, dword [eax + 0x78]
push ecx
push ebx
mov ecx, ebp
call edx
push ebp
lea ecx, [esp + 0xd0]
call fcn.004a2900
mov eax, dword [esi + 0x4c]
mov eax, dword [eax]
mov edi, dword [esi + 0x34]
mov dword [esp + 0x198], 2
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov ebx, dword [esi + 0x4c]
mov eax, dword [esi + 0x34]
test edi, edi
je 0x4bee45
cmp edi, eax
je 0x4bee4a
call fcn.0059ec50
cmp dword [esp + 0x34], ebx
je 0x4beed8
lea ecx, [esi + 0x74]
call fcn.004a1280
test eax, eax
je 0x4beebe
test edi, edi
jne 0x4beed0
call fcn.0059ec50
xor eax, eax
mov ecx, dword [esp + 0x34]
cmp ecx, dword [eax + 0x18]
jne 0x4bee79
call fcn.0059ec50
mov ebx, dword [esp + 0x34]
add ebx, 0xc
test edi, edi
jne 0x4beed4
call fcn.0059ec50
mov edx, dword [esp + 0x34]
cmp edx, dword [edi + 0x18]
jne 0x4bee97
call fcn.0059ec50
mov ecx, dword [esp + 0x50]
lea eax, [ebx + 4]
push eax
push ebx
add ecx, 0x18
call fcn.004ad8a0
push eax
lea ecx, [esi + 0x74]
call fcn.004a1280
push eax
lea ecx, [esp + 0xd8]
call fcn.0049c7c0
lea ecx, [esp + 0x30]
call fcn.00497530
mov edi, dword [esp + 0x30]
jmp 0x4bee37
mov eax, dword [edi]
jmp 0x4bee6b
mov edi, dword [edi]
jmp 0x4bee89
mov ecx, dword [esp + 0x48]
cmp byte [ecx + 0x60], 0
je 0x4bef0e
mov edx, dword [ebp]
mov edi, dword [ebp + 0x28]
mov eax, dword [edx + 0x7c]
imul edi, dword [ebp + 0x24]
mov ecx, ebp
call eax
test edi, edi
jle 0x4bef0e
jmp 0x4bef00
or dword [eax], 0xffffff
add eax, 4
sub edi, 1
jne 0x4bef00
mov edx, dword [ebp]
mov eax, dword [edx + 0x88]
mov ecx, ebp
call eax
lea ecx, [esp + 0xcc]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a2a10
mov ebp, dword [esp + 0x48]
fild dword [esi + 0x9c]
fld qword [esp + 0x5c]
fmul st(1), st(0)
fld qword [esp + 0x6c]
fdiv st(2), st(0)
fxch st(2)
call fcn.005a0400
cmp eax, dword [ebp + 4]
jle 0x4bef57
mov dword [ebp + 4], eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4bef6b
fild dword [esp + 0x28]
jmp 0x4bef71
fild dword [esi + 0xa8]
fmul st(1)
fdiv st(2)
call fcn.005a0400
cmp eax, dword [ebp + 0xc]
jle 0x4bef82
mov dword [ebp + 0xc], eax
fild dword [esi + 0xa0]
fmul st(1)
fdiv st(2)
call fcn.005a0400
mov bl, byte [esp + 0x27]
test bl, bl
jne 0x4bef9e
cmp eax, dword [ebp + 8]
jge 0x4befa1
mov dword [ebp + 8], eax
fimul dword [esi + 0xac]
fdivrp st(1)
call fcn.005a0400
test bl, bl
jne 0x4befb7
cmp eax, dword [ebp + 0x10]
jle 0x4befba
mov dword [ebp + 0x10], eax
mov byte [esp + 0x27], 0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4befe9
call fcn.0059ec50
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp esi, dword [eax + 0x14]
jne 0x4befdc
call fcn.0059ec50
mov ecx, dword [esi]
mov edi, dword [esp + 0x38]
xor esi, esi
jmp 0x4be876
mov eax, dword [eax]
jmp 0x4befce
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret