Function at 0x4187f8
Capabilities:
Accept command line arguments
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edd70
mov eax, dword fs:[0]
push eax
mov eax, 0x10ac
call fcn.004d78c0
mov eax, dword [0xb5c470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [0xb5e050], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
inc ebx
test eax, eax
je 0x41885d
cmp dword [ebp - 0x94], 2
jne 0x41885d
mov al, bl
jmp 0x41885f
xor al, al
mov byte [0xb5e054], al
call fcn.00401e2e
lea ecx, [ebp - 0x1070]
call fcn.00406bce
lea ecx, [ebp - 0x1020]
call fcn.00406bce
lea ecx, [ebp - 0x10b8]
call fcn.00406bce
lea ecx, [ebp - 0x10ac]
call fcn.00406bce
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00406b98
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1070]
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.004068a0
push dword [ebp - 0x1038]
call fcn.004d7255
pop ecx
lea ecx, [ebp - 0x1064]
call fcn.00406bce
lea eax, [ebp - 0x1064]
push eax
call fcn.00407b9d
lea ecx, [ebp - 0x1020]
call fcn.00407505
lea ecx, [ebp - 0x1020]
call fcn.004074d4
push 0x4f0320
lea ecx, [ebp - 0x1020]
mov byte [ebp - 0x1011], 0
call fcn.00406fc4
test al, al
je 0x418946
mov eax, dword [ebp - 0x1020]
lea ecx, [ebp - 0x1020]
add eax, 4
mov byte [ebp - 0x1011], bl
push eax
call fcn.00406d22
lea ecx, [ebp - 0x1020]
call fcn.00407505
lea ecx, [ebp - 0x1020]
call fcn.004074d4
push 0x4f0324
lea ecx, [ebp - 0x10a0]
call fcn.00406b4e
lea ecx, [ebp - 0x1094]
call fcn.00406bce
lea ecx, [ebp - 0x1054]
mov byte [ebp - 0x1058], 0
call fcn.00406bce
push 0x4f0318
lea ecx, [ebp - 0x1058]
call fcn.00407dac
test al, al
jne 0x4189a4
cmp byte [ebp - 0x1011], al
jne 0x418c7d
push str.Cannot_create_temp_folder_archive
push 0
call fcn.00417263
jmp 0x418c7d
push 0x18
call fcn.004d720e
mov esi, eax
pop ecx
test esi, esi
je 0x4189e0
xor eax, eax
mov dword [esi], vtable.CCodecs.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov word [esi + 0x14], ax
mov eax, dword [esi]
cmp dword [eax + 4], 0x40a91c
jne 0x4189da
inc dword [esi + 4]
jmp 0x4189e2
push esi
call dword [eax + 4]
jmp 0x4189e2
xor esi, esi
mov ecx, esi
call fcn.00415021
test eax, eax
je 0x4189fe
push str.Cannot_load_codecs
push 0
call fcn.00417263
jmp 0x418c6c
lea eax, [ebp - 0x1054]
push eax
lea ecx, [ebp - 0x1088]
call fcn.00406b1d
lea ecx, [ebp - 0x1044]
mov byte [ebp - 0x1013], 0
mov byte [ebp - 0x1012], 0
call fcn.00406bce
push 0xf8
call fcn.004d720e
pop ecx
test eax, eax
je 0x418a41
mov ecx, eax
call fcn.00417f2c
jmp 0x418a43
xor eax, eax
push 0x48
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1048], eax
mov byte [ebp - 0x1014], 0
call fcn.004d720e
pop ecx
test eax, eax
je 0x418a92
push 0x4187b5
push 0x4187c6
lea ecx, [ebp - 0x1048]
push ecx
lea ecx, [ebp - 0x1012]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, eax
call fcn.00418db0
mov edi, eax
mov dword [ebp - 0x102c], eax
jmp 0x418a9a
xor edi, edi
mov dword [ebp - 0x102c], edi
push edi
call fcn.004d6171
mov eax, dword [edi + 0x20]
push 0x800
mov dword [ebp - 0x1028], eax
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004d8ef0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004d8ef0
add esp, 0x18
lea eax, [ebp - 0x1010]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.7zip
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418b1d
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00406b98
push dword [edi + 0x18]
lea eax, [ebp - 0x1044]
push dword [ebp - 0x1028]
push dword [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1013]
push eax
push ebx
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x1064]
push eax
push esi
call fcn.004182db
push dword [ebp - 0x1038]
mov edi, eax
call fcn.004d7255
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x1028]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x102c]
mov eax, dword [ecx + 0x18]
cmp byte [eax], 0
je 0x418c52
mov eax, dword [ecx + 0x1c]
mov al, byte [eax]
mov byte [ebp - 0x1012], al
test edi, edi
je 0x418c3f
cmp byte [ebp - 0x1011], 0
jne 0x418c54
cmp edi, ebx
je 0x418bca
cmp byte [ebp - 0x1013], 0
jne 0x418bca
cmp edi, 0x80004004
je 0x418c54
jmp 0x418bdd
lea eax, [ebp - 0x1044]
push eax
push 8
call fcn.00409eb4
mov edi, 0x80004005
cmp dword [ebp - 0x1040], 0
jne 0x418c11
push edi
lea eax, [ebp - 0x1038]
push eax
call fcn.00407c57
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x1044]
call fcn.00406c42
push dword [ebp - 0x1038]
call fcn.004d7255
pop ecx
push 7
lea eax, [ebp - 0x107c]
push eax
call fcn.00409de5
push 0x10
push dword [eax]
push dword [ebp - 0x1044]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x107c]
call fcn.004d7255
pop ecx
jmp 0x418c54
mov eax, dword [ecx + 0x1c]
movzx eax, byte [eax]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00439960
xor ebx, ebx
push dword [ebp - 0x1044]
call fcn.004d7255
push dword [ebp - 0x1088]
call fcn.004d7255
pop ecx
pop ecx
mov dword [ebp - 4], 7
test esi, esi
je 0x418c7d
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x1058]
mov dword [ebp - 4], 8
call fcn.0040830b
push dword [ebp - 0x1054]
call fcn.004d7255
push dword [ebp - 0x1094]
call fcn.004d7255
push dword [ebp - 0x10a0]
call fcn.004d7255
push dword [ebp - 0x1064]
call fcn.004d7255
push dword [ebp - 0x10ac]
call fcn.004d7255
push dword [ebp - 0x10b8]
call fcn.004d7255
push dword [ebp - 0x1020]
call fcn.004d7255
push dword [ebp - 0x1070]
call fcn.004d7255
add esp, 0x20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6ff7
leave
ret 0x10