Function at 0x521354
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x52135c
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.004052cc
xor eax, eax
push ebp
push 0x5216c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
push ebp
push 0x5213be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.004057c4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, 0x10
call fcn.004b42d8
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5213cd
cmp dword [ebp - 4], 0
je 0x52169c
xor eax, eax
push ebp
push 0x521695
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x521414
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x10
mov edx, 0x5216e0
mov eax, dword [ebp - 4]
call fcn.004b3f70
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x521423
cmp dword [ebp - 0x10], 0
je 0x52166d
xor eax, eax
push ebp
push 0x521666
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41adf8]
call fcn.00403ec0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x521649
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004b4a78
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xe8]
call fcn.0040646c
inc eax
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0xe8
mov ecx, 1
mov edx, dword [0x510810]
call fcn.00406628
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0xe8]
call fcn.00406474
lea eax, [eax + eax*8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0xe8]
lea ebx, [edx + eax*8]
lea ecx, [ebp - 0x1c]
mov edx, 0x521700
mov eax, dword [ebp - 0x14]
call fcn.004b46fc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00404e84
mov edx, 0x521718
mov eax, dword [ebp - 0x14]
call fcn.004b47e0
fstp qword [ebx + 0x18]
wait
lea ecx, [ebp - 0x20]
mov edx, 0x52172c
mov eax, dword [ebp - 0x14]
call fcn.004b46fc
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 8]
call fcn.00404e84
mov edx, 0x52173c
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov byte [ebx + 0xc], al
lea ecx, [ebp - 0x24]
mov edx, 0x521750
mov eax, dword [ebp - 0x14]
call fcn.004b46fc
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x40]
call fcn.00404e84
lea ecx, [ebp - 0x28]
mov edx, 0x521768
mov eax, dword [ebp - 0x14]
call fcn.004b46fc
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x28]
call fcn.00404e84
lea ecx, [ebp - 0x2c]
mov edx, 0x521780
mov eax, dword [ebp - 0x14]
call fcn.004b46fc
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x2c]
call fcn.00404e84
lea ecx, [ebp - 0x30]
mov edx, 0x521790
mov eax, dword [ebp - 0x14]
call fcn.004b46fc
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x30]
call fcn.00404e84
mov edx, 0x5217a0
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov dword [ebx + 0x10], eax
mov edx, 0x5217b4
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov dword [ebx + 0x14], eax
mov edx, 0x5217c4
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov dword [ebx + 0x20], eax
mov edx, 0x5217d4
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov dword [ebx + 0x24], eax
mov edx, 0x5217ec
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov byte [ebx + 0x34], al
mov edx, 0x521808
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov word [ebx + 0x36], ax
mov edx, 0x52181c
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov byte [ebx + 0x38], al
mov edx, 0x521834
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov byte [ebx + 0x39], al
mov edx, 0x52184c
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov word [ebx + 0x3a], ax
mov edx, 0x521860
mov eax, dword [ebp - 0x14]
call fcn.004b4684
mov word [ebx + 0x3c], ax
mov byte [ebp - 9], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, 1
call fcn.004b7e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521650
mov eax, dword [ebp - 0x14]
call fcn.00403ef0
ret
xor ebx, ebx
jmp 0x521672
inc ebx
push ebp
mov eax, ebx
call fcn.00521090
pop ecx
test al, al
jne 0x521671
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52169c
mov eax, dword [ebp - 4]
call fcn.00403ef0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5216ce
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404e54
lea eax, [ebp - 0x18]
call fcn.0040562c
lea eax, [ebp - 8]
call fcn.00404e30
ret