Function at 0x4be4bc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4be87d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
fild dword [ebp - 0xc]
fld xword [0x4be88c]
fmulp st(1)
fdiv dword [0x4be898]
fstp qword [ebp - 0x28]
wait
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
fild dword [ebp - 0xc]
fld xword [0x4be88c]
fmulp st(1)
fdiv dword [0x4be898]
fstp qword [ebp - 0x30]
wait
fld qword [ebp - 0x28]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jbe 0x4be5b8
fld qword [ebp - 0x28]
fstp dword [ebp - 0x3c]
wait
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
fld dword [ebp - 0x3c]
fstp qword [ebp - 0x30]
wait
lea edx, [ebp - 0x58]
mov ecx, 0x18
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xd]
mov ecx, 1
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 5]
mov ecx, 1
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
sub bl, 1
jb 0x4be603
sub bl, 2
je 0x4be64b
jmp 0x4be685
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0049b150
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.0049b150
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.004ab630
jmp 0x4be685
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0049b150
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.0049b150
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.004ab5e4
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
xor eax, eax
call fcn.004071f0
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x38]
call fcn.004072a8
mov eax, dword [ebp - 0x34]
neg eax
call fcn.0049b14c
push eax
mov eax, dword [ebp - 0x38]
neg eax
call fcn.0049b14c
mov edx, eax
mov eax, dword [ebp - 0x40]
pop ecx
call fcn.004b3928
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004071f0
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x38]
call fcn.004072a8
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x40]
call fcn.004b3998
mov eax, dword [ebp - 0x34]
call fcn.0049b14c
push eax
mov eax, dword [ebp - 0x38]
call fcn.0049b14c
mov edx, eax
mov eax, dword [ebp - 0x40]
pop ecx
call fcn.004b3928
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x40]
call fcn.004ab2c0
mov ecx, dword [ebp - 0x74]
neg ecx
mov edx, dword [ebp - 0x78]
neg edx
mov eax, dword [ebp - 0x40]
call fcn.004b3928
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x78]
xor edx, edx
call fcn.0049b348
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0x40]
mov ecx, dword [0x49a90c]
call fcn.004062b8
lea eax, [ebp - 0x40]
mov edx, dword [0x49a90c]
call fcn.0040627c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
mov esi, ebx
lea ecx, [ebp - 0x80]
mov eax, ebx
lea edx, [ebp - 0x78]
call fcn.004b7a1c
mov eax, dword [ebp - 0x80]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0xbc], eax
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x78]
call fcn.0049b19c
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
fld dword [esi + 0xb8]
fdiv dword [0x4be89c]
add esp, 0xfffffffc
fstp dword [esp]
wait
fld dword [esi + 0xbc]
fdiv dword [0x4be89c]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea eax, [ebp - 0x80]
call fcn.0049b178
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x4d336c]
push esi
lea edi, [esi + 0x94]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, dword [0x4d336c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x3f800000
push 0x3f800000
lea eax, [ebp - 0x80]
call fcn.0049b178
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x50]
push 0
push 0
lea eax, [ebp - 0x80]
call fcn.0049b178
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x54]
push 0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xc]
mov dl, 6
mov eax, esi
call fcn.004b8858
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xf4]
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be884
lea eax, [ebp - 0x40]
mov edx, dword [0x49a90c]
call fcn.0040627c
ret