Function at 0x6ad734
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x6ad73c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040b5b0
xor eax, eax
push ebp
push 0x6ada10
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x6ad9e6
mov dl, 1
mov eax, dword [0x4912c4]
call fcn.004bd438
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x4912c4]
call fcn.004bd438
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x6ad9df
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x6ad9b5
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0042771c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00427590
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call fcn.0040b8f4
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x6ada30
call fcn.0040c868
test eax, eax
jle 0x6ad7f2
lea eax, [ebp - 8]
mov edx, 0x6ada30
call fcn.0040b8f4
jmp 0x6ad7ff
lea eax, [ebp - 8]
mov edx, 0x6ada40
call fcn.0040b8f4
movzx eax, byte [0x6ada44]
push eax
lea eax, [ebp - 0x30]
push eax
movzx eax, byte [0x6ada48]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x6ada58
mov edx, 0x6ada6c
mov eax, dword [ebp - 4]
call fcn.00431568
mov eax, dword [ebp - 0x34]
mov ecx, 0x6ada58
mov edx, dword [ebp - 8]
call fcn.00431568
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jle 0x6ad8a4
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.004281a0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x3c]
mov edx, 1
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x3c]
call fcn.004281a0
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x40]
mov edx, 2
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x40]
call fcn.004281a0
mov word [ebp - 0x1e], ax
jmp 0x6ad8b6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.0040ac2c
jmp 0x6ad9e6
mov word [ebp - 0x20], 0
mov word [ebp - 0x22], 0
mov word [ebp - 0x24], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 3
jle 0x6ad985
movzx eax, byte [0x6ada70]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
mov edx, 3
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x48]
mov ecx, 0x6ada58
mov edx, 0x6ada80
call fcn.00431568
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
push ebp
push 0x6ad97b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x4c]
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x4c]
call fcn.004281a0
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x50]
mov edx, 1
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x50]
call fcn.004281a0
mov word [ebp - 0x22], ax
lea ecx, [ebp - 0x54]
mov edx, 2
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x54]
call fcn.004281a0
mov word [ebp - 0x24], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6ad985
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
push 0
movzx ecx, word [ebp - 0x1e]
movzx edx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x1a]
call fcn.0050ab80
fstp qword [ebp - 0x10]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6ad9bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ad9e6
mov eax, dword [ebp - 0x18]
call fcn.004095d4
mov eax, dword [ebp - 0x14]
call fcn.004095d4
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ada17
lea eax, [ebp - 0x54]
mov edx, 0xc
call fcn.0040b51c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b51c
pop eax
jmp eax