Function at 0x659b4f90
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x659b52d2
sub esp, 0x2c
mov eax, dword [esp + 0x30]
jmp 0x659b4fb5
inc dword [0x65a76ab8]
mov ecx, dword [eax + 0x31c]
cmp dword [eax + 0x318], ecx
je 0x659b4ffe
dec ecx
mov dword [eax + 0x31c], ecx
and ecx, 0xff
mov ecx, dword [eax + ecx*4 + 0x320]
nop
nop
mov edx, dword [0x65a76ab0]
mov dword [ecx + 0x58], edx
nop
mov edx, ecx
mov dword [0x65a76ab0], ecx
mov ecx, dword [0x65a76ab4]
test ecx, ecx
jne 0x659b4faf
nop
mov dword [0x65a76ab4], edx
jmp 0x659b4faf
mov ecx, dword [eax + 0x720]
test ecx, ecx
je 0x659b503e
nop
nop
nop
mov edx, dword [0x65a76ab0]
mov dword [ecx + 0x58], edx
nop
mov edx, ecx
mov dword [0x65a76ab0], ecx
mov ecx, dword [0x65a76ab4]
test ecx, ecx
jne 0x659b502e
nop
mov dword [0x65a76ab4], edx
inc dword [0x65a76ab8]
mov dword [eax + 0x720], 0
mov ecx, dword [eax + 0x13b8]
test ecx, ecx
jle 0x659b514e
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.65987980
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0x13b0]
mov dword [esp + 0x1c], ecx
nop
mov dword [esp], ecx
call fcn.65987980
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.659bfba0
mov eax, dword [esp + 0x30]
mov dword [eax + 0x13b8], 0
mov dword [eax + 0x13bc], 0
mov ecx, dword [0x65a9c1d0]
test ecx, ecx
jne 0x659b50eb
mov dword [eax + 0x13b4], 0
jmp 0x659b50fc
lea edi, [eax + 0x13b4]
mov ecx, eax
xor eax, eax
call fcn.659cac10
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.65982620
nop
nop
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.65987b80
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.65987b80
mov eax, dword [esp + 0x30]
mov ecx, dword [0x65a9c090]
test ecx, ecx
je 0x659b5176
mov dword [esp], eax
call fcn.659a50d0
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0xb84]
mov dword [esp], ecx
call fcn.6599baa0
mov eax, dword [esp + 0x30]
lea ecx, [eax + 0x738]
mov dword [esp], ecx
mov dword [esp + 4], 0x200
call fcn.6598c980
mov eax, dword [esp + 0x30]
mov dword [eax + 0x730], 0
mov dword [eax + 0x734], 0x80
mov ecx, dword [0x65a9c1d0]
lea edx, [eax + 0x738]
test ecx, ecx
jne 0x659b51bc
mov dword [eax + 0x72c], edx
jmp 0x659b51cd
lea edi, [eax + 0x72c]
mov ecx, eax
mov eax, edx
call fcn.659cac10
mov eax, ecx
xor ecx, ecx
jmp 0x659b51d6
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 5
jge 0x659b524a
jae 0x659b52c5
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.6598c980
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 [0x65a9c1d0]
test ebp, ebp
jne 0x659b523d
mov dword [edx + ecx*4 + 0x4c], ebx
jmp 0x659b51d1
mov ecx, eax
mov eax, ebx
call fcn.659cac10
mov eax, ecx
jmp 0x659b51d1
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [0x659b52e0]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
mov dword [esp], ecx
call fcn.659c96b0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x30]
mov dword [esp], ecx
call fcn.6598f0a0
mov eax, dword [esp + 0x30]
mov dword [eax + 0x30], 0
mov dword [esp], eax
call fcn.659b4bf0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.659c1310
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.659cac90
nop
call fcn.659c97c0
jmp fcn.659b4f90