Function at 0x4aef33
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4aecd4
add esp, 0xfffffff0
call fcn.00403894
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aefae
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040352c
cmp byte [ebp + 8], 0
je 0x4aee67
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 6
mov eax, ebx
sub eax, 0x7002
je 0x4aed19
dec eax
je 0x4aed45
dec eax
je 0x4aed6e
jmp 0x4aed97
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4fc69c]
mov edx, dword [edx]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
jmp 0x4aedd2
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x18
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4fc3ec]
mov edx, dword [edx]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7003
jmp 0x4aedd2
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4fc704]
mov edx, dword [edx]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
jmp 0x4aedd2
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408884
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, 0x4aea9c
call fcn.004063fc
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4ae8f8]
call fcn.0040c01c
call fcn.00403cfc
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x7252
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x7301
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x14
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x7101
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, 8
call fcn.004049d8
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.004048a4
mov edx, 8
call fcn.004603f4
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
mov dl, 1
mov eax, dword [0x459f78]
call fcn.0045a948
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4aee60
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax + 4], 0x30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aef33
lea eax, [ebp - 0xc]
call fcn.0040dbe4
ret
mov eax, ebx
sub eax, 0x7002
je 0x4aee77
sub eax, 2
je 0x4aeeaa
jmp 0x4aeedd
mov eax, dword [ebp - 4]
mov dword [eax + 8], 8
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4fc69c]
mov edx, dword [edx]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7002
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 2
jmp 0x4aef18
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x10
mov eax, dword [ebp - 4]
add eax, 0x34
mov edx, dword [0x4fc704]
mov edx, dword [edx]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x7004
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 5
jmp 0x4aef18
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00408884
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
lea edx, [ebp - 0x24]
mov eax, 0x4aea9c
call fcn.004063fc
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x4ae8f8]
call fcn.0040c01c
call fcn.00403cfc
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x7251
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0x7101
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov edx, dword [edx*4 + 0x4f9ae4]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x800
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, 8
call fcn.004049d8
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.004048a4
mov edx, 8
call fcn.004603f4
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004afa18
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.004043e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aefb5
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.004043b0
ret