Function at 0x404180
Capabilities:
Create process on windows
Get common file path
Move file
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10e4
call fcn.0043d000
mov eax, dword [0x464ce4]
xor eax, esp
mov dword [esp + 0x10e0], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.0043871c
add esp, 4
push edx
push eax
push 0x468502
push str._s_t_d
lea edx, [esp + 0x6e0]
call fcn.00405e30
add esp, 0x10
push 0x45db78
lea ebx, [esp + 0x14]
lea edx, [esp + 0x6d4]
mov ecx, esi
call fcn.00403e60
mov edi, eax
test edi, edi
je 0x4042c2
lea eax, [esp + 0x4c8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
call fcn.0043871c
add esp, 4
push edx
push eax
lea ecx, [esp + 0x4d0]
push ecx
push str._s_list.txt
lea edx, [esp + 0x2d0]
call fcn.00405df0
push 0x45db70
lea edx, [esp + 0x2d4]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00438b75
add esp, 0x1c
test eax, eax
jne 0x404277
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 1
push edi
call fcn.00438d13
mov eax, dword [esp + 0x24]
push eax
call fcn.00438f17
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
call fcn.00438fe0
add esp, 4
mov bl, 1
jmp 0x404279
xor bl, bl
push edi
call fcn.00438a6d
add esp, 4
test bl, bl
jne 0x404368
mov edx, dword [esi + 4]
push 0x40
push 0x45d8c8
push 0x45db9c
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 0
push 0x12
mov ecx, esi
call fcn.0040661a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10e0]
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x2a0]
push 0x64
call fcn.0040cf52
mov ecx, dword [esi + 0x2a0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
push 0x45dbb8
call edx
lea eax, [esp + 0x4c8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
call fcn.0043871c
add esp, 4
push edx
push eax
lea ecx, [esp + 0x4d0]
push ecx
push str._s_list.txt
lea edx, [esp + 0x2d0]
call fcn.00405df0
add esp, 0x10
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x404368
mov ecx, dword [esi + 0x2a0]
push 0x64
call fcn.0040cf52
mov ecx, dword [esi + 0x2a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45dbb8
call eax
mov ecx, dword [esi + 4]
push 0x40
push 0x45d8c8
push 0x45dbd0
push ecx
jmp 0x40429a
lea ecx, [esp + 0x2c0]
call fcn.00404630
push 4
xor edi, edi
push edi
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x4680e2
call fcn.00438aac
add esp, 4
cmp eax, dword [esi + 0x2b0]
jge 0x404547
push edi
mov dword [esp + 0x14], edi
call fcn.0043871c
add esp, 4
push edx
push eax
lea eax, [esi + 0x2b4]
push eax
push str._s_t_d
lea edx, [esp + 0x6e0]
call fcn.00405e30
add esp, 0x10
push 0x45dbf4
lea ebx, [esp + 0x14]
lea edx, [esp + 0x6d4]
mov ecx, esi
call fcn.00403e60
mov edi, eax
test edi, edi
jne 0x40441b
mov ecx, dword [esi + 0x2a0]
push 0x64
call fcn.0040cf52
mov ecx, dword [esi + 0x2a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45dc04
call eax
mov ecx, dword [esi + 4]
push 0x40
push 0x45d8c8
push 0x45dc1c
push ecx
jmp 0x40429a
push 0x45db70
lea edx, [esp + 0x18]
push str.._Launcher.new
push edx
call fcn.00438b75
add esp, 0xc
test eax, eax
jne 0x404466
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 1
push edi
call fcn.00438d13
mov edx, dword [esp + 0x24]
push edx
call fcn.00438f17
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
call fcn.00438fe0
add esp, 4
mov bl, 1
jmp 0x404468
xor bl, bl
push edi
call fcn.00438a6d
add esp, 4
test bl, bl
jne 0x40448a
mov ecx, dword [esi + 4]
push 0x40
push 0x45d8c8
push 0x45dc40
push ecx
jmp 0x40429a
mov ecx, dword [esi + 0x2a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45dc58
call eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0043a230
add esp, 0xc
lea edx, [esp + 0xad0]
push edx
push 0x104
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
lea eax, [esp + 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xad4]
push edx
push str._sLauncher.new__update___s_
lea edx, [esp + 0xce4]
call fcn.00405e50
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xad8]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xcf8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0x12
mov ecx, esi
call fcn.0040661a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea ecx, [esp + 0x6d4]
push edi
push ecx
call fcn.0043a230
add esp, 0xc
push edi
mov dword [esp + 0x14], edi
call fcn.0043871c
add esp, 4
push edx
push eax
push 0x468302
push str._s_t_d
lea edx, [esp + 0x6e0]
call fcn.00405e30
add esp, 0x10
push 0x45dcbc
lea ebx, [esp + 0x14]
lea edx, [esp + 0x6d4]
mov ecx, esi
call fcn.00403e60
mov edi, eax
test edi, edi
je 0x4045f5
push 0x18
call fcn.00439054
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4045da
or eax, 0xffffffff
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], eax
call fcn.00406030
jmp 0x4045dc
xor ebx, ebx
mov eax, dword [esp + 0x10]
push edi
mov dword [0x46a6d4], ebx
call fcn.00406150
push edi
call fcn.00438a6d
add esp, 4
push esi
call fcn.00404750
mov ecx, dword [esi + 0x2a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45dccc
call eax
mov ecx, dword [esp + 0x10ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret