Function at 0x401f30
Capabilities:
Create process on windows
Impersonate user

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.start_client_login
mov dword [esp + 0x20], ebx
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.00401150
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
add esp, 4
lea eax, [esp + 0x14]
mov dword [0x407afc], ebx
push eax
mov eax, dword [esp + 0x7c]
push ebx
push 2
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x401f95
push str.logonuser_failed
call fcn.00401150
add esp, 4
jmp 0x402180
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov esi, eax
cmp esi, ebx
jne 0x401fb3
push str.getprocesswindowstation_failed
call fcn.00401150
add esp, 4
jmp 0x402180
push 0x60000
push ebx
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov ebp, eax
cmp ebp, ebx
jne 0x401fdc
push str.openwindowstation_failed
call fcn.00401150
add esp, 4
jmp 0x402180
push ebp
mov dword [0x407afc], ebx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x401fff
push str.setprocesswindowstation_failed
call fcn.00401150
add esp, 4
jmp 0x402180
push 0x60081
push ebx
push ebx
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov edi, eax
push esi
mov dword [esp + 0x20], edi
mov dword [0x407afc], ebx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x40203a
push str.setprocesswindowstation_failed
call fcn.00401150
add esp, 4
jmp 0x402180
cmp edi, ebx
jne 0x402050
push str.hdesk_failed
call fcn.00401150
add esp, 4
jmp 0x402180
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00402780
add esp, 8
test eax, eax
jne 0x402078
push str.getlogonsid_failed
call fcn.00401150
add esp, 4
jmp 0x402180
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.004021f0
add esp, 8
test eax, eax
jne 0x40209c
push str.addacetowindowstation_failed
call fcn.00401150
add esp, 4
jmp 0x402180
mov ecx, dword [esp + 0x10]
push ecx
push edi
call fcn.004024f0
add esp, 8
test eax, eax
jne 0x4020c0
push str.addacetodesktop_failed
call fcn.00401150
add esp, 4
jmp 0x402180
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x4020e1
push str.impersonateloggedonuser_failed
call fcn.00401150
add esp, 4
jmp 0x402180
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
push str.launch_createprocessasuser
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.winsta0default
mov dword [0x407afc], ebx
call fcn.00401150
mov edx, dword [esp + 0x8c]
add esp, 4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebx
push 0x30
push ebx
push ebx
push ebx
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
mov dword [0x407afc], ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp edi, ebx
je 0x402170
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x402170
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x402180
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.cleanup
call fcn.00401150
add esp, 4
cmp esi, ebx
je 0x402198
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [esp + 0x10], ebx
je 0x4021ab
lea eax, [esp + 0x10]
push eax
call fcn.00402760
add esp, 4
cmp ebp, ebx
je 0x4021b6
push ebp
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4021c5
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4021d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [0x407afc], ebx
pop ebp
pop ebx
add esp, 0x64
ret