Function at 0x4011f0
Capabilities:
Create directory
Create process on windows
Create process suspended
Get common file path
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x498
mov ecx, dword [0x40a9fc]
push esi
push edi
lea eax, [esp + 0x4c]
push 0x104
xor esi, esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], 0x409190
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push 0x80
push 3
push esi
push 1
lea edx, [esp + 0x60]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012cb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jg 0x401262
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4012cb
push ebx
push ebp
push esi
call fcn.00404596
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4012f2
mov eax, dword [0x409030]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401296
push eax
call fcn.00404567
add esp, 4
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
je 0x4012a9
push eax
call fcn.00404567
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4012ba
push eax
call fcn.00404567
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4012cb
push eax
call fcn.00404567
add esp, 4
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x4012eb
push 0x10
push 0x409188
push eax
mov eax, dword [esp + 0x4a8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x498
ret
lea ecx, [esp + 0x38]
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401313
cmp dword [esp + 0x38], esi
jne 0x401313
mov ebp, 1
jmp 0x401315
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x401285
cmp esi, 8
jb 0x401285
mov edx, dword [esp + 0x28]
cmp dword [esi + edx - 4], 0x57545344
jne 0x401285
sub esi, 8
mov eax, edx
mov ebx, dword [esi + eax]
test ebx, ebx
jle 0x401285
cmp ebx, esi
jge 0x401285
sub esi, ebx
mov ecx, edx
add esi, ecx
mov dword [esp + 0x10], 0x409170
cmp dword [esi], 0x57545344
jne 0x401285
mov al, byte [esi + 4]
lea ebp, [esi + 4]
test al, al
mov dword [esp + 0x2c], ebp
je 0x401285
mov ecx, dword [esp + 0x4ac]
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
cmp eax, 1
mov dword [esp + 0x20], eax
jl 0x401285
mov eax, dword [ebp + 4]
add ebp, 4
add ebp, 4
test eax, eax
jle 0x401285
mov eax, dword [ebp]
add ebp, 4
test eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ebp
jle 0x401285
sub esi, ebp
lea edx, [esp + 0x54]
add ebx, esi
push 0x2e
push edx
mov dword [esp + 0x3c], ebx
call fcn.00404540
add esp, 8
test eax, eax
je 0x4013f9
mov byte [eax + 1], 0
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
jle 0x401666
test ebx, ebx
je 0x4015a6
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push eax
lea eax, [ebx + 1]
push eax
push ecx
lea edx, [esp + 0x1a8]
push 0x40912c
push edx
call ebp
mov ecx, dword [esp + 0x4c0]
add esp, 0x14
lea eax, [esp + 0x19c]
push 0x41
push 0x409124
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x401575
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push str.E_.2d
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3ac]
push ecx
call ebp
lea edi, [esp + 0x3b0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x19c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x80
mov ecx, edx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0x1b0]
push 0x80000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401421
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
jle 0x401561
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401524
mov ecx, eax
push ecx
call fcn.00404567
add esp, 4
push edi
call fcn.00404596
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x40157f
lea edx, [esp + 0x38]
push 0
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401559
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 1
cmp eax, edi
je 0x401561
mov dword [esp + 0x24], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x401592
jmp 0x401421
mov dword [esp + 0x10], 0
jmp 0x40159a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x409030]
mov dword [esp + 0x10], ecx
jmp 0x40159a
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40165c
mov eax, dword [esp + 0x30]
cmp dword [eax], 0x45535047
jne 0x40165c
mov esi, dword [eax + 4]
add eax, 4
add eax, 4
mov ebp, dword [eax]
add eax, 4
test ebp, ebp
mov dword [esp + 0x30], eax
jle 0x401654
mov edx, dword [esp + 0x34]
lea ecx, [ebp + 0xc]
cmp ecx, edx
jg 0x401654
push ebp
push eax
call fcn.004011b0
add esp, 8
cmp eax, esi
jne 0x401654
test ebx, ebx
jne 0x4015f8
push ebp
call fcn.00404596
add esp, 4
jmp 0x40160d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ebp]
push eax
push ecx
call fcn.00404420
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x401649
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, ebp
and ecx, 3
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
rep movsb byte es:[edi], byte [esi]
jl 0x40140b
jmp 0x401666
mov eax, dword [0x409030]
mov dword [esp + 0x10], eax
jmp 0x40165c
mov dword [esp + 0x10], 0x409170
cmp ebx, dword [esp + 0x20]
jl 0x401285
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00404567
mov eax, dword [esp + 0x18]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40168a
push eax
call fcn.00404567
add esp, 4
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x40]
push edx
call fcn.00404596
add esp, 4
cmp eax, edi
mov dword [esp + 0x3c], eax
jne 0x4016ad
mov eax, dword [0x409030]
mov dword [esp + 0x10], eax
jmp 0x401296
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push esi
push edx
push eax
call fcn.00404350
add esp, 0x10
test eax, eax
je 0x4016d6
mov dword [esp + 0x10], 0x409108
jmp 0x401296
push esi
call fcn.00404567
add esp, 4
lea eax, [esp + 0x54]
mov dword [esp + 0x1c], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401704
mov dword [esp + 0x10], 0x4090ec
jmp 0x401296
mov edi, str.esetup
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [ebp]
add ebp, 4
test ebx, ebx
jle 0x401817
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x19c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.uninstall.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x1b0]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017da
mov dword [esp + 0x10], 0x4090c4
jmp 0x401296
lea ecx, [esp + 0x2c]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017fb
cmp dword [esp + 0x2c], ebx
jne 0x4017fb
mov edi, 1
jmp 0x4017fd
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x401815
mov dword [esp + 0x10], 0x4090b4
jmp 0x401296
add ebp, ebx
mov eax, dword [ebp]
xor ebx, ebx
add ebp, 4
mov dword [esp + 0x2c], eax
lea ecx, [eax + 1]
mov dword [esp + 0x20], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ecx
jle 0x4019de
jmp 0x401840
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jge 0x4018fe
mov eax, dword [ebp + 4]
add ebp, 4
mov ecx, eax
add ebp, 4
mov edx, ecx
mov esi, ebp
lea edi, [esp + 0x3a4]
add ebp, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.setup.exe
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x3a8], 0
lea eax, [esp + 0x3a8]
push eax
call fcn.00407160
add esp, 8
test eax, eax
jne 0x401895
mov dword [esp + 0x20], 1
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x19c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4090a4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x19c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x3a4]
jmp 0x401932
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x19c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._setup.dat
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x1b0]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019c8
mov edi, dword [ebp]
lea ecx, [esp + 0x24]
push 0
add ebp, 4
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019a2
cmp dword [esp + 0x24], edi
jne 0x4019a2
mov ebx, 1
jmp 0x4019a4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, edi
test ebx, ebx
je 0x4019d2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x40183c
jmp 0x4019de
mov dword [esp + 0x10], 0x4090c4
jmp 0x4019de
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], 0x4090b4
cmp ebx, dword [esp + 0x34]
jl 0x401296
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4019fd
mov dword [esp + 0x10], 0x409088
jmp 0x401296
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x158]
lea edx, [esp + 0x19c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x158], 0x44
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x19c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._setup.exe_setup.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x44]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x15c]
lea edx, [esp + 0x58]
push ecx
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1b8]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401aac
mov dword [esp + 0x10], 0x40905c
jmp 0x401296
mov ecx, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
mov dword [esp + 0x10], 0
jmp 0x401296