Function at 0x401db0
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.004010c0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
add esp, 4
lea eax, [esp + 0x14]
mov dword [0x407a2c], 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 0x401e15
push str.logonuser_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov esi, eax
cmp esi, ebx
jne 0x401e33
push str.getprocesswindowstation_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
push 0x60000
push ebx
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov ebp, eax
cmp ebp, ebx
jne 0x401e5c
push str.openwindowstation_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
push ebp
mov dword [0x407a2c], ebx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x401e7f
push str.setprocesswindowstation_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
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 [0x407a2c], ebx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
jne 0x401eba
push str.setprocesswindowstation_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
cmp edi, ebx
jne 0x401ed0
push str.hdesk_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.00402600
add esp, 8
test eax, eax
jne 0x401ef8
push str.getlogonsid_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.00402070
add esp, 8
test eax, eax
jne 0x401f1c
push str.addacetowindowstation_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
mov ecx, dword [esp + 0x10]
push ecx
push edi
call fcn.00402370
add esp, 8
test eax, eax
jne 0x401f40
push str.addacetodesktop_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x401f61
push str.impersonateloggedonuser_failed
call fcn.004010c0
add esp, 4
jmp 0x402000
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 [0x407a2c], ebx
call fcn.004010c0
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 [0x407a2c], ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp edi, ebx
je 0x401ff0
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x401ff0
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 0x402000
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.cleanup
call fcn.004010c0
add esp, 4
cmp esi, ebx
je 0x402018
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp dword [esp + 0x10], ebx
je 0x40202b
lea eax, [esp + 0x10]
push eax
call fcn.004025e0
add esp, 4
cmp ebp, ebx
je 0x402036
push ebp
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402045
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x402055
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [0x407a2c], ebx
pop ebp
pop ebx
add esp, 0x64
ret