Function at 0x403f29
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push 0x154
mov eax, 0x431dff
call fcn.004153a5
xor ebx, ebx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
call fcn.0040dfc0
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.0040ff33
cmp dword [eax + 0x14], 8
jb 0x403f67
mov eax, dword [eax]
push eax
push 0x43fed8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x114]
mov esi, eax
call fcn.004046b2
test esi, esi
je 0x4042a8
lea ecx, [ebp - 0x38]
call fcn.00403cbd
lea eax, [ebp - 0x38]
mov byte [ebp - 0xf8], 1
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xec], bl
lea ecx, [ebp - 0x130]
push dword [ebp - 0xec]
mov byte [ebp - 4], 3
push 9
push str.Setup.exe
call fcn.00405ddd
add esp, 0xc
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.00402eca
pop ecx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 6
call fcn.004046b2
mov byte [ebp - 0xec], bl
lea ecx, [ebp - 0x114]
push dword [ebp - 0xec]
push 7
push str.scf.dat
call fcn.00405ddd
add esp, 0xc
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x68]
call fcn.00402eca
pop ecx
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 9
call fcn.004046b2
push 0x64
lea edx, [ebp - 0x50]
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
call fcn.00403966
pop ecx
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x68]
push 0x65
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00403966
pop ecx
push 6
pop ecx
push 7
pop edx
xor eax, eax
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
push 6
mov dword [ebp - 0xe4], ebx
lea edi, [ebp - 0xb4]
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], edx
mov word [ebp - 0xe4], ax
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], edx
mov word [ebp - 0xcc], ax
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], edx
mov word [ebp - 0xb4], ax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], bl
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], vtable.StaticRaii_void___void___cdecl_utilities::Raii::CloseHandle_void____unsigned_int__0_.0
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], 0x12c
mov dword [ebp - 0x6c], 0xf0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
jb 0x40410b
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x40]
lea ecx, [ebp - 0xe4]
push eax
call fcn.00404724
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
jb 0x404126
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x28]
lea ecx, [ebp - 0xb4]
push eax
call fcn.00404724
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004046fd
sub esp, 0x28
mov dword [ebp - 0x6c], 0x7fffffff
mov eax, esp
mov dword [ebp - 0x70], 0x7ffffffe
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xe4]
mov dword [eax + 0x24], ebx
call fcn.0040f5b4
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0xe4]
add esp, 0x28
call fcn.00404334
cmp dword [ebp - 0x18], 0xffffffff
je 0x404192
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4041a1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x68]
call fcn.004046b2
lea ecx, [ebp - 0x50]
call fcn.004046b2
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0xd
call fcn.004042c8
lea ecx, [ebp - 0x38]
call fcn.004046b2
mov eax, esi
jmp 0x4042a0
call fcn.004152f7
ret 0x10
push 0x43ff44
lea ecx, [ebp - 0x114]
call fcn.00404628
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.004038a9
int3