Function at 0x402970
Capabilities:
Create process on windows
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x15e4
call fcn.0040b7a0
mov eax, dword [0x416044]
xor eax, esp
mov dword [esp + 0x15e0], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [esp + 0x78]
push eax
call fcn.004016a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xbca]
push edx
mov word [esp + 0xbcc], cx
call fcn.00408bd0
mov ecx, dword [esp + 0x98]
mov eax, esi
add esp, 0xc
mov dword [esp + 0x10], ecx
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4029d0
push 0
lea edx, [esp + 0xbc4]
push edx
sub eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push esi
push 0
push ecx
call edi
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x4029f5
push eax
lea eax, [esp + 0xbc4]
push eax
sub ecx, edx
push ecx
mov ecx, dword [esp + 0x1c]
push esi
xor ebx, ebx
push ebx
push ecx
call edi
xor edx, edx
mov word [esp + eax*2 + 0xbc0], dx
call fcn.00401000
push 0x206
lea ecx, [esp + 0xfd6]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xfdc], ax
call fcn.00408bd0
add esp, 0xc
push 0x206
lea eax, [esp + 0x9be]
xor edx, edx
push ebx
push eax
mov word [esp + 0x9c4], dx
call fcn.00408bd0
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x9c0]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x402aa2
lea edx, [esp + 0x9b8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x402aa2
push 0x104
lea eax, [esp + 0x9bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [esp + 0x9b8], bx
je 0x402d6d
lea eax, [esp + 0x9b8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402ac0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x9b6], 0x5c
lea eax, [esp + 0x9b8]
jne 0x402b29
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402ae4
mov ecx, dword [0x4144c0]
mov edx, dword [0x4144c4]
mov dword [eax], ecx
mov ecx, dword [0x4144c8]
mov dword [eax + 4], edx
mov edx, dword [0x4144cc]
mov dword [eax + 8], ecx
mov ecx, dword [0x4144d0]
mov dword [eax + 0xc], edx
mov dx, word [0x4144d4]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
jmp 0x402b71
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x402b30
mov ecx, dword [str.QuickSetup]
mov edx, dword [0x4144dc]
mov dword [eax], ecx
mov ecx, dword [0x4144e0]
mov dword [eax + 4], edx
mov edx, dword [0x4144e4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4144e8]
mov dword [eax + 0xc], edx
mov edx, dword [0x4144ec]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x9b8]
push eax
call fcn.00402190
xor eax, eax
movzx ecx, word [eax + str.NetworkQuick_Setup]
mov word [esp + eax + 0xfd0], cx
add eax, 2
cmp cx, bx
jne 0x402b80
push ebx
push 1
push ebx
lea ecx, [esp + 0x9c4]
push ecx
lea edx, [esp + 0xfe0]
push edx
lea ecx, [esp + 0x8c]
call fcn.00401f70
push 0x206
lea ecx, [esp + 0xdce]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xdd4], ax
call fcn.00408bd0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x9b8]
push edx
lea eax, [esp + 0xdcc]
push str._sEZSETUP.EXE
push eax
call edi
add esp, 0xc
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xf], 0
call fcn.004015f0
test eax, eax
jl 0x402c4c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x402c4c
xor eax, eax
cmp word [esp + 0x10], bx
setne al
cmp eax, ebx
je 0x402c4c
lea ecx, [esp + 0xdc8]
push ecx
mov edx, esi
push edx
call fcn.004013e0
mov byte [esp + 0xf], al
xor eax, eax
push 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00408bd0
add esp, 0xc
push 0x40e
mov ecx, 1
lea eax, [esp + 0x11de]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], cx
mov dword [esp + 0x68], ecx
mov word [esp + 0x11e4], dx
call fcn.00408bd0
add esp, 0xc
lea ecx, [esp + 0xbc0]
push ecx
lea edx, [esp + 0xdcc]
push edx
lea eax, [esp + 0x11e0]
push str._s__s
push eax
call edi
lea ecx, [esp + 0x11e8]
push ecx
push str.COMMAND____s__n
call fcn.00401140
add esp, 0x18
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x11f8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402d2b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x10], ebx
mov ebx, 0x103
push 0x1f4
call esi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
call edi
cmp dword [esp + 0x10], ebx
je 0x402d10
jmp 0x402d43
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.CreateProcess_failure____ld_n
call fcn.00401060
add esp, 8
call esi
cmp byte [esp + 0xf], 0
je 0x402d5c
lea ecx, [esp + 0xdc8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00401540
lea eax, [esp + 0x9b8]
push eax
lea ecx, [esp + 0x7c]
call fcn.004023c0
mov ecx, dword [esp + 0x15ec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402d86
mov esp, ebp
pop ebp
ret 0x10