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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x5957e1
mov eax, dword [esi + 0x1c]
cmp eax, 1
jne 0x5957e6
mov eax, dword [ecx + 0x48]
test eax, eax
jne 0x5957b1
mov ecx, esi
pop esi
jmp 0x595970
cmp eax, 1
jne 0x5957be
mov ecx, esi
pop esi
jmp 0x595810
mov ecx, dword [esi + 0x18]
mov byte [esi + 0x120], 1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x20], 0
test ecx, ecx
je 0x5957e1
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
mov dword [esi + 0x1c], eax
pop esi
ret
push 0xffffffffffffffff
push 0x753478
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 2
jne 0x59588c
mov byte [edi + 0x120], 1
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [edi + 0x20]
mov dword [edi + 0x20], 0
test ecx, ecx
je 0x595870
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x1c], 0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
cmp byte [edi + 0x120], 0
jne 0x595870
mov eax, dword [edi + 0x20]
lea ecx, [edi + 8]
cmp dword [eax + 0x24], 0
mov edx, dword [eax + 0x44]
je 0x5958a9
mov eax, dword [eax + 0x20]
jmp 0x5958ab
xor eax, eax
push ecx
push edx
push eax
lea ecx, [edi + 0x28]
call fcn.00539020
cmp eax, 3
je 0x59584c
cmp eax, 1
jne 0x5958e7
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x794490
mov ecx, edi
call fcn.00595130
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
test eax, eax
jne 0x595938
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x28]
lea esi, [edi + 4]
call fcn.00537f10
mov ecx, dword [edi + 0x18]
push eax
push esi
mov dword [esp + 0x40], 0
mov edx, dword [ecx]
call dword [edx + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.0061b700
mov ecx, edi
call fcn.00595ab0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
push 0
sub esp, 8
lea eax, [edi + 0x10]
mov ecx, esp
push eax
call fcn.00471a30
mov ecx, edi
call fcn.00594e90
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
push ecx
push esi
mov esi, ecx
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 0x44]
cmp eax, dword [edx + 0x40]
jge 0x5959b2
mov ecx, dword [esi + 0x18]
mov byte [esi + 0x120], 1
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x20], 0
test ecx, ecx
je 0x5959aa
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
mov dword [esi + 0x1c], eax
pop esi
pop ecx
ret
cmp byte [esi + 0x120], 0
jne 0x5959aa
push 0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.0053f7f0
mov ecx, esi
call fcn.00594e90
pop esi
pop ecx
ret