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

Disassembly:
push 0xffffffffffffffff
push 0x58d440
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, 0x5adcfc
call fcn.00481430
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x5af6e0
mov dword [esp + 0x2c], 0
call fcn.00481430
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov byte [esp + 0x34], 1
call fcn.0047db80
lea edi, [ebp + 8]
mov byte [esp + 0x28], 2
mov dword [esp + 0x1c], edi
call fcn.00480f90
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x516451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x516476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51649e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x5bada0
call fcn.00481430
mov eax, dword [ebx + 0x24]
test eax, eax
mov esi, dword [esp + 0x30]
je 0x5164d1
cmp dword [eax + 0xc], 2
jne 0x5164d1
push esi
lea ecx, [eax + 0x14]
call fcn.00485f30
mov edi, eax
neg edi
sbb edi, edi
neg edi
jmp 0x5164d3
xor edi, edi
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5164ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x5165b7
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x5adcfc
call fcn.00481430
lea edx, [esp + 0x30]
push edx
mov ecx, 0x5bada0
mov dword [esp + 0x2c], 3
call fcn.00481430
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
mov byte [esp + 0x34], 4
call fcn.0047db80
lea edi, [ebp + 0xc]
mov byte [esp + 0x28], 5
call fcn.00480f90
mov byte [esp + 0x28], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51656a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51658f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5165b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
mov eax, ebp
call fcn.00478080
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
mov eax, dword [esp + 0x18]
sete byte [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5165ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x30], 0
je 0x516637
lea esi, [esp + 0x30]
mov eax, ebp
call fcn.004764f0
lea edi, [ebp + 0xc]
mov dword [esp + 0x28], 6
call fcn.00480f90
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x516637
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x5adcfc
call fcn.00481430
lea edx, [esp + 0x30]
push edx
mov ecx, str.title
mov dword [esp + 0x2c], 7
call fcn.00481430
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
mov byte [esp + 0x34], 8
call fcn.0047db80
lea edi, [ebp + 0x10]
mov byte [esp + 0x28], 9
call fcn.00480f90
mov byte [esp + 0x28], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5166ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5166d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5166f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x5adcfc
call fcn.00481430
lea edx, [esp + 0x30]
push edx
mov ecx, str.passport
mov dword [esp + 0x2c], 0xa
call fcn.00481430
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
mov byte [esp + 0x34], 0xb
call fcn.0047db80
lea edi, [ebp + 4]
mov byte [esp + 0x28], 0xc
call fcn.00480f90
mov byte [esp + 0x28], 0xb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x516765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0xa
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x516789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5167ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x5af7fc
call fcn.00481430
push 0
lea edi, [esp + 0x34]
mov ecx, ebx
mov dword [esp + 0x2c], 0xd
call fcn.0047dce0
mov dword [ebp], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x5167f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, str.titlechangable
call fcn.00481430
lea esi, [esp + 0x18]
mov eax, ebp
mov dword [esp + 0x28], 0xe
call fcn.005198f0
mov byte [esp + 0x28], 0xf
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.0047c480
mov dword [ebp + 0x18], eax
mov byte [esp + 0x28], 0xe
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51685d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x516880
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, str.existpid
call fcn.00481430
push 0
lea edi, [esp + 0x34]
mov ecx, ebx
mov dword [esp + 0x2c], 0x10
call fcn.0047dce0
test eax, eax
je 0x5168b2
mov dword [ebp + 0x48], 1
mov dword [ebp + 0x4c], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5168d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, str.subpipe
call fcn.00481430
push 0
lea ecx, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x2c], 0x11
call fcn.0047c480
mov dword [ebp + 0x20], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51691f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, str.autosighpageid
call fcn.00481430
push 1
lea ecx, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x2c], 0x12
call fcn.0047c480
mov dword [ebp + 0x24], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x516969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.createtime
call fcn.00481430
push 0
lea edi, [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x2c], 0x13
call fcn.0047dce0
mov dword [ebp + 0x50], eax
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x5169b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
xor eax, eax
cmp dword [edx - 0xc], eax
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4