Function at 0x404170
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x42b014]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
mov byte [esp + 0x30], 0
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], str.dll_dirs_F67BB3AD_7B5E_4C2D_A22B_747BC163AB78
mov eax, dword [esp + 0x10]
push str.kernel32.dll
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4041d5
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4041d5
push 0x1000
mov ecx, esi
call dword [0x41d160]
call esi
lea ecx, [esp + 0x94]
call fcn.00403a80
cmp byte [eax + 0x18], 0
je 0x40422a
cmp byte [esp + 0x34], 0
je 0x4041fd
push eax
lea ecx, [esp + 0x20]
call fcn.00405800
jmp 0x404284
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [esp + 0x1c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x2c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [esp + 0x34], 1
jmp 0x404284
cmp byte [esp + 0x34], 0
je 0x404284
mov edx, dword [esp + 0x30]
cmp edx, 8
jb 0x40426d
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404263
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047cc
push edx
push ecx
call fcn.0040826d
add esp, 8
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
cmp byte [esp + 0xac], 0
je 0x4042d0
mov edx, dword [esp + 0xa8]
cmp edx, 8
jb 0x4042d0
mov ecx, dword [esp + 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4042c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047cc
push edx
push ecx
call fcn.0040826d
add esp, 8
sub esp, 0x18
mov ecx, edi
mov edx, esp
lea esi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042f0
sub ecx, esi
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00405f10
lea ecx, [esp + 0x50]
call fcn.00402250
push 3
push 0x427a78
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 7
call fcn.00405f10
push 4
push 0x427a80
lea ecx, [esp + 0xe0]
mov dword [esp + 0xe0], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 7
call fcn.00405f10
push 0x208
lea eax, [esp + 0x124]
push 0
push eax
call fcn.00409d80
add esp, 0xc
lea eax, [esp + 0x120]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x48]
call fcn.00407220
mov ebx, dword [esp + 0x90]
mov edi, dword [esp + 0xd4]
mov esi, dword [esp + 0xc0]
cmp byte [ebx + 0xd], 0
jne 0x4046a5
cmp dword [ebx + 0x24], 8
lea eax, [ebx + 0x10]
mov edx, dword [eax + 0x10]
jb 0x40440e
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xd4]
lea ecx, [esp + 0xc4]
cmp edi, 8
push eax
cmovae ecx, esi
call fcn.00406960
add esp, 8
test eax, eax
js 0x4046a5
cmp ebx, dword [esp + 0x40]
je 0x4046a5
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x10c]
push eax
lea ecx, [esp + 0x40]
call fcn.00402930
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x40]
call fcn.00402930
cmp dword [esp + 0x11c], 8
lea eax, [esp + 0x48]
mov dword [esp + 0x70], eax
lea esi, [esp + 0x108]
cmovae esi, dword [esp + 0x108]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0xb4]
mov dword [esp + 0x4c], 0x10
push eax
push 0
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x30
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 2
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0x1000
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0xbc], 0xaac56b
mov dword [esp + 0xc0], 0x11d0cd44
mov dword [esp + 0xc4], 0xc000c28c
mov dword [esp + 0xc8], 0xee95c24f
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov ecx, eax
test ecx, ecx
jne 0x404562
mov eax, 0x42ba20
mov dl, 1
jmp 0x40457a
cmp ecx, 0x800b0004
jne 0x404573
xor ecx, ecx
mov eax, 0x42ba20
jmp 0x404578
mov eax, 0x42ba38
xor dl, dl
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
cmp eax, dword [0x42ba24]
jne 0x404595
test ecx, ecx
jne 0x404595
test dl, dl
jne 0x4045ab
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.00403070
test al, al
jne 0x4045ab
mov ebx, 0xa0
jmp 0x4045f1
cmp dword [esp + 0x104], 8
lea ecx, [esp + 0xf0]
push 5
cmovae ecx, dword [esp + 0xf4]
lea edx, [esp + 0x124]
cmp dword [esp + 0x120], 8
lea eax, [esp + 0x10c]
push edx
cmovae eax, dword [esp + 0x110]
push ecx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
mov edx, dword [esp + 0x104]
cmp edx, 8
jb 0x404633
mov ecx, dword [esp + 0xf0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404629
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047d1
push edx
push ecx
call fcn.0040826d
add esp, 8
mov edx, dword [esp + 0x11c]
xor eax, eax
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 7
mov word [esp + 0xf0], ax
cmp edx, 8
jb 0x404695
mov ecx, dword [esp + 0x108]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40468b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047d1
push edx
push ecx
call fcn.0040826d
add esp, 8
mov edi, dword [esp + 0xd4]
mov esi, dword [esp + 0xc0]
jmp 0x4046a7
xor ebx, ebx
mov edx, dword [esp + 0xec]
cmp edx, 8
jb 0x4046f7
mov ecx, dword [esp + 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4046df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047d6
push edx
push ecx
call fcn.0040826d
mov edi, dword [esp + 0xdc]
add esp, 8
mov esi, dword [esp + 0xc0]
xor eax, eax
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 7
mov word [esp + 0xd8], ax
cmp edi, 8
jb 0x40474b
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x404741
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047d6
push edi
push esi
call fcn.0040826d
add esp, 8
xor eax, eax
mov dword [esp + 0xd0], 0
lea ecx, [esp + 0x40]
mov dword [esp + 0xd4], 7
mov word [esp + 0xc0], ax
call fcn.00405420
cmp byte [esp + 0x34], 0
je 0x4047b3
mov edx, dword [esp + 0x30]
cmp edx, 8
jb 0x4047b3
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4047a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047d6
push edx
push ecx
call fcn.0040826d
add esp, 8
mov ecx, dword [esp + 0x32c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040825f
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040c55f
call fcn.0040c55f
call fcn.0040c55f
int3