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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 8]
push 0xf
pop edi
xor esi, esi
push edi
lea ecx, [ebp - 0x54]
mov dword [0x421024], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.00401b85
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00401b85
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040182a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403368
push dword [ebp - 0x24]
call fcn.00403330
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
push edi
mov dword [ebp - 0x34], esi
call fcn.00401b85
lea eax, [ebp - 0x3c]
push eax
push dword [0x421024]
call fcn.00404007
pop ecx
mov dword [ebp - 0x48], esi
pop ecx
mov dword [ebp - 0x44], esi
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x40], esi
call fcn.00401e58
lea eax, [ebp - 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x3c]
call fcn.004016aa
add esp, 0x10
test al, al
jne 0x4010e9
push str.Cant_load_config_info
push esi
call fcn.0041181d
pop ecx
pop ecx
push 1
pop esi
jmp 0x40161e
lea ecx, [ebp - 0x18]
call fcn.00401d78
lea ecx, [ebp - 0x18]
call fcn.00401d3d
and byte [ebp + 0xb], 0
push 0x41e1ac
lea ecx, [ebp - 0x24]
call fcn.0040182a
mov ebx, eax
lea eax, [ebp - 0xc]
push 2
push eax
lea ecx, [ebp - 0x18]
call fcn.004019e4
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call fcn.004035ec
push dword [ebp - 0xc]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00403330
push dword [ebp - 0x24]
call fcn.00403330
add esp, 0x10
test bl, bl
je 0x401178
lea eax, [ebp - 0xc]
push 2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp + 0xb], 1
call fcn.004019c3
push eax
lea ecx, [ebp - 0x18]
call fcn.00401924
push dword [ebp - 0xc]
call fcn.00403330
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401d78
lea ecx, [ebp - 0x18]
call fcn.00401d3d
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call fcn.00401b85
cmp dword [ebp - 0x44], esi
je 0x401306
lea ecx, [ebp - 0x68]
call fcn.00401b6a
lea eax, [ebp - 0x68]
mov edi, 0x4192dc
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x68], edi
call fcn.00403826
pop ecx
test al, al
pop ecx
jne 0x4011cb
push str.Config_failed
push esi
call fcn.0041181d
pop ecx
pop ecx
push 1
pop esi
jmp 0x40125a
push str.Title
lea ecx, [ebp - 0xc]
call fcn.0040182a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403b61
push dword [ebp - 0xc]
call fcn.00403330
add esp, 0x10
lea ecx, [ebp - 0xc]
push str.BeginPrompt
call fcn.0040182a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00403b61
push dword [ebp - 0xc]
call fcn.00403330
add esp, 0x10
cmp dword [ebp - 0x8c], esi
je 0x40129d
cmp byte [ebp + 0xb], 0
jne 0x40129d
push 0x24
push dword [ebp - 0x24]
push dword [ebp - 0x90]
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40129d
push dword [ebp - 0x90]
call fcn.00403330
push dword [ebp - 0x24]
call fcn.00403330
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.00403d19
lea ecx, [ebp - 0x68]
call fcn.00403ced
push dword [ebp - 0x30]
call fcn.00403330
push dword [ebp - 0x48]
call fcn.00403330
push dword [ebp - 0x3c]
call fcn.00403330
push dword [ebp - 0x18]
call fcn.00403330
push dword [ebp - 0x54]
call fcn.00403330
add esp, 0x14
jmp 0x401641
push str.RunProgram
lea ecx, [ebp - 0xc]
call fcn.0040182a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00403b61
add esp, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.00401924
push dword [ebp - 0xac]
call fcn.00403330
push dword [ebp - 0xc]
call fcn.00403330
push dword [ebp - 0x90]
call fcn.00403330
push dword [ebp - 0x24]
call fcn.00403330
add esp, 0x10
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.00403d19
lea ecx, [ebp - 0x68]
call fcn.00403ced
and byte [ebp - 0x78], 0
lea ecx, [ebp - 0x74]
call fcn.00401a79
push dword [0x41e054]
lea ecx, [ebp - 0x78]
call fcn.00404d36
test al, al
jne 0x401339
push str.Can_not_create_temp_folder_archive
push esi
call fcn.0041181d
pop ecx
pop ecx
push 1
pop esi
jmp 0x401604
lea eax, [ebp - 0x74]
mov dword [ebp - 0xb0], esi
push eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0xb4], 0x4192d0
call fcn.0040164a
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00402a48
add esp, 0x14
cmp eax, esi
je 0x4013a1
cmp eax, 1
jne 0x401389
push str.Can_not_open_archive
push esi
call fcn.0041181d
jmp 0x401397
cmp eax, 0x80004004
je 0x401399
push eax
push esi
call fcn.00411833
pop ecx
pop ecx
push 1
pop esi
jmp 0x4015f8
lea ecx, [ebp - 0xa0]
call fcn.00401a79
lea eax, [ebp - 0xa0]
push eax
call fcn.00404aa8
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
pop ecx
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x4013d0
push 1
pop esi
jmp 0x4015e0
cmp dword [ebp - 0x2c], esi
jne 0x401422
push str.setup.exe
lea ecx, [ebp - 0x30]
call fcn.004018c5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00401667
push dword [eax]
call fcn.004052b3
push dword [ebp - 0xac]
mov bl, al
neg bl
sbb bl, bl
inc bl
call fcn.00403330
add esp, 0x10
test bl, bl
je 0x401422
push str.Can_not_find_setup.exe
push esi
call fcn.0041181d
pop ecx
pop ecx
jmp 0x4013c8
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x24]
push eax
call fcn.0040188b
lea eax, [ebp - 0x24]
push eax
call fcn.0040568d
lea ecx, [ebp - 0xc]
mov dword [esp], str.__T_
call fcn.0040182a
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a00
push dword [ebp - 0xc]
call fcn.00403330
push dword [ebp - 0x24]
call fcn.00403330
pop ecx
pop ecx
push 0x41e088
lea ecx, [ebp - 0xc]
call fcn.0040182a
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401a00
push dword [ebp - 0xc]
call fcn.00403330
cmp dword [ebp - 0x14], esi
pop ecx
je 0x4014af
push 0x20
lea ecx, [ebp - 0x30]
call fcn.00401962
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040198d
lea eax, [ebp - 0x30]
mov dword [ebp - 0xf8], 0x44
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xcc], esi
mov word [ebp - 0xc6], si
mov dword [ebp - 0xc4], esi
call fcn.00401667
pop ecx
pop ecx
push eax
push 0x41e084
lea ecx, [ebp - 0xac]
call fcn.00401a91
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040204e
push dword [ebp - 0xac]
call fcn.00403330
push dword [ebp - 0xc]
call fcn.00403330
add esp, 0x14
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xf8]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4015b3
push esi
call fcn.004118b8
push dword [ebp - 0x24]
call fcn.00403330
pop ecx
pop ecx
push dword [ebp - 0xa0]
call edi
push dword [ebp - 0xa0]
call fcn.00403330
push dword [ebp - 0x84]
call fcn.00403330
pop ecx
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401684
push dword [ebp - 0x74]
call fcn.00403330
push dword [ebp - 0x30]
call fcn.00403330
push dword [ebp - 0x48]
call fcn.00403330
push dword [ebp - 0x3c]
call fcn.00403330
push dword [ebp - 0x18]
call fcn.00403330
push dword [ebp - 0x54]
call fcn.00403330
add esp, 0x18
push 1
pop eax
jmp 0x401643
push dword [ebp - 0x90]
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x94]
call fcn.00403330
cmp edi, esi
pop ecx
je 0x4015e0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call ebx
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push dword [ebp - 0xa0]
call fcn.00403330
pop ecx
push dword [ebp - 0x84]
call fcn.00403330
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401684
push dword [ebp - 0x74]
call fcn.00403330
push dword [ebp - 0x30]
call fcn.00403330
pop ecx
pop ecx
push dword [ebp - 0x48]
call fcn.00403330
push dword [ebp - 0x3c]
call fcn.00403330
push dword [ebp - 0x18]
call fcn.00403330
push dword [ebp - 0x54]
call fcn.00403330
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10