Function at 0x4aa990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d9301
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x30]
cmp eax, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x4aa9c8
mov dword [esp + 0x10], 3
mov eax, dword [0x6cc33c]
mov dword [esp + 0x38], eax
mov al, byte [esp + 0x34]
mov ebx, 1
test bl, al
mov dword [esp + 0x28], ebx
je 0x4aaa60
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004a9a10
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov edx, edi
mov ecx, eax
mov byte [esp + 0x2c], 2
call fcn.004aa4e0
add esp, 4
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x34], 3
call fcn.0048ba20
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x28], 2
je 0x4aaa3e
dec eax
cmp eax, ebp
mov dword [ecx], eax
jne 0x4aaa3e
call fcn.0048a9b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov byte [esp + 0x28], 1
je 0x4aaa64
dec eax
cmp eax, ebp
mov dword [ecx], eax
jne 0x4aaa64
call fcn.0048a9b0
jmp 0x4aaa64
mov edi, dword [esp + 0x10]
lea eax, [edi - 1]
cmp eax, 3
ja case.0x4aaa6c.1
jmp dword [eax*4 + 0x4aac38]
mov al, byte [esi + 0x1c]
test al, al
je 0x4aaab7
push 0x3a
jmp 0x4aaaad
mov al, byte [esi + 0x1c]
test al, al
jne 0x4aaab7
push 0x5c
jmp 0x4aaaad
and dword [esp + 0x34], 0xfffffffd
jmp 0x4aaab7
mov al, byte [esi + 0x1c]
test al, al
jne 0x4aaab7
cmp dword [esi + 8], ebp
je 0x4aaaab
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
cmp dword [eax - 8], ebx
jne 0x4aaaab
cmp byte [eax], 0x7e
je 0x4aaab7
push 0x2f
lea ecx, [esp + 0x3c]
push ebx
call fcn.0048b950
cmp dword [esi + 8], ebp
jne 0x4aab04
mov ecx, dword [esp + 0x38]
cmp dword [ecx - 8], ebp
mov esi, dword [esp + 0x30]
jne 0x4aaad2
mov eax, dword [0x6cc33c]
mov dword [esi], eax
jmp 0x4aaae0
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x4aaae0
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov dword [esp + 0x14], ebx
mov byte [esp + 0x28], 0
je 0x4aac1e
dec eax
cmp eax, ebp
jmp 0x4aac15
cmp edi, 4
jne 0x4aab15
push 0x5b
push ebx
lea ecx, [esp + 0x40]
call fcn.0048b950
mov ebx, dword [esi + 8]
test ebx, ebx
jbe 0x4aabbf
lea eax, [edi - 1]
cmp eax, 3
ja case.0x4aab28.1
jmp dword [eax*4 + 0x4aac48]
mov ecx, dword [esi + 0xc]
lea edi, [ebp*4]
add ecx, edi
push 0x4fd1a0
call fcn.0048b4e0
test eax, eax
je 0x4aabb2
jmp 0x4aab52
lea edi, [ebp*4]
mov ecx, dword [esi + 0xc]
add ecx, edi
push 0x508520
call fcn.0048b4e0
test eax, eax
je 0x4aab83
mov eax, dword [esi + 0xc]
add eax, edi
jmp 0x4aab72
mov ecx, dword [esi + 0xc]
lea eax, [ecx + ebp*4]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
push ecx
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0048ba20
test byte [esp + 0x34], 2
jne 0x4aab91
lea edx, [ebx - 1]
cmp ebp, edx
je 0x4aabb2
mov eax, dword [esp + 0x10]
push eax
call fcn.00498970
add esp, 4
mov byte [esp + 0x1c], al
mov ecx, dword [esp + 0x1c]
push ecx
push 1
lea ecx, [esp + 0x40]
call fcn.0048b950
mov edi, dword [esp + 0x10]
inc ebp
cmp ebp, ebx
jb 0x4aab20
cmp edi, 4
jne 0x4aabd1
push 0x5d
push 1
lea ecx, [esp + 0x40]
call fcn.0048b950
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 8]
test eax, eax
mov esi, dword [esp + 0x30]
jne 0x4aabea
mov edx, dword [0x6cc33c]
mov dword [esi], edx
jmp 0x4aabf8
mov dword [esi], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x4aabf8
inc eax
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov dword [esp + 0x14], 1
mov byte [esp + 0x28], 0
je 0x4aac1e
dec eax
mov dword [ecx], eax
jne 0x4aac1e
call fcn.0048a9b0
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc