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

Disassembly:
push 0xffffffffffffffff
push 0x462700
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e820]
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.00402ff0
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.0040acb0
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00403fe0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0040ae60
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 0x402c42
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 0x402ca3
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 0x402c6c
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 0x402c8d
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.0042fdf3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402cbd
push 0x80004005
call fcn.0040aa40
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 [0x482d8c]
push ecx
lea edx, [esp + 0x20]
push str.vnet_login__s_
push edx
call fcn.0040ab20
mov ebp, dword [esp + 0x28]
add esp, 0xc
test ebp, ebp
je 0x402d17
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x402d17
push ebp
push eax
call fcn.00449d25
add esp, 8
test eax, eax
je 0x402d17
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov edi, eax
cmp edi, ebx
jne 0x402d96
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 0x402d37
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 0x402d5b
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 0x402c8d
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 0x402dbf
cmp edi, eax
jg 0x402dbf
add ecx, edi
push 0x46e948
push ecx
call fcn.00449d25
add esp, 8
test eax, eax
je 0x402dbf
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, ebx
jne 0x402e3e
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 0x402ddf
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 0x402e03
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 0x402c8d
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.0042fdf3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402e58
push 0x80004005
call fcn.0040aa40
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.00409300
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.0040ae60
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 0x402eba
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 0x402f50
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 0x402ee9
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 0x402f0a
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 0x402f2f
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 0x402c81
cmp dword [eax - 4], 1
jle 0x402f67
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040a930
mov eax, dword [esp + 0x18]
push eax
call fcn.0044935f
add esp, 4
cmp eax, 0x3e7
lea ecx, [esp + 0x18]
jne 0x402fb4
call fcn.0040b0e0
lea ecx, [esp + 0x1c]
call fcn.0040b0e0
lea ecx, [esp + 0x14]
call fcn.0040b0e0
lea ecx, [esp + 0x34]
call fcn.0040b0e0
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.0040b0e0
lea ecx, [esp + 0x1c]
call fcn.0040b0e0
lea ecx, [esp + 0x14]
call fcn.0040b0e0
lea ecx, [esp + 0x34]
call fcn.0040b0e0
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