Function at 0x4bee44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bf146
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x44]
mov ecx, 0x18
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 9]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 9]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 2]
mov ecx, 1
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov al, byte [ebp - 1]
sub al, 4
je 0x4bef3a
dec al
je 0x4bef62
jmp 0x4bef85
fild dword [ebp - 0x20]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
call fcn.004b3d04
mov edx, dword [ebp - 0x58]
lea eax, [esi + 4]
mov ecx, dword [0x49a90c]
call fcn.004062b8
jmp 0x4bef85
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004b3b34
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 4]
mov ecx, dword [0x49a90c]
call fcn.004062b8
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdiv dword [0x4bf154]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.0049b130
push eax
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdiv dword [0x4bf154]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.0049b130
mov edx, eax
mov eax, dword [esi + 4]
pop ecx
call fcn.004b3928
mov eax, dword [esi + 4]
lea edx, [ebp - 0x44]
call fcn.004b3998
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004071f0
lea eax, [ebp - 0x70]
lea edx, [ebp - 0x2c]
call fcn.004072a8
mov eax, dword [ebp - 0x28]
call fcn.0049b14c
push eax
mov eax, dword [ebp - 0x2c]
call fcn.0049b14c
mov edx, eax
mov eax, dword [esi + 4]
pop ecx
call fcn.004b3928
lea ecx, [ebp - 0x54]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
call fcn.004ab3ac
mov ecx, dword [ebp - 0x50]
neg ecx
mov edx, dword [ebp - 0x54]
neg edx
mov eax, dword [esi + 4]
call fcn.004b3928
mov esi, dword [esi + 8]
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x54]
mov eax, esi
call fcn.004b7a1c
mov eax, dword [ebp - 0x78]
mov dword [esi + 0xb8], eax
mov eax, dword [ebp - 0x74]
mov dword [esi + 0xbc], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x54]
call fcn.0049b19c
lea edx, [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
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]
fld dword [esi + 0xb8]
fdiv dword [0x4bf154]
add esp, 0xfffffffc
fstp dword [esp]
wait
fld dword [esi + 0xbc]
fdiv dword [0x4bf154]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea eax, [ebp - 0x78]
call fcn.0049b178
lea edx, [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
push 0x3f800000
push 0x3f800000
lea eax, [ebp - 0x78]
call fcn.0049b178
lea edx, [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x50]
push 0
push 0
lea eax, [ebp - 0x78]
call fcn.0049b178
lea edx, [ebp - 0x78]
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 eax, esi
mov edx, dword [eax]
call dword [edx + 0xf4]
mov dl, 0xb
mov eax, esi
call fcn.004b8858
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 0x4bf14d
lea eax, [ebp - 0x5c]
mov edx, dword [0x49a90c]
mov ecx, 2
call fcn.0040578c
ret