Function at 0x401b10
Capabilities:
Create process on windows
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
push ebx
push esi
push edi
mov eax, 1
xor ebx, ebx
push 0x103
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x36f]
push ebx
push eax
mov byte [ebp - 0x370], bl
call fcn.00403390
push 0x103
lea ecx, [ebp - 0x26b]
push ebx
push ecx
mov byte [ebp - 0x26c], bl
call fcn.00403390
push 0x3e7
lea edx, [ebp - 0x85b]
push ebx
push edx
mov byte [ebp - 0x85c], bl
call fcn.00403390
push 0x3e7
lea eax, [ebp - 0xc43]
push ebx
push eax
mov byte [ebp - 0xc44], bl
call fcn.00403390
push 0x103
lea ecx, [ebp - 0x473]
push ebx
push ecx
mov byte [ebp - 0x474], bl
call fcn.00403390
push 0x40
lea edx, [ebp - 0x60]
push ebx
push edx
mov dword [ebp - 0x64], ebx
call fcn.00403390
mov edi, dword [ebp + 0x10]
add esp, 0x48
xor eax, eax
push str._nodel
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004014e0
push str._noexec
push edi
call fcn.004014e0
neg eax
sbb esi, esi
push str._nocleanup
push edi
neg esi
call fcn.004014e0
neg eax
sbb eax, eax
inc eax
push str._update
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp + 0x10], ebx
call fcn.004014e0
add esp, 0x20
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x401c79
push str._url
push edi
call fcn.004015b0
mov esi, eax
mov eax, dword [ebp - 0x1c]
add esp, 8
push esi
push eax
call fcn.00401550
add esp, 4
push eax
call fcn.00401810
add esp, 8
mov edi, eax
cmp esi, ebx
je 0x401c46
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x40de64]
mov dword [0x40de60], ebx
cmp eax, ebx
je 0x401c62
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x40de64], ebx
mov eax, edi
pop edi
pop esi
mov dword [0x40de68], ebx
mov dword [0x40de6c], ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x40a544
push edi
call fcn.004014e0
add esp, 8
test eax, eax
jne 0x402062
push str._ver
push edi
call fcn.004014e0
add esp, 8
test eax, eax
jne 0x402062
push str._version
push edi
call fcn.004014e0
add esp, 8
test eax, eax
jne 0x402062
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x370]
push edx
push ebx
call fcn.004012a0
add esp, 0xc
test eax, eax
jne 0x401cf6
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x370]
push ecx
push 1
call fcn.004012a0
add esp, 0xc
test eax, eax
je 0x401e1d
lea edx, [ebp - 0x370]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x5ba4
call fcn.00401030
add esp, 4
test eax, eax
jne 0x401d2d
push str.Failed_to_locate_application_resource.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
jmp 0x401e1d
mov eax, dword [0x40de6c]
mov ecx, dword [0x40de68]
push section..data
push ebx
push eax
push ecx
call fcn.00402c20
push str.params.txt
push 0x5ba1
call fcn.00401200
add esp, 0x18
cmp eax, ebx
je 0x401d70
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
jmp 0x401e1d
cmp esi, ebx
jne 0x401e06
mov edx, dword [section..data]
push edx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x85c]
push str.__s_s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x26c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x85c]
push edx
push ebx
mov dword [ebp - 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401dde
push str.Failed_to_start_client_application.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
jmp 0x401e1d
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor eax, eax
cmp dword [ebp - 0x18], 2
sete al
jmp 0x401e1a
push str._install
push edi
call fcn.004014e0
add esp, 8
neg eax
sbb eax, eax
neg eax
mov dword [ebp + 0x10], eax
call fcn.00401000
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x401e33
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401e44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0x10], ebx
je 0x401f7d
push 0x103
lea ecx, [ebp - 0x167]
push ebx
push ecx
mov byte [ebp - 0x168], bl
call fcn.00403390
lea edx, [ebp - 0x168]
push edx
call fcn.00401400
add esp, 0x10
test eax, eax
jne 0x401e89
push 0x10
push str.Failed_to_install.
push 0xffffffffffffffff
call fcn.00401170
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor esi, esi
mov eax, dword [esi + section..data]
cmp eax, ebx
je 0x401ed2
push eax
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x85c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + section..data]
add esp, 0x10
push 1
lea edx, [ebp - 0x85c]
push edx
push eax
call edi
add esi, 4
cmp esi, 0x24
jb 0x401e91
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.params.txt
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x85c]
push str._s_s
push edx
call esi
add esp, 0x10
push 1
lea eax, [ebp - 0x85c]
push eax
push str.params.txt
call edi
mov ecx, dword [section..data]
push ecx
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x85c]
push str.__s_s__install
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x168]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x85c]
push ecx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401f5b
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x401f6c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401f7d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x20], ebx
je 0x402056
push 0x103
lea edx, [ebp - 0x167]
push ebx
push edx
mov byte [ebp - 0x168], bl
call fcn.00403390
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._cleanup.bat
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x474]
push str._s_s
push ecx
call esi
lea edx, [ebp - 0x474]
push edx
push 0x5f8c
call fcn.00401200
add esp, 0x24
cmp eax, ebx
je 0x401fe6
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401170
add esp, 8
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x3e8
lea ecx, [ebp - 0x85c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x85c]
push edx
lea eax, [ebp - 0xc44]
push str.__s____s_
push eax
call esi
add esp, 0x10
push ebx
push ebx
lea ecx, [ebp - 0xc44]
push ecx
lea edx, [ebp - 0x474]
push edx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push str.SET_PRODUCT_MAJOR_d_n
call fcn.0040340a
push 6
push str.SET_PRODUCT_MINOR_d_n
call fcn.0040340a
push ebx
push str.SET_PRODUCT_FIX_d_n
call fcn.0040340a
push 0xaa
push str.SET_PRODUCT_BUILD_d_n
call fcn.0040340a
push 0xaa
push ebx
push 6
push 1
push str.SET_PRODUCT_VER_d._d._d._d_n
call fcn.0040340a
add esp, 0x34
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10