Function at 0x401310
Capabilities:
Accept command line arguments
Create directory
Delete file
Get common file path
Read file on windows

Disassembly:
sub esp, 0x638
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x634], eax
mov eax, dword [esp + 0x63c]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [eax]
push 0x402198
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push eax
call ebp
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_ftell]
mov edx, dword [esp + 0x2c]
push 1
push 0xfffffffffffffff4
push edx
mov esi, eax
call ebp
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push eax
push 1
lea ecx, [esp + 0x50]
push 4
push ecx
call edi
mov edx, dword [esp + 0x48]
push edx
push 1
lea eax, [esp + 0x58]
push 4
push eax
call edi
mov ecx, dword [esp + 0x58]
add esp, 0x48
push ecx
push 1
lea edx, [esp + 0x24]
push 4
push edx
call edi
add esp, 0x10
cmp dword [esp + 0x20], 0x499602d2
jne 0x4015c2
cmp dword [esp + 0x18], ebx
je 0x4015c2
mov eax, dword [esp + 0x1c]
cmp eax, esi
jae 0x4015c2
push ebx
push eax
mov eax, dword [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x28]
push 4
push edx
mov dword [esp + 0x30], ebx
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x15c]
push 1
push edx
call edi
mov eax, dword [esp + 0x40]
add esp, 0x2c
lea ecx, [esp + 0x34]
push ecx
push 0x104
mov byte [esp + eax + 0x140], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x34]
push edx
push ebx
push str._temp
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
push 0x4012d0
push ebx
push 0x67
sub esi, 8
push eax
mov dword [0x40b378], esi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0x3e9
push eax
mov dword [0x40b370], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x40b378]
push ecx
push ebx
push 0x406
push eax
mov dword [0x40b374], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x40b370]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edx
call ebp
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x240]
call fcn.00401090
mov esi, 1
add esp, 4
cmp dword [esp + 0x18], esi
jbe 0x40151f
lea esp, [esp]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x544]
call fcn.00401090
inc esi
add esp, 4
cmp esi, dword [esp + 0x18]
jb 0x401500
mov edx, dword [0x40b370]
push ebx
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
cmp byte [0x40b380], bl
jne 0x4015b1
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x344]
push 0x200
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
cmp dword [esp + 0x14], ebx
je 0x401597
mov esi, dword [sym.imp.MSVCR90.dll_strcat_s]
push 0x4021ec
lea eax, [esp + 0x344]
push 0x200
push eax
call esi
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x350]
push 0x200
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x348]
push edx
call fcn.00401000
add esp, 0xc
lea eax, [esp + 0x34]
push eax
call fcn.00401240
add esp, 4
xor eax, eax
jmp 0x4015e5
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push ebx
push str.ExeMsiExtractor
push str.Error_in_file_format
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
mov ecx, dword [esp + 0x644]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401600
add esp, 0x638
ret 0x10