Function at 0x4d9e18
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 0x4da1d9
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 [0x4da1e8]
fmulp st(1)
fdiv dword [0x4da1f4]
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 [0x4da1e8]
fmulp st(1)
fdiv dword [0x4da1f4]
fstp qword [ebp - 0x30]
wait
fld qword [ebp - 0x28]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jbe 0x4d9f14
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 0x4d9f5f
sub bl, 2
je 0x4d9fa7
jmp 0x4d9fe1
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.004afa54
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.004afa54
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.004bd4f4
jmp 0x4d9fe1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004afa54
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.004afa54
lea edx, [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.004bd4a8
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.004076d0
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x38]
call fcn.00407788
mov eax, dword [ebp - 0x34]
neg eax
call fcn.004afa50
push eax
mov eax, dword [ebp - 0x38]
neg eax
call fcn.004afa50
mov edx, eax
mov eax, dword [ebp - 0x40]
pop ecx
call fcn.004cf088
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.004076d0
lea eax, [ebp - 0x98]
lea edx, [ebp - 0x38]
call fcn.00407788
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x40]
call fcn.004cf0f8
mov eax, dword [ebp - 0x34]
call fcn.004afa50
push eax
mov eax, dword [ebp - 0x38]
call fcn.004afa50
mov edx, eax
mov eax, dword [ebp - 0x40]
pop ecx
call fcn.004cf088
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.004bd184
mov ecx, dword [ebp - 0x74]
neg ecx
mov edx, dword [ebp - 0x78]
neg edx
mov eax, dword [ebp - 0x40]
call fcn.004cf088
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x78]
xor edx, edx
call fcn.004afc4c
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0x40]
mov ecx, dword [0x4af1b4]
call fcn.00406798
lea eax, [ebp - 0x40]
mov edx, dword [0x4af1b4]
call fcn.0040675c
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.004d336c
mov eax, dword [ebp - 0x80]
mov dword [esi + 0xbc], eax
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0xc0], eax
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x78]
call fcn.004afaa0
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
fld dword [esi + 0xbc]
fdiv dword [0x4da1f8]
add esp, 0xfffffffc
fstp dword [esp]
wait
fld dword [esi + 0xc0]
fdiv dword [0x4da1f8]
add esp, 0xfffffffc
fstp dword [esp]
wait
lea eax, [ebp - 0x80]
call fcn.004afa7c
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [0x524788]
push esi
lea edi, [esi + 0x98]
mov esi, eax
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
pop esi
mov edx, dword [0x524788]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x3f800000
push 0x3f800000
lea eax, [ebp - 0x80]
call fcn.004afa7c
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.004afa7c
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.004d41a8
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xfc]
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 0x4da1e0
lea eax, [ebp - 0x40]
mov edx, dword [0x4af1b4]
call fcn.0040675c
ret