Function at 0x4aa9d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a4cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x44]
xor esi, esi
mov dword [esp + 0x30], esi
call fcn.004af2c0
mov edi, dword [esp + 0x48]
call fcn.004af2c0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call fcn.004d1ab0
mov ebp, dword [esp + 0x24]
lea ecx, [ecx]
xor edx, edx
cmp ebp, edx
je 0x4aaafe
cmp ebp, dword [esp + 0x20]
je 0x4aaafe
mov esi, dword [esp + 0x14]
mov eax, ebp
mov ecx, dword [eax + 8]
mov ebp, dword [ebp]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4aaabb
cmp dword [esi + 0xc], edx
lea edi, [esi + 0xc]
jl 0x4aaaae
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4aaaae
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4aaaa5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4aaabb
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4aaad5
lea ecx, [esp + 0x14]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x4aaa50
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
push esi
mov ecx, ebx
call fcn.00468e80
test eax, eax
jne 0x4aaaf5
mov eax, esi
call fcn.004ac5f0
jmp 0x4aaa50
mov byte [eax + 4], 0
jmp 0x4aaa50
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.004d1ab0
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4aabcf
cmp ebp, dword [esp + 0x20]
je 0x4aabcf
mov esi, dword [esp + 0x14]
mov eax, ebp
mov ecx, dword [eax + 8]
mov ebp, dword [ebp]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4aab90
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4aab83
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4aab83
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4aab7a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x4aab90
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4aaba6
lea ecx, [esp + 0x14]
push ecx
call eax
add esp, 4
test eax, eax
jne 0x4aab26
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
push esi
mov ecx, ebx
call fcn.00468e80
test eax, eax
jne 0x4aabc6
mov eax, esi
call fcn.004ac5f0
jmp 0x4aab26
mov byte [eax + 4], 0
jmp 0x4aab26
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004a8f00
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aac09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret