Function at 0x401014
Capabilities:
Accept command line arguments
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x41a70c], eax
call fcn.00401a51
push 3
xor ebx, ebx
pop edi
lea ecx, [ebp - 0x98]
push edi
mov byte [0x41a710], al
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.0040215b
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040215b
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040215b
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040215b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401c74
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403911
push dword [ebp - 0x40]
call fcn.00403a9e
pop ecx
mov dword [ebp - 0x64], ebx
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.0040215b
mov ecx, dword [0x41a70c]
lea edx, [ebp - 0x64]
call fcn.004045ef
lea ecx, [ebp - 0x1c]
call fcn.00402349
lea ecx, [ebp - 0x1c]
call fcn.0040230e
push 0x41a254
lea ecx, [ebp - 0x40]
mov byte [ebp + 0xb], bl
call fcn.00401c74
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401e2e
mov edx, dword [esi]
mov ecx, dword [eax]
call fcn.00403b52
push dword [ebp - 0x10]
mov esi, eax
call fcn.00403a9e
push dword [ebp - 0x40]
call fcn.00403a9e
pop ecx
cmp esi, ebx
pop ecx
jne 0x40115a
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 1
call fcn.00401e0d
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401d6e
push dword [ebp - 0x10]
call fcn.00403a9e
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00402349
lea ecx, [ebp - 0x1c]
call fcn.0040230e
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.0040242a
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x58]
push eax
push str.___SezioneEnd__
mov edx, str.___Sezione__UTF_8_
call fcn.00401ae7
test al, al
jne 0x40119f
cmp byte [ebp + 0xb], bl
jne 0x401197
mov edx, str.Cant_load_config_info
xor ecx, ecx
call fcn.0041109d
push 1
pop ebx
jmp 0x4019c4
push 0x41a21c
lea ecx, [ebp - 0xd0]
call fcn.00401c74
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040215b
cmp dword [ebp - 0x54], ebx
mov byte [ebp - 0xd4], 1
je 0x4014b1
lea ecx, [ebp - 0xac]
call fcn.00402140
mov edi, 0x4162f4
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xac], edi
call fcn.00403d66
test al, al
jne 0x401212
cmp byte [ebp + 0xb], bl
jne 0x40120a
mov edx, str.Config_failed
xor ecx, ecx
call fcn.0041109d
push 1
pop ebx
jmp 0x401333
push str.Title
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040407f
push dword [ebp - 0x10]
call fcn.00403a9e
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.00401c74
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040407f
push dword [ebp - 0x10]
call fcn.00403a9e
lea ecx, [ebp - 0x10]
mov dword [esp], str.Progress
call fcn.00401c74
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040407f
push dword [ebp - 0x10]
call fcn.00403a9e
pop ecx
mov edx, 0x41a1c0
mov ecx, dword [ebp - 0xe0]
call fcn.00403b52
test eax, eax
jne 0x4012a9
mov byte [ebp - 0xd4], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xac]
call fcn.0040404d
push dword [ebp - 0x10]
mov esi, eax
call fcn.00403a9e
cmp esi, ebx
pop ecx
jl 0x4012eb
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0xd0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00401d6e
cmp dword [ebp - 0x24], ebx
je 0x40139d
cmp byte [ebp + 0xb], bl
jne 0x40139d
push 0x24
push dword [ebp - 0x40]
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40139d
push dword [ebp - 0xe0]
call fcn.00403a9e
push dword [ebp - 0x28]
call fcn.00403a9e
push dword [ebp - 0x40]
call fcn.00403a9e
add esp, 0xc
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], edi
call fcn.004042e2
lea ecx, [ebp - 0xac]
call fcn.004042b9
push dword [ebp - 0x34]
call fcn.00403a9e
push dword [ebp - 0xd0]
call fcn.00403a9e
push dword [ebp - 0x58]
call fcn.00403a9e
push dword [ebp - 0x64]
call fcn.00403a9e
push dword [ebp - 0x70]
call fcn.00403a9e
push dword [ebp - 0x4c]
call fcn.00403a9e
push dword [ebp - 0x1c]
call fcn.00403a9e
push dword [ebp - 0x98]
call fcn.00403a9e
add esp, 0x20
jmp 0x4019fa
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.0040407f
push eax
lea ecx, [ebp - 0x34]
call fcn.00401d6e
push dword [ebp - 0xec]
call fcn.00403a9e
push dword [ebp - 0x10]
call fcn.00403a9e
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.0040407f
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401d6e
push dword [ebp - 0xec]
call fcn.00403a9e
push dword [ebp - 0x10]
call fcn.00403a9e
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040407f
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.00402621
push eax
lea ecx, [ebp - 0x70]
call fcn.00401d6e
push dword [ebp - 0xec]
call fcn.00403a9e
push dword [ebp - 0xb8]
call fcn.00403a9e
push dword [ebp - 0x10]
call fcn.00403a9e
push dword [ebp - 0xe0]
call fcn.00403a9e
push dword [ebp - 0x28]
call fcn.00403a9e
push dword [ebp - 0x40]
call fcn.00403a9e
add esp, 0x18
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], edi
call fcn.004042e2
lea ecx, [ebp - 0xac]
call fcn.004042b9
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x8c], bl
call fcn.00401ec1
push dword [0x41a040]
lea ecx, [ebp - 0x8c]
call fcn.004052a5
test al, al
jne 0x4014f0
cmp byte [ebp + 0xb], bl
jne 0x4014e8
mov edx, str.Can_not_create_temp_folder_archive
xor ecx, ecx
call fcn.0041109d
push 1
pop ebx
jmp 0x401998
push 0x1c
call fcn.00403a77
mov esi, eax
pop ecx
cmp esi, ebx
je 0x401513
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401f01
mov dword [esi], 0x4162e8
mov edi, esi
jmp 0x401515
xor edi, edi
cmp edi, ebx
je 0x40151f
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, edi
call fcn.004080d6
test eax, eax
je 0x40153b
mov edx, str.Can_not_load_codecs
xor ecx, ecx
call fcn.0041109d
jmp 0x40163e
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xc4]
call fcn.00401a03
push 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 1], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040215b
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x64]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xc4]
push dword [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00402f02
cmp eax, ebx
je 0x4015f9
cmp byte [ebp + 0xb], bl
jne 0x4015f1
cmp eax, 1
je 0x401594
cmp byte [ebp - 1], bl
je 0x4015bc
push 8
lea ecx, [ebp - 0xb8]
pop edx
call fcn.0040603c
push eax
lea ecx, [ebp - 0x28]
call fcn.00401d6e
push dword [ebp - 0xb8]
call fcn.00403a9e
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x4015f1
cmp dword [ebp - 0x24], ebx
je 0x4015f1
push 7
lea ecx, [ebp - 0xb8]
pop edx
call fcn.0040603c
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xb8]
call fcn.00403a9e
pop ecx
push dword [ebp - 0x28]
jmp 0x4018b7
push dword [ebp - 0x28]
call fcn.00403a9e
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00401ec1
lea ecx, [ebp - 0x7c]
call fcn.00405040
push dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x401651
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call fcn.00403a9e
push dword [ebp - 0xc4]
call fcn.00403a9e
pop ecx
pop ecx
cmp edi, ebx
je 0x4014e8
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x4014e8
cmp dword [ebp - 0x48], ebx
je 0x40172c
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.00401a18
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x12c], 0x3c
mov dword [ebp - 0x128], 0x140
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], eax
je 0x40169f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401dd7
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00401a18
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x114], ebx
neg eax
sbb eax, eax
mov dword [ebp - 0x110], 1
and eax, dword [ebp - 0x28]
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x10c], 0x20
ja 0x40170d
cmp byte [ebp + 0xb], bl
jne 0x4016f7
mov edx, str.Can_not_open_file
xor ecx, ecx
call fcn.0041109d
push dword [ebp - 0x28]
call fcn.00403a9e
push dword [ebp - 0x40]
call fcn.00403a9e
pop ecx
jmp 0x4018ae
mov eax, dword [ebp - 0xf4]
push dword [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00403a9e
push dword [ebp - 0x40]
call fcn.00403a9e
pop ecx
jmp 0x40195a
cmp dword [ebp - 0x30], ebx
jne 0x401787
push str.setup.exe
lea ecx, [ebp - 0x34]
call fcn.00401d0f
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xb8]
call fcn.00401a18
mov ecx, dword [eax]
call fcn.00405889
push dword [ebp - 0xb8]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call fcn.00403a9e
cmp byte [ebp - 1], bl
pop ecx
je 0x401787
cmp byte [ebp + 0xb], bl
jne 0x4018af
mov edx, str.Can_not_find_setup.exe
xor ecx, ecx
call fcn.0041109d
jmp 0x4018af
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401cd5
lea ecx, [ebp - 0x40]
call fcn.00405d18
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e4a
push dword [ebp - 0x10]
call fcn.00403a9e
push dword [ebp - 0x40]
call fcn.00403a9e
pop ecx
pop ecx
push 0x41a06c
lea ecx, [ebp - 0x10]
call fcn.00401c74
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e4a
push dword [ebp - 0x10]
call fcn.00403a9e
cmp dword [ebp - 0x18], ebx
pop ecx
je 0x401811
push 0x20
lea ecx, [ebp - 0x34]
call fcn.00401dac
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.00401dd7
lea eax, [ebp - 0x34]
lea edx, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x134], 0x44
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x108], ebx
mov word [ebp - 0x102], bx
mov dword [ebp - 0x100], ebx
call fcn.00402621
mov edx, eax
lea ecx, [ebp - 0xe0]
call fcn.00401a18
push dword [ebp - 0xb8]
call fcn.00403a9e
pop ecx
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xe0]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40193a
cmp byte [ebp + 0xb], bl
jne 0x4018a3
xor ecx, ecx
call fcn.00411131
push dword [ebp - 0xe0]
call fcn.00403a9e
pop ecx
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call fcn.00403a9e
push dword [ebp - 0xc4]
call fcn.00403a9e
pop ecx
cmp edi, ebx
pop ecx
je 0x4018d3
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.00401a2d
push dword [ebp - 0x88]
call fcn.00403a9e
push dword [ebp - 0x34]
call fcn.00403a9e
push dword [ebp - 0xd0]
call fcn.00403a9e
push dword [ebp - 0x58]
call fcn.00403a9e
push dword [ebp - 0x64]
call fcn.00403a9e
push dword [ebp - 0x70]
call fcn.00403a9e
push dword [ebp - 0x4c]
call fcn.00403a9e
push dword [ebp - 0x1c]
call fcn.00403a9e
push dword [ebp - 0x98]
call fcn.00403a9e
add esp, 0x24
push 1
pop eax
jmp 0x4019fc
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xf0]
push dword [ebp - 0xe0]
mov dword [ebp + 8], eax
call fcn.00403a9e
cmp dword [ebp + 8], ebx
pop ecx
je 0x401974
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call fcn.00403a9e
push dword [ebp - 0xc4]
call fcn.00403a9e
pop ecx
cmp edi, ebx
pop ecx
je 0x401998
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.00401a2d
push dword [ebp - 0x88]
call fcn.00403a9e
push dword [ebp - 0x34]
call fcn.00403a9e
push dword [ebp - 0xd0]
call fcn.00403a9e
add esp, 0xc
push dword [ebp - 0x58]
call fcn.00403a9e
push dword [ebp - 0x64]
call fcn.00403a9e
push dword [ebp - 0x70]
call fcn.00403a9e
push dword [ebp - 0x4c]
call fcn.00403a9e
push dword [ebp - 0x1c]
call fcn.00403a9e
push dword [ebp - 0x98]
call fcn.00403a9e
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10