Function at 0x49ae34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x49ae3d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x49ae57
add esp, 0xfffffff0
call fcn.00404898
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405944
lea esi, [ebp - 0xc]
xor eax, eax
push ebp
push 0x49b044
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x49ae8c
xor edx, edx
mov eax, ebx
call fcn.0049ac70
jmp 0x49b014
xor eax, eax
mov dword [esi], eax
xor eax, eax
push ebp
push 0x49afd8
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea eax, [ebp - 0x10]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x10]
call fcn.0040a770
mov dword [ebx + 4], eax
push esi
lea eax, [ebp - 0x14]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x14]
call fcn.0040a770
mov dword [ebx + 8], eax
push esi
lea eax, [ebp - 0x18]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xc]
call fcn.004054e4
push esi
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x1c]
call fcn.0040a770
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebx + 0x10]
wait
push esi
lea eax, [ebp - 0x24]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x24]
call fcn.0040a770
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fstp qword [ebx + 0x18]
wait
push esi
lea eax, [ebp - 0x28]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x20]
call fcn.004054e4
push esi
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x2c]
call fcn.0040a770
mov dword [ebx + 0x24], eax
push esi
lea eax, [ebp - 0x30]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x28]
call fcn.004054e4
push esi
lea eax, [ebp - 0x34]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x34]
call fcn.0040a770
mov dword [ebx + 0x2c], eax
push esi
lea eax, [ebp - 0x38]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.005a46dc
mov eax, dword [ebp - 0x38]
call fcn.0040a770
mov dword [ebx + 0x30], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49aff3
mov eax, dword [ebp - 4]
test eax, eax
je 0x49afff
sub eax, 4
mov eax, dword [eax]
cmp eax, dword [esi]
jle 0x49b014
mov dl, 1
mov eax, dword [0x5a105c]
call fcn.005a4418
call fcn.00404de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b04b
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.004054b4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004054b4
lea eax, [ebp - 4]
call fcn.00405490
ret