Function at 0x405400
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4437a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
push 0x44a3e8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00401e70
push 0x44a3e8
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00401e70
push 0x44a3e8
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.00401e70
lea ebp, [edi + 0xe4]
mov esi, ebp
mov byte [esp + 0x34], 3
call fcn.00406430
test al, al
je 0x405631
lea esi, [esp + 0x20]
call fcn.00404240
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 4
call fcn.00401c70
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
je 0x4054d0
lea edx, [esp + 0x18]
push edx
call fcn.00405bd0
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0xac]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x44ac90
push edx
call fcn.004022a0
mov eax, dword [edi + 0xac]
push eax
lea ecx, [esp + 0x30]
push str._s_Logon
push ecx
call fcn.004022a0
mov eax, dword [esp + 0x38]
add esp, 0x18
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.004066a0
mov ebx, eax
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.004064a0
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.004064a0
cmp al, 1
jne 0x405623
cmp ebx, 4
je 0x4055e3
mov ebx, dword [esp + 0x3c]
cmp dword [ebx - 0xc], 0
je 0x4055b1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ebx
call fcn.00401e70
push ecx
lea edx, [edi + 0xbc]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x40], 5
call fcn.00402280
mov byte [esp + 0x3c], 3
call fcn.004042a0
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.004065a0
test al, al
jne 0x405653
mov eax, dword [edi + 0xa4]
push 1
push eax
push ebx
jmp 0x40563f
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
jne 0x405653
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00401e00
add esp, 4
add eax, 0x10
push ebp
mov dword [esi], eax
call fcn.004065a0
test al, al
jne 0x405653
mov eax, dword [edi + 0xa4]
mov ecx, dword [esp + 0x3c]
push 1
push eax
push ecx
jmp 0x40563f
sub ebx, 3
je 0x405700
sub ebx, 1
je 0x405653
mov eax, dword [edi + 0xa4]
mov edx, dword [esp + 0x3c]
push 1
push eax
push edx
mov edi, dword [edi + 0xa8]
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 1
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 0x40569d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
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 0x4056c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x3c]
cmp dword [eax - 0xc], 0
jmp 0x405611