Function at 0x440460
Capabilities:
Accept command line arguments
Check os version
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x46c2f0]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [0x46ed10], eax
lea eax, [esp + 0x154]
push edi
push eax
mov dword [esp + 0x15c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4404b3
cmp dword [esp + 0x168], 2
mov byte [0x46ec01], 1
je 0x4404ba
mov byte [0x46ec01], 0
call fcn.004421c0
call fcn.004319f0
test al, al
jne 0x4404e1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00444258
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call fcn.004030f0
push 8
call fcn.00445286
add esp, 4
mov dword [esp + 0x9c], eax
xor ecx, ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 3
mov word [eax], cx
push 8
call fcn.00445286
add esp, 4
mov dword [esp + 0x40], eax
xor ecx, ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 3
mov word [eax], cx
push 8
call fcn.00445286
add esp, 4
mov dword [esp + 0x68], eax
xor ecx, ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 3
mov word [eax], cx
push 8
call fcn.00445286
add esp, 4
mov dword [esp + 0x58], eax
xor ecx, ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 3
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
xor edi, edi
cmp word [ebx], di
je 0x440598
inc edi
cmp word [ebx + edi*2], 0
jne 0x440590
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00445286
add esp, 4
mov dword [esp + 0x38], edi
lea ecx, [edi*2 + 2]
mov dword [esp + 0x3c], edi
mov esi, eax
mov dword [esp + 0x34], esi
push ecx
push ebx
push esi
call fcn.00446d70
add esp, 0xc
lea eax, [esp + 0x40]
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x34]
push eax
call fcn.00408aa0
push esi
call fcn.004453be
add esp, 4
push 8
call fcn.00445286
xor ecx, ecx
mov dword [esp + 0x84], eax
add esp, 4
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 3
mov word [eax], cx
lea ecx, [esp + 0x80]
call fcn.0040b460
lea ecx, [esp + 0x40]
call fcn.00408a20
push ecx
lea ecx, [esp + 0x44]
xor bl, bl
call fcn.00408fd0
test al, al
je 0x44065f
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x40]
add eax, 4
mov bl, 1
push eax
call fcn.004095a0
lea ecx, [esp + 0x40]
call fcn.00408a20
push 4
call fcn.00445286
add esp, 4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 3
mov byte [eax], 0
lea eax, [esp + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x88]
call fcn.00425440
test al, al
jne 0x4406b8
test bl, bl
jne 0x4406ae
push 0x10
push 0x4668a8
push str.Cant_load_config_info
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, 1
jmp 0x440e34
push 0x466ac8
lea ecx, [esp + 0xac]
call fcn.004094d0
push 8
call fcn.00445286
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x4c], eax
mov bh, 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 3
mov word [eax], cx
mov byte [esp + 0x64], bh
cmp dword [esp + 0x78], ecx
je 0x4408b7
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x74]
call fcn.0040a1b0
test al, al
jne 0x440746
test bl, bl
jne 0x440733
push 0x10
push 0x4668a8
push str.Config_failed
push 0
call esi
lea ecx, [esp + 0x10]
mov esi, 1
call fcn.0041fe90
jmp 0x440e19
push str.Title
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.0040a9a0
push str.BeginPrompt
lea edx, [esp + 0x14]
lea ecx, [esp + 0x38]
call fcn.0040a9a0
push 0x466afc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.0040a9a0
mov ecx, dword [esp + 0x28]
mov edx, 0x466b08
call fcn.00409020
xor edx, edx
movzx ecx, bh
test al, al
cmovne ecx, edx
mov edx, str.Directory
mov byte [esp + 0x64], cl
lea ecx, [esp + 0x10]
call fcn.0040a930
test eax, eax
js 0x4407c1
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4]
lea ecx, [esp + 0xa8]
add eax, 0xc
push eax
call fcn.00409620
cmp dword [esp + 0x38], 0
mov edi, dword [esp + 0x1c]
je 0x440813
test bl, bl
jne 0x440813
push 0x24
push edi
push dword [esp + 0x3c]
push 0
call esi
cmp eax, 6
je 0x440813
mov eax, dword [esp + 0x28]
xor esi, esi
push eax
call fcn.004453be
mov eax, dword [esp + 0x38]
add esp, 4
push eax
call fcn.004453be
add esp, 4
push edi
call fcn.004453be
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0041fe90
jmp 0x440e19
push str.RunProgram
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.0040a9a0
push eax
lea ecx, [esp + 0x50]
call fcn.00409620
push dword [esp + 0x1c]
call fcn.004453be
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push str.ExecuteFile
call fcn.0040a9a0
push eax
lea ecx, [esp + 0x6c]
call fcn.00409620
push dword [esp + 0x1c]
call fcn.004453be
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push str.ExecuteParameters
call fcn.0040a9a0
push eax
lea ecx, [esp + 0x5c]
call fcn.00409620
push dword [esp + 0x1c]
call fcn.004453be
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.004453be
mov eax, dword [esp + 0x38]
add esp, 4
push eax
call fcn.004453be
add esp, 4
push edi
call fcn.004453be
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0041fe90
push 8
mov byte [esp + 0x90], 0
call fcn.00445286
xor ecx, ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 3
mov word [eax], cx
lea ecx, [esp + 0x90]
call fcn.0040cb00
test al, al
jne 0x440916
test bl, bl
jne 0x44090c
push 0x10
push 0x4668a8
push str.Cannot_create_temp_folder_archive
push 0
call esi
mov esi, 1
jmp 0x440df4
push 0x18
call fcn.00445446
mov edi, eax
add esp, 4
test edi, edi
je 0x440956
mov dword [edi + 4], 0
mov dword [edi], 0x466c84
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov word [edi + 0x14], 0
mov eax, dword [edi]
push edi
call dword [eax + 4]
jmp 0x440958
xor edi, edi
mov ecx, edi
call fcn.0041fb90
test eax, eax
je 0x44097d
push 0x10
push 0x4668a8
push str.Cannot_load_codecs
push 0
call esi
mov esi, 1
jmp 0x440dea
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x38]
call fcn.00409540
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], 0
call fcn.00409440
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x13]
push eax
push dword [esp + 0x6c]
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x90]
call fcn.004249a0
test eax, eax
je 0x440a68
test bl, bl
jne 0x4409db
cmp eax, 1
je 0x4409f2
cmp byte [esp + 0xf], bl
jne 0x4409f2
cmp eax, 0x80004004
jne 0x440a06
mov ebx, dword [esp + 0x10]
push ebx
call fcn.004453be
add esp, 4
mov esi, 1
jmp 0x440dde
lea eax, [esp + 0x10]
mov edx, 8
push eax
call fcn.0040eb30
mov eax, 0x80004005
cmp dword [esp + 0x14], 0
jne 0x440a2e
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.00425060
push eax
lea ecx, [esp + 0x14]
call fcn.00409620
push dword [esp + 0x1c]
call fcn.004453be
add esp, 4
mov edx, 7
lea ecx, [esp + 0x1c]
call fcn.0040ea00
mov ebx, dword [esp + 0x10]
push 0x10
push dword [eax]
push ebx
push 0
call esi
push dword [esp + 0x1c]
call fcn.004453be
add esp, 4
push ebx
call fcn.004453be
add esp, 4
mov esi, 1
jmp 0x440dde
push dword [esp + 0x10]
call fcn.004453be
add esp, 4
lea ecx, [esp + 0x100]
call fcn.00425080
mov ecx, dword [esp + 0x34]
call fcn.0040c390
test al, al
jne 0x440a97
mov esi, 1
jmp 0x440dd2
cmp dword [esp + 0x6c], 0
je 0x440bdd
lea edx, [esp + 0x68]
lea ecx, [esp + 0x28]
call fcn.00425040
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0xb4], 0x3c
mov dword [esp + 0xb8], 0x140
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], eax
je 0x440b2e
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x440b20
cmp dword [esp + 0x60], eax
jne 0x440b08
lea ecx, [esp + 0x58]
call fcn.004092b0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, 0x20
mov word [ecx + eax*2], dx
inc eax
xor edx, edx
mov dword [esp + 0x5c], eax
mov word [ecx + eax*2], dx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
call fcn.004098b0
lea edx, [esp + 0x58]
lea ecx, [esp + 0x10]
call fcn.00425040
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
mov dword [esp + 0xcc], ecx
cmove eax, ecx
mov dword [esp + 0xd0], 1
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xf0], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [esp + 0xd4], 0x20
ja 0x440bb6
test bl, bl
jne 0x440b94
push 0x10
push 0x4668a8
push str.Cannot_open_file
push 0
call esi
push dword [esp + 0x10]
call fcn.004453be
add esp, 4
push dword [esp + 0x28]
call fcn.004453be
add esp, 4
mov esi, 1
jmp 0x440dd2
push dword [esp + 0x10]
mov esi, dword [esp + 0xf0]
call fcn.004453be
add esp, 4
push dword [esp + 0x28]
call fcn.004453be
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x440dbd
cmp dword [esp + 0x50], 0
jne 0x440c1d
push str.setup.exe
lea ecx, [esp + 0x50]
call fcn.004095a0
mov ecx, dword [esp + 0x4c]
call fcn.0040d7a0
test al, al
jne 0x440c1d
test bl, bl
jne 0x440c13
push 0x10
push 0x4668a8
push str.Cannot_find_setup.exe
push 0
call esi
mov esi, 1
jmp 0x440dd2
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00409540
lea ecx, [esp + 0x28]
call fcn.0040ddc0
push str.__T_
lea ecx, [esp + 0x14]
call fcn.00409470
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
call fcn.00409940
push dword [esp + 0x10]
call fcn.004453be
add esp, 4
push dword [esp + 0x28]
call fcn.004453be
add esp, 4
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x28]
push eax
call fcn.00409540
push 0x466c24
lea ecx, [esp + 0x14]
call fcn.00409470
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
call fcn.00409940
push dword [esp + 0x10]
call fcn.004453be
add esp, 4
cmp dword [esp + 0x44], 0
je 0x440cc6
lea ecx, [esp + 0x4c]
call fcn.00409830
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x50]
call fcn.004098b0
xor eax, eax
mov dword [esp + 0x110], 0x44
mov word [esp + 0x142], ax
lea edx, [esp + 0xa8]
mov dword [esp + 0x144], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x4c]
mov dword [esp + 0x114], 0
push eax
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x140], 0
call fcn.004093b0
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.00425040
push dword [esp + 0x10]
call fcn.004453be
add esp, 4
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x114]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x3c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x440d92
test bl, bl
jne 0x440d73
lea ecx, [esp + 0x28]
call fcn.00425880
push dword [esp + 0x1c]
call fcn.004453be
add esp, 4
push dword [esp + 0x28]
call fcn.004453be
add esp, 4
mov esi, 1
jmp 0x440dd2
push dword [esp + 0xf4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esp + 0x1c]
mov esi, dword [esp + 0xf4]
call fcn.004453be
add esp, 4
push dword [esp + 0x28]
call fcn.004453be
add esp, 4
test esi, esi
je 0x440dd0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
xor esi, esi
lea ecx, [esp + 0x100]
call fcn.004250f0
push dword [esp + 0x34]
call fcn.004453be
add esp, 4
test edi, edi
je 0x440df4
mov eax, dword [edi]
push edi
call dword [eax + 8]
cmp byte [esp + 0x8c], 0
je 0x440e0a
lea ecx, [esp + 0x90]
call fcn.0040bff0
push dword [esp + 0x90]
call fcn.004453be
add esp, 4
push dword [esp + 0x4c]
call fcn.004453be
add esp, 4
push dword [esp + 0xa8]
call fcn.004453be
add esp, 4
push dword [esp + 0x74]
call fcn.004453be
add esp, 4
push dword [esp + 0x80]
call fcn.004453be
mov ecx, dword [esp + 0x5c]
add esp, 4
push ecx
call fcn.004453be
add esp, 4
push dword [esp + 0x68]
call fcn.004453be
add esp, 4
push dword [esp + 0x40]
call fcn.004453be
add esp, 4
push dword [esp + 0x9c]
call fcn.004453be
mov ecx, dword [esp + 0x1f8]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00444258
mov esp, ebp
pop ebp
ret 0x10