Function at 0x405cfa
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x41462b
call fcn.004097a4
sub esp, 0x3a4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x40
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
pop ecx
xor eax, eax
mov byte [ebp - 0x164], bl
lea edi, [ebp - 0x163]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
push 0x2000000
push 3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], ebx
je 0x405d89
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x405d82
lea eax, [ebp - 0x60]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push 0x418254
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0040556b
test eax, eax
jne 0x405db5
mov dword [ebp - 0x28], 5
push 0x41a6b8
lea eax, [ebp - 0x28]
jmp 0x405f2c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x164]
push str._s_s.exe
push eax
call fcn.0040996a
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.00409aa6
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add esp, 0x1c
push dword [esi + 4]
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x14]
call fcn.0040549f
test eax, eax
jne 0x405e16
mov dword [ebp - 0x2c], 0x4000
push 0x41a6b8
lea eax, [ebp - 0x2c]
jmp 0x405f2c
lea eax, [ebp - 0x164]
push 0x418684
push eax
call fcn.00408f69
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x405e43
mov dword [ebp - 0x34], 0x4000
push 0x41a6b8
lea eax, [ebp - 0x34]
jmp 0x405f2c
push dword [esi + 8]
call fcn.00409a0d
pop ecx
push ebx
push dword [esi + 0xc]
mov dword [ebp + 8], eax
push dword [ebp - 0x14]
call fcn.00409aa6
push dword [ebp - 0x14]
push dword [esi + 8]
push 1
push dword [ebp + 8]
call fcn.00408e24
push 2
push ebx
push edi
call fcn.00409aa6
push edi
call fcn.00409c51
push edi
push dword [esi + 8]
mov dword [esi + 0xc], eax
push 1
push dword [ebp + 8]
call fcn.00408cef
push dword [ebp + 8]
call fcn.00409a12
add esp, 0x40
push edi
push 0x38
push 1
push esi
call fcn.00408cef
push edi
call fcn.00408ebc
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push dword [ebp - 0x20]
lea eax, [ebp - 0x164]
push eax
call fcn.00405aa1
push 2
push ebx
push dword [ebp - 0x14]
call fcn.00409aa6
push dword [ebp - 0x14]
call fcn.00409c51
mov edi, eax
push 0xffffffffffffffc8
pop eax
sub eax, dword [esi + 8]
push dword [ebp - 0x24]
sub eax, dword [esi + 4]
add edi, eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x3b0]
push str._s_s.dll
push eax
call fcn.0040996a
push ebx
push dword [esi + 4]
push dword [ebp - 0x14]
call fcn.00409aa6
mov ecx, dword [ebp - 0x1c]
add esp, 0x2c
push edi
lea eax, [ebp - 0x3b0]
push eax
push dword [ebp - 0x14]
call fcn.0040549f
test eax, eax
jne 0x405f32
mov dword [ebp - 0x30], 0x8000
push 0x41a6b8
lea eax, [ebp - 0x30]
push eax
call fcn.004097c3
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x3b0]
push eax
call fcn.00405aa1
jmp 0x405f54
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x405f66
push dword [ebp - 0x14]
call fcn.00408ebc
pop ecx
lea eax, [ebp - 0x164]
push eax
call fcn.004086a0
test eax, eax
pop ecx
je 0x405ffc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x1c]
push 1
push dword [eax]
lea eax, [ebp - 0x164]
push eax
call fcn.00405bc8
cmp eax, ebx
je 0x405fa0
or eax, 0x10000
or dword [ebp - 0x18], eax
push 0x44
lea eax, [ebp - 0x1a8]
push ebx
push eax
call fcn.004082e0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x1a8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405fe7
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x44]
call esi
jmp 0x405ffc
or byte [ebp - 0x16], 2
test word [ebp - 0x18], 0xfff
jne 0x405ffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8