Function at 0x4d829c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d85e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404384
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050cf24
mov edx, edi
call fcn.004f3ab4
mov al, byte [eax + 0x30]
dec al
je 0x4d82fa
sub al, 2
je 0x4d859d
jmp 0x4d85c2
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050cf24
mov edx, edi
call fcn.004f3ab4
cmp dword [eax + 0x20], 0
je 0x4d833c
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050cf24
mov edx, edi
call fcn.004f3ab4
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 8]
call fcn.004fa528
mov eax, dword [eax + 0x30]
pop edx
call fcn.004a190c
mov dword [ebp - 8], eax
jmp 0x4d835e
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0050cf24
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebx + 8]
call fcn.004fa528
mov eax, dword [eax + 0x30]
pop edx
call fcn.004a190c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d85c2
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
imul edi
add esi, eax
mov eax, dword [ebx + 0x14]
fild qword [eax + esi*8]
lea eax, [ebp - 0x18]
call fcn.00415910
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x40]
cmp eax, 8
jg 0x4d83a9
je 0x4d8425
add eax, 0xfffffffe
sub eax, 3
jb 0x4d83bc
dec eax
sub eax, 2
jb 0x4d851f
jmp 0x4d85c2
sub eax, 0xe
je 0x4d83bc
sub eax, 0x17
je 0x4d84a2
jmp 0x4d85c2
mov eax, dword [ebp - 8]
mov edx, dword [0x4901d4]
call fcn.00403620
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.0040441c
cmp dword [ebp - 4], 0
jne 0x4d8406
lea eax, [ebp - 0x18]
call fcn.00411ef8
lea edx, [ebp - 0x118]
call fcn.00402e8c
lea edx, [ebp - 0x118]
mov eax, dword [ebp + 8]
call fcn.004045e8
jmp 0x4d85c2
lea eax, [ebp - 0x18]
call fcn.00413848
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040adcc
jmp 0x4d85c2
mov eax, dword [ebp - 8]
mov edx, dword [0x4918c8]
call fcn.00403620
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.0040441c
cmp dword [ebp - 4], 0
jne 0x4d8483
cmp byte [ebx + 0xe8], 0
je 0x4d845f
mov bl, 4
mov esi, dword [0x56c110]
movzx esi, byte [esi]
jmp 0x4d8463
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.004141a4
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040ad94
jmp 0x4d85c2
lea eax, [ebp - 0x18]
call fcn.004141a4
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040ae24
jmp 0x4d85c2
mov eax, dword [ebp - 8]
mov edx, dword [0x491acc]
call fcn.00403620
mov ebx, eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xe0]
call fcn.0040441c
cmp dword [ebp - 4], 0
jne 0x4d8500
cmp byte [ebx + 0xe8], 0
je 0x4d84dc
mov bl, 4
mov esi, dword [0x56c110]
movzx esi, byte [esi]
jmp 0x4d84e0
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.004141a4
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, ebx
call fcn.0040ad94
jmp 0x4d85c2
lea eax, [ebp - 0x18]
call fcn.004141a4
add esp, 0xfffffff8
fistp qword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040ae24
jmp 0x4d85c2
mov eax, dword [ebp - 8]
mov edx, dword [0x490938]
call fcn.00403620
mov edi, eax
lea eax, [ebp - 4]
mov edx, dword [edi + 0xe0]
call fcn.0040441c
cmp dword [ebp - 4], 0
jne 0x4d8581
cmp byte [edi + 0xe8], 0
je 0x4d8559
mov bl, 4
mov esi, dword [0x56c110]
movzx esi, byte [esi]
jmp 0x4d855d
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x18]
call fcn.00413848
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
push eax
mov edx, dword [edi + 0xec]
mov ecx, esi
mov eax, ebx
call fcn.0040ad5c
jmp 0x4d85c2
lea eax, [ebp - 0x18]
call fcn.00413848
add esp, 0xfffffff4
fstp xword [esp]
wait
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040adcc
jmp 0x4d85c2
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 8]
imul edi
add esi, eax
mov eax, dword [ebx + 0x14]
fild qword [eax + esi*8]
fdiv dword [0x4d85f0]
add esp, 0xfffffff4
fstp xword [esp]
wait
mov eax, dword [ebp + 8]
call fcn.0040acfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d85e7
lea eax, [ebp - 0x18]
call fcn.004111d8
lea eax, [ebp - 4]
call fcn.00404384
ret