Function at 0x64afb7f0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x64afbb32
sub esp, 0x2c
mov eax, dword [esp + 0x30]
jmp 0x64afb815
inc dword [0x64bd3ad8]
mov ecx, dword [eax + 0x31c]
cmp dword [eax + 0x318], ecx
je 0x64afb85e
dec ecx
mov dword [eax + 0x31c], ecx
and ecx, 0xff
mov ecx, dword [eax + ecx*4 + 0x320]
nop
nop
mov edx, dword [0x64bd3ad0]
mov dword [ecx + 0x58], edx
nop
mov edx, ecx
mov dword [0x64bd3ad0], ecx
mov ecx, dword [0x64bd3ad4]
test ecx, ecx
jne 0x64afb80f
nop
mov dword [0x64bd3ad4], edx
jmp 0x64afb80f
mov ecx, dword [eax + 0x720]
test ecx, ecx
je 0x64afb89e
nop
nop
nop
mov edx, dword [0x64bd3ad0]
mov dword [ecx + 0x58], edx
nop
mov edx, ecx
mov dword [0x64bd3ad0], ecx
mov ecx, dword [0x64bd3ad4]
test ecx, ecx
jne 0x64afb88e
nop
mov dword [0x64bd3ad4], edx
inc dword [0x64bd3ad8]
mov dword [eax + 0x720], 0
mov ecx, dword [eax + 0x13b8]
test ecx, ecx
jle 0x64afb9ae
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x20], eax
test byte [eax], al
lea ecx, [eax + 0x13b0]
mov dword [esp + 0x18], ecx
nop
mov dword [esp], ecx
call fcn.64ac88e0
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0x13b0]
mov dword [esp + 0x1c], ecx
nop
mov dword [esp], ecx
call fcn.64ac88e0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x13b4]
mov edx, dword [eax + 0x13b8]
mov ebx, dword [eax + 0x13bc]
mov ebp, dword [esp + 0x20]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.64b08c20
mov eax, dword [esp + 0x30]
mov dword [eax + 0x13b8], 0
mov dword [eax + 0x13bc], 0
mov ecx, dword [0x64bf9210]
test ecx, ecx
jne 0x64afb94b
mov dword [eax + 0x13b4], 0
jmp 0x64afb95c
lea edi, [eax + 0x13b4]
mov ecx, eax
xor eax, eax
call fcn.64b166a0
mov eax, ecx
mov dword [eax + 0x13c0], 0
mov dword [eax + 0x13c4], 0
lea ecx, [eax + 0xb58]
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.64ac25f0
nop
nop
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.64ac8ae0
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.64ac8ae0
mov eax, dword [esp + 0x30]
mov ecx, dword [0x64bf90b0]
test ecx, ecx
je 0x64afb9d6
mov dword [esp], eax
call fcn.64ae9e80
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0xb84]
mov dword [esp], ecx
call fcn.64adf710
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0x738]
mov dword [esp], ecx
mov dword [esp + 4], 0x200
call fcn.64ace000
mov eax, dword [esp + 0x30]
mov dword [eax + 0x730], 0
mov dword [eax + 0x734], 0x80
mov ecx, dword [0x64bf9210]
lea edx, [eax + 0x738]
test ecx, ecx
jne 0x64afba1c
mov dword [eax + 0x72c], edx
jmp 0x64afba2d
lea edi, [eax + 0x72c]
mov ecx, eax
mov eax, edx
call fcn.64b166a0
mov eax, ecx
xor ecx, ecx
jmp 0x64afba36
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 5
jge 0x64afbaaa
jae 0x64afbb25
mov dword [esp + 0x10], ecx
shl ecx, 7
mov dword [esp + 0x14], ecx
lea ebx, [eax + ecx + 0x88]
mov dword [esp], ebx
mov dword [esp + 4], pe_nt_image_headers32
call fcn.64ace000
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax*2]
mov edx, dword [esp + 0x30]
mov dword [edx + ecx*4 + 0x50], 0
mov dword [edx + ecx*4 + 0x54], 0x20
mov ebx, dword [esp + 0x14]
lea ebx, [edx + ebx + 0x88]
lea edi, [edx + ecx*4 + 0x4c]
mov ebp, dword [0x64bf9210]
test ebp, ebp
jne 0x64afba9d
mov dword [edx + ecx*4 + 0x4c], ebx
jmp 0x64afba31
mov ecx, eax
mov eax, ebx
call fcn.64b166a0
mov eax, ecx
jmp 0x64afba31
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [0x64afbb40]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
mov dword [esp], ecx
call fcn.64b15140
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x30]
mov dword [esp], ecx
call fcn.64ad0aa0
mov eax, dword [esp + 0x30]
mov dword [eax + 0x30], 0
mov dword [esp], eax
call fcn.64afb450
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.64b0a390
mov eax, dword [esp + 0x30]
mov dword [eax + 0xb68], 0
mov dword [eax + 0xb6c], 0
mov dword [eax + 4], 4
add esp, 0x2c
ret
mov eax, ecx
mov ecx, 5
call fcn.64b16720
nop
call fcn.64b15250
jmp fcn.64afb7f0