Function at 0x4aa55e
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ec3cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x528dc8]
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 0x18]
call fcn.00498b60
mov ebp, eax
push esi
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.0049b040
push 0x521094
mov ecx, ebp
call fcn.004b0660
push 0x30
call fcn.004d94ba
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
xor eax, eax
cmp esi, eax
mov dword [esp + 0x24], eax
je 0x4aa5cb
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x6c]
mov edx, eax
mov ecx, 0xc
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, ebp
mov dword [esi], ebp
mov dword [esi + 4], edx
mov dword [esi + 8], edx
call fcn.0049ad50
mov edi, esi
mov dword [esp + 0xc], edi
jmp 0x4aa5d1
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, dword [ebp]
lea esi, [edi + 8]
push ebx
push esi
mov ecx, ebp
mov dword [esp + 0x2c], 0xffffffff
call dword [eax + 0x70]
mov edx, dword [ebp]
push esi
mov ecx, ebp
call dword [edx + 0x70]
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x70]
mov esi, dword [esp + 0x30]
mov ecx, dword [edi]
mov eax, dword [esi + 0x1c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x8c]
push esi
mov ecx, edi
call fcn.004aab20
mov ebx, dword [esp + 0x34]
mov ecx, dword [edi + 0x20]
sub ebx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x34], 0
mov edi, dword [ecx]
test edi, edi
je 0x4aa775
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x34]
add eax, edx
cmp eax, ebx
jg 0x4aa64d
mov edi, dword [edi + 0x2c]
mov dword [esp + 0x34], eax
test edi, edi
jne 0x4aa630
jmp 0x4aa775
mov eax, dword [edi + 4]
mov ebp, dword [edi]
lea esi, [edi + 8]
mov dword [esp + 0x18], eax
mov dword [esi], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4aa66d
mov dword [esp + 0x14], 0
jmp 0x4aa673
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
cmp dword [esi], 0xffffffff
je 0x4aa6c4
mov edx, dword [esp + 0x30]
mov ecx, edi
push edx
call fcn.004aab20
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x34]
add eax, edx
cmp eax, ebx
jg 0x4aa6c4
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x24], 2
jne 0x4aa6b6
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x74]
test eax, eax
je 0x4aa6b6
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov edx, dword [ebp]
push esi
mov ecx, ebp
call dword [edx + 0x70]
cmp dword [esi], 0xffffffff
jne 0x4aa678
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aa6d6
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x24], 2
je 0x4aa6da
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, edi
push edx
mov dword [esi], eax
call fcn.004aab20
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x34]
add ecx, eax
test edi, edi
mov dword [esp + 0x34], ecx
je 0x4aa76d
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4aa76d
mov ecx, dword [esp + 0x30]
xor ebp, ebp
cmp esi, ebp
mov edx, dword [ecx + 0xc]
je 0x4aa766
mov eax, dword [edx]
mov ebx, dword [edx + 4]
cmp eax, ebx
jne 0x4aa724
cmp esi, eax
jne 0x4aa756
mov dword [esi + 0x2c], ebp
mov dword [edx + 4], ebp
mov dword [edx], ebp
jmp 0x4aa756
cmp eax, esi
jne 0x4aa72f
mov eax, dword [esi + 0x2c]
mov dword [edx], eax
jmp 0x4aa753
cmp eax, ebp
je 0x4aa756
mov ecx, dword [eax + 0x2c]
cmp ecx, esi
je 0x4aa742
mov eax, ecx
cmp eax, ebp
jne 0x4aa733
jmp 0x4aa756
cmp eax, ebp
je 0x4aa756
cmp ebx, esi
jne 0x4aa74d
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x2c], ecx
mov dword [esi + 0x2c], ebp
mov ecx, dword [esi]
call fcn.0049ad70
push esi
call fcn.004d94e3
add esp, 4
mov esi, dword [edi + 0x2c]
cmp esi, ebp
jne 0x4aa700
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
pop ebx
mov edx, dword [eax + 4]
test edx, edx
je 0x4aa789
mov dword [edx + 0x2c], ecx
jmp 0x4aa792
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov esi, dword [esi + 4]
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], esi
mov ecx, ebp
call fcn.0049ad70
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8