Function at 0x402550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x462680
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480810]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], 0
call fcn.004029a0
add esp, 4
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x14]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0040a5f0
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00422b50
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0040a7a0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4025f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x402653
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40261c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40263d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call fcn.0042f9e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40266d
push 0x80004005
call fcn.0040a150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x2c], 3
mov ecx, dword [0x484dfc]
push ecx
lea edx, [esp + 0x20]
push str.vnet_login__s_
push edx
call fcn.0040a2f0
mov ebp, dword [esp + 0x28]
add esp, 0xc
test ebp, ebp
je 0x4026c7
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4026c7
push ebp
push eax
call fcn.00449f00
add esp, 8
test eax, eax
je 0x4026c7
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov edi, eax
cmp edi, ebx
jne 0x402746
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40270b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40263d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
mov eax, dword [ecx - 0xc]
jl 0x40276f
cmp edi, eax
jg 0x40276f
add ecx, edi
push 0x46d940
push ecx
call fcn.00449f00
add esp, 8
test eax, eax
je 0x40276f
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, ebx
jne 0x4027ee
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40278f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40263d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call fcn.0042f9e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402808
push 0x80004005
call fcn.0040a150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 4
mov byte [esp + 0x2c], bl
mov eax, dword [ebp - 0xc]
sub esi, eax
sub esi, edi
push esi
add eax, edi
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
call fcn.00408a00
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.0040a7a0
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40286a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x402900
add eax, 0xfffffff0
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402899
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402631
cmp dword [eax - 4], 1
jle 0x402917
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a040
mov eax, dword [esp + 0x18]
push eax
call fcn.004493bf
add esp, 4
cmp eax, 0x3e7
lea ecx, [esp + 0x18]
jne 0x402964
call fcn.0040a170
lea ecx, [esp + 0x1c]
call fcn.0040a170
lea ecx, [esp + 0x14]
call fcn.0040a170
lea ecx, [esp + 0x34]
call fcn.0040a170
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call fcn.0040a170
lea ecx, [esp + 0x1c]
call fcn.0040a170
lea ecx, [esp + 0x14]
call fcn.0040a170
lea ecx, [esp + 0x34]
call fcn.0040a170
mov eax, 2
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret