Function at 0x4bdf1c
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 0x4be21e
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 0x4be012
dec al
je 0x4be03a
jmp 0x4be05d
fild dword [ebp - 0x20]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x14]
call fcn.004b2dd8
mov edx, dword [ebp - 0x58]
lea eax, [esi + 4]
mov ecx, dword [0x499ab4]
call fcn.0040623c
jmp 0x4be05d
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.004b2c08
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 4]
mov ecx, dword [0x499ab4]
call fcn.0040623c
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdiv dword [0x4be22c]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.0049a2d8
push eax
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdiv dword [0x4be22c]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.0049a2d8
mov edx, eax
mov eax, dword [esi + 4]
pop ecx
call fcn.004b29fc
mov eax, dword [esi + 4]
lea edx, [ebp - 0x44]
call fcn.004b2a6c
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.00407174
lea eax, [ebp - 0x70]
lea edx, [ebp - 0x2c]
call fcn.0040722c
mov eax, dword [ebp - 0x28]
call fcn.0049a2f4
push eax
mov eax, dword [ebp - 0x2c]
call fcn.0049a2f4
mov edx, eax
mov eax, dword [esi + 4]
pop ecx
call fcn.004b29fc
lea ecx, [ebp - 0x54]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
call fcn.004aa480
mov ecx, dword [ebp - 0x50]
neg ecx
mov edx, dword [ebp - 0x54]
neg edx
mov eax, dword [esi + 4]
call fcn.004b29fc
mov esi, dword [esi + 8]
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x54]
mov eax, esi
call fcn.004b6af8
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.0049a344
lea edx, [ebp - 0x78]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [0x4d2350]
push esi
lea edi, [esi + 0x94]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, dword [0x4d2350]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
fld dword [esi + 0xb8]
fdiv dword [0x4be22c]
add esp, 0xfffffffc
fstp dword [esp]
wait
fld dword [esi + 0xbc]
fdiv dword [0x4be22c]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea eax, [ebp - 0x78]
call fcn.0049a320
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.0049a320
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.0049a320
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.004b7934
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 0x4be225
lea eax, [ebp - 0x5c]
mov edx, dword [0x499ab4]
mov ecx, 2
call fcn.0040578c
ret