Function at 0x407e70
Capabilities:
Accept command line arguments
Check if file exists
Create directory
Create process on windows
Delete file
Get file attributes
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0x41a050]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
xor ecx, ecx
mov word [esp + 0xd4], cx
mov ecx, eax
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x407eb6
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xd4]
call fcn.00409220
mov ecx, esi
lea edx, [esp + 0x108]
call fcn.00401370
mov ebx, 8
cmp dword [esp + 0xe8], ebx
jb 0x407efe
mov edx, dword [esp + 0xd4]
push edx
call fcn.0040a81b
add esp, 4
xor eax, eax
mov word [esp + 0xd4], ax
push 2
mov eax, 0x417448
lea esi, [esp + 0xd4]
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], edi
call fcn.00409220
mov eax, esi
lea ecx, [esp + 0x108]
call fcn.004013f0
mov esi, eax
cmp dword [esp + 0xe8], ebx
jb 0x407f56
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0040a81b
add esp, 4
cmp esi, edi
je 0x407f8f
push 0x40
push str.DirectX_Installer
push str.DirectX_End_User_Runtimes__June_2010__Installer_n_n_____this_window_n_y___auto_install_n_u___uninstall__not_recommended_
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x120], ebx
jb 0x40885b
mov edx, dword [esp + 0x10c]
push edx
call fcn.0040a81b
add esp, 4
jmp 0x40885b
call fcn.00401510
test eax, eax
je 0x407fdc
push 0x10
push edi
push str.This_package_requires_Windows_XP_SP2_or_later
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x120], ebx
jb 0x407fc0
mov eax, dword [esp + 0x10c]
push eax
call fcn.0040a81b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0040a354
mov esp, ebp
pop ebp
ret 0x10
xor ecx, ecx
push 2
mov eax, 0x4175c4
lea esi, [esp + 0xd4]
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], edi
mov word [esp + 0xd8], cx
call fcn.00409220
mov eax, esi
lea ecx, [esp + 0x108]
call fcn.004013f0
mov esi, eax
cmp dword [esp + 0xe8], ebx
jb 0x408034
mov edx, dword [esp + 0xd4]
push edx
call fcn.0040a81b
add esp, 4
cmp esi, edi
je 0x4081f8
call fcn.00401670
test eax, eax
mov eax, str.Sysnative
jne 0x40804f
mov eax, str.System32
lea ecx, [esp + 0xc]
call fcn.004088f0
mov eax, str.WINDIR
lea ecx, [esp + 0x4c]
call fcn.004088f0
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x50]
lea ecx, [esp + 0x30]
call fcn.004015b0
lea ecx, [esp + 0xd4]
push ecx
mov ecx, eax
call fcn.00401850
add esp, 8
cmp dword [esp + 0x44], ebx
jb 0x40809d
mov edx, dword [esp + 0x30]
push edx
call fcn.0040a81b
add esp, 4
xor eax, eax
mov esi, 7
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], ax
cmp dword [esp + 0x64], ebx
jb 0x4080c4
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040a81b
add esp, 4
xor edx, edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov word [esp + 0x50], dx
cmp dword [esp + 0x24], ebx
jb 0x4080e6
mov eax, dword [esp + 0x10]
push eax
call fcn.0040a81b
add esp, 4
mov eax, str.rundll32.exe_advpack.dll_LaunchINFSection_DXeurt.inf_Uninstall
lea ecx, [esp + 0x2c]
call fcn.004088f0
mov eax, str.rundll32.exe
lea ecx, [esp + 0x4c]
call fcn.004088f0
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00401850
add esp, 8
push eax
lea eax, [esp + 0x34]
call fcn.00402400
add esp, 8
mov dword [esp + 0x48], eax
cmp dword [esp + 0x24], ebx
jb 0x408140
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a81b
add esp, 4
xor edx, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov word [esp + 0x10], dx
cmp dword [esp + 0x64], ebx
jb 0x408162
mov eax, dword [esp + 0x50]
push eax
call fcn.0040a81b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov word [esp + 0x50], cx
cmp dword [esp + 0x44], ebx
jb 0x408184
mov edx, dword [esp + 0x30]
push edx
call fcn.0040a81b
add esp, 4
xor eax, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], ax
cmp dword [esp + 0xe8], ebx
jb 0x4081ac
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0040a81b
add esp, 4
xor edx, edx
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], dx
cmp dword [esp + 0x120], ebx
jb 0x4081dd
mov eax, dword [esp + 0x10c]
push eax
call fcn.0040a81b
add esp, 4
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0040a354
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x4176a4
lea ecx, [esp + 0xc]
call fcn.004088f0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x108]
call fcn.004013f0
mov esi, eax
mov dword [esp + 0x48], esi
cmp dword [esp + 0x24], ebx
jb 0x40822f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a81b
add esp, 4
cmp esi, edi
jne 0x408273
push 4
push str.DirectX_Installer
push str.This_will_install_DirectX_End_User_Runtimes__June_2010_._nDo_you_wish_to_continue_
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x408273
lea esi, [esp + 0x108]
call fcn.00409fd0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0040a354
mov esp, ebp
pop ebp
ret 0x10
mov eax, str.DX_Installer
lea ecx, [esp + 0x2c]
call fcn.004088f0
lea edx, [esp + 0x2c]
push edx
push ecx
lea ecx, [esp + 0x14]
call fcn.00402230
lea ecx, [esp + 0xf4]
add esp, 4
push ecx
mov ecx, eax
call fcn.00401850
add esp, 8
cmp dword [esp + 0x24], ebx
jb 0x4082b8
mov edx, dword [esp + 0x10]
push edx
call fcn.0040a81b
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], ax
cmp dword [esp + 0x44], ebx
jb 0x4082de
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040a81b
add esp, 4
push 0xffffffffffffffff
xor edx, edx
push edi
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x148]
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], edi
mov word [esp + 0x14c], dx
call fcn.00408d10
mov esi, 1
jmp 0x408320
mov eax, dword [esp + 0xf0]
cmp dword [esp + 0x104], ebx
jae 0x408337
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4083bb
mov eax, esi
cdq
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.00401470
push eax
lea eax, [esp + 0x14c]
push eax
lea edi, [esp + 0x1c]
call fcn.00409ae0
add esp, 0x10
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xf4]
call fcn.00408d10
cmp dword [esp + 0x24], ebx
jb 0x408389
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a81b
add esp, 4
xor edx, edx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], dx
cmp dword [esp + 0x44], ebx
jb 0x4083b3
mov eax, dword [esp + 0x30]
push eax
call fcn.0040a81b
add esp, 4
inc esi
xor edi, edi
jmp 0x408320
mov eax, dword [esp + 0xf0]
cmp dword [esp + 0x104], ebx
jae 0x4083d2
lea eax, [esp + 0xf0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408406
xor ecx, ecx
push 0x20
mov eax, str.Couldnt_create_a_temp_directory
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
call fcn.00409220
call fcn.00401ec0
push 0xffffffffffffffff
push edi
lea eax, [esp + 0xf4]
mov ecx, 0x41acd4
call fcn.00408d10
xor edx, edx
push 0xa
mov eax, str.DXeurt.inf
lea esi, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], dx
call fcn.00409220
mov eax, esi
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xf4]
call fcn.00401850
push 0x66
call fcn.00402330
add esp, 0xc
test eax, eax
sete byte [esp + 0x2b]
cmp dword [esp + 0x24], ebx
jb 0x408475
mov edx, dword [esp + 0x10]
push edx
call fcn.0040a81b
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], ax
cmp dword [esp + 0x44], ebx
jb 0x40849b
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040a81b
add esp, 4
cmp byte [esp + 0x2b], 0
lea ecx, [esp + 0xc]
je 0x4084b9
mov eax, str.Couldnt_extract_data
call fcn.004088f0
lea esi, [esp + 0xc]
call fcn.00401ec0
mov eax, str.bsdtar.exe
call fcn.004088f0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0xf4]
call fcn.00401850
add esp, 8
cmp dword [esp + 0x24], ebx
jb 0x4084f2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040a81b
add esp, 4
push 0x65
lea eax, [esp + 0x128]
call fcn.00402330
add esp, 4
test eax, eax
jne 0x40851e
mov eax, str.Couldnt_extract_data
lea ecx, [esp + 0xc]
call fcn.004088f0
lea esi, [esp + 0xc]
call fcn.00401ec0
call fcn.00401670
test eax, eax
mov eax, str.LaunchINFSectionEx64.exe
jne 0x408531
mov eax, str.LaunchINFSectionEx86.exe
lea ecx, [esp + 0x15c]
call fcn.004088f0
lea edx, [esp + 0x15c]
push edx
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0xf4]
call fcn.00401850
call fcn.00401670
neg eax
sbb eax, eax
neg eax
add eax, 0x67
push eax
lea eax, [esp + 0x184]
call fcn.00402330
add esp, 0xc
lea ecx, [esp + 0xc]
test eax, eax
jne 0x408592
mov eax, str.Couldnt_extract_data
call fcn.004088f0
lea esi, [esp + 0xc]
call fcn.00401ec0
mov eax, str.dxrepack.txz
mov dword [esp + 0x7c], 0xc
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], 1
call fcn.004088f0
lea ecx, [esp + 0xc]
push ecx
push ecx
lea esi, [esp + 0x54]
call fcn.004021c0
lea edx, [esp + 0x34]
add esp, 4
push edx
mov ecx, eax
call fcn.00401850
add esp, 8
cmp dword [eax + 0x18], ebx
jb 0x4085e1
mov eax, dword [eax + 4]
jmp 0x4085e4
add eax, 4
push 0
push 1
push 3
lea ecx, [esp + 0x88]
push ecx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea esi, [esp + 0x2c]
mov edi, eax
call fcn.00409fd0
lea esi, [esp + 0x4c]
call fcn.00409fd0
lea esi, [esp + 0xc]
call fcn.00409fd0
cmp edi, 0xffffffff
jne 0x408639
mov eax, str.Couldnt_open_archive_file
lea ecx, [esp + 0xc]
call fcn.004088f0
lea esi, [esp + 0xc]
call fcn.00401ec0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.Extracting
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor eax, eax
push 0x40
push eax
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x94], 0x44
call fcn.0040d0d0
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
or dword [esp + 0xc0], 0x100
add esp, 0xc
push 0xfffffffffffffff5
mov dword [esp + 0xc4], edi
call esi
push 0xfffffffffffffff4
mov dword [esp + 0xc8], eax
call esi
push str.bsdtar.exe__x__v__J__f____m
mov dword [esp + 0xcc], eax
call fcn.0040a9dd
mov ecx, dword [esp + 0xf4]
add esp, 4
mov esi, eax
cmp dword [esp + 0x104], ebx
jae 0x4086d1
lea ecx, [esp + 0xf0]
mov eax, dword [esp + 0x128]
cmp dword [esp + 0x13c], ebx
jae 0x4086e8
lea eax, [esp + 0x128]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x8c]
push edx
push ecx
push 0
push 0
push 1
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408723
mov eax, str.Couldnt_create_a_process
lea ecx, [esp + 0xc]
call fcn.004088f0
lea esi, [esp + 0xc]
call fcn.00401ec0
push esi
call fcn.0040a4e2
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edi
call esi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [esp + 0x68]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x68]
push eax
call esi
mov ecx, dword [esp + 0x6c]
push ecx
call esi
cmp dword [esp + 0x78], 0
je 0x408784
mov eax, str.Error_during_extraction
lea ecx, [esp + 0xc]
call fcn.004088f0
lea esi, [esp + 0xc]
call fcn.00401ec0
mov eax, dword [esp + 0x128]
cmp dword [esp + 0x13c], ebx
jae 0x40879b
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0xec]
call fcn.00402660
mov edx, edi
push edx
lea eax, [esp + 0x160]
push eax
mov ebx, str._.DXeurt.inf_Passive__8
lea esi, [esp + 0x14]
call fcn.00409b90
lea ecx, [esp + 0x180]
add esp, 4
push ecx
call fcn.00402400
add esp, 8
test eax, eax
sete bl
call fcn.00409fd0
test bl, bl
je 0x408803
cmp dword [esp + 0x48], 0
jne 0x408803
push 0
push str.DirectX_Installer
push str.DirectX_End_User_Runtimes__June_2010__has_been_installed_successfully.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea edx, [esp + 0xec]
push edx
call fcn.00401d10
add esp, 4
lea esi, [esp + 0x178]
call fcn.00409fd0
lea esi, [esp + 0x15c]
call fcn.00409fd0
lea esi, [esp + 0x124]
call fcn.00409fd0
lea esi, [esp + 0x140]
call fcn.00409fd0
lea esi, [esp + 0xec]
call fcn.00409fd0
lea esi, [esp + 0x108]
call fcn.00409fd0
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a354
mov esp, ebp
pop ebp
ret 0x10