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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402c6c
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0x1f4
mov dword [ebp - 0x198], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
mov dword [ebp - 0x134], 0
movups xmmword [ebp - 0x144], xmm0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
mov edi, 1
mov dword [ebp - 4], 0
cmp dword [ebp + 8], edi
jle 0x40131f
nop dword [eax + eax]
push dword [esi + edi*4]
lea eax, [edi*4]
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x194], eax
call fcn.00401700
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x401216
mov eax, dword [eax]
cmp ecx, 0xa
jne 0x40126b
mov edx, str.__fileName
lea esi, [ecx - 4]
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x401234
add eax, 4
add edx, 4
sub esi, 4
jae 0x401223
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40125b
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40125b
cmp esi, 0xfffffffe
je 0x401257
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x40125b
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
jne 0x40125b
xor eax, eax
jmp 0x401260
sbb eax, eax
or eax, 1
mov byte [ebp - 0x18d], 1
test eax, eax
je 0x401272
mov byte [ebp - 0x18d], 0
mov ecx, dword [ebp - 0x178]
cmp ecx, 0x10
jb 0x4012ac
mov edx, dword [ebp - 0x18c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4012a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40148e
push ecx
push edx
call fcn.00401f08
add esp, 8
cmp byte [ebp - 0x18d], 0
je 0x4012ec
lea eax, [edi + 1]
mov edi, eax
cmp eax, dword [ebp + 8]
jge 0x4012fd
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x198]
mov edx, dword [edx + eax + 4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012d4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.00401810
jmp 0x4012ed
inc edi
cmp edi, dword [ebp + 8]
jge 0x40131f
mov esi, dword [ebp - 0x198]
jmp 0x4011f0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00401940
push 0x401b50
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, 1
jmp 0x401652
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x18c]
call fcn.00401700
push str.__acd.unknown3304.exe
lea edx, [ebp - 0x18c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x174]
call fcn.00401b80
push str.__loader_old_3304.exe
lea edx, [ebp - 0x18c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x15c]
call fcn.00401b80
push 0x403250
lea edx, [ebp - 0x18c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b0]
call fcn.00401b80
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x144]
cmp dword [ebp - 0x130], 0x10
mov ecx, dword [esi + 0x10]
cmovae edx, dword [ebp - 0x144]
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x134]
sub eax, ecx
mov dword [ebp - 0x194], ecx
cmp edi, eax
ja 0x401403
cmp dword [esi + 0x14], 0x10
lea eax, [edi + ecx]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x198], esi
jb 0x4013e2
mov eax, dword [esi]
mov dword [ebp - 0x198], eax
push edi
push edx
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x198]
add esp, 0xc
mov ecx, dword [ebp - 0x194]
add eax, edi
mov byte [eax + ecx], 0
jmp 0x40141c
push edi
push edx
mov byte [ebp - 0x194], 0
mov ecx, esi
push dword [ebp - 0x194]
push edi
call fcn.00401cb0
mov esi, eax
mov dword [ebp - 0x11c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x12c], xmm0
mov dword [ebp - 0x118], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x12c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x11c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x19c]
cmp ecx, 0x10
jb 0x40149e
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401494
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401494
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401f08
add esp, 8
cmp dword [ebp - 0x148], 0x10
lea ecx, [ebp - 0x15c]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
lea eax, [ebp - 0x12c]
cmovae ecx, dword [ebp - 0x15c]
cmp dword [ebp - 0x118], 0x10
push ecx
cmovae eax, dword [ebp - 0x12c]
push eax
call esi
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x174]
cmovae ecx, dword [ebp - 0x12c]
cmp dword [ebp - 0x160], 0x10
push ecx
cmovae eax, dword [ebp - 0x174]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push 0xa
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x118]
xor esi, esi
cmp ecx, 0x10
jb 0x401563
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401559
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401680
push ecx
push edx
call fcn.00401f08
add esp, 8
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp ecx, 0x10
jb 0x4015b4
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4015aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401680
push ecx
push edx
call fcn.00401f08
add esp, 8
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
cmp ecx, 0x10
jb 0x401605
mov edx, dword [ebp - 0x174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4015fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401680
push ecx
push edx
call fcn.00401f08
add esp, 8
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
cmp ecx, 0x10
jb 0x401652
mov edx, dword [ebp - 0x18c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401648
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401680
push ecx
push edx
call fcn.00401f08
add esp, 8
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x401690
mov edx, dword [ebp - 0x144]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x401686
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401686
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401f08
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401eca
mov esp, ebp
pop ebp
ret