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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa34f11
mov eax, dword fs:[0]
push eax
mov eax, 0x10b0
call fcn.009bc830
mov eax, dword [0xa6d07c]
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 [0xa6ee54], 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 0x4188e6
cmp dword [ebp - 0x94], 2
jne 0x4188e6
mov al, bl
jmp 0x4188e8
xor al, al
mov byte [0xa6ee50], al
call fcn.00401e2e
lea ecx, [ebp - 0x1074]
call fcn.00406bce
lea ecx, [ebp - 0x1020]
call fcn.00406bce
lea ecx, [ebp - 0x10bc]
call fcn.00406bce
lea ecx, [ebp - 0x10b0]
call fcn.00406bce
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00406b98
lea eax, [ebp - 0x1020]
push eax
lea eax, [ebp - 0x1074]
push eax
lea eax, [ebp - 0x1030]
push eax
call fcn.004068a0
push dword [ebp - 0x1030]
call fcn.009bc0c5
pop ecx
lea ecx, [ebp - 0x1068]
call fcn.00406bce
lea eax, [ebp - 0x1068]
push eax
call fcn.00407b9d
lea ecx, [ebp - 0x1020]
call fcn.00407505
lea ecx, [ebp - 0x1020]
call fcn.004074d4
push 0xa38538
lea ecx, [ebp - 0x1020]
mov byte [ebp - 0x1011], 0
call fcn.00406fc4
test al, al
je 0x4189cf
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 0xa3853c
lea ecx, [ebp - 0x10a4]
call fcn.00406b4e
lea ecx, [ebp - 0x1098]
call fcn.00406bce
lea ecx, [ebp - 0x1058]
mov byte [ebp - 0x105c], 0
call fcn.00406bce
push 0xa38530
lea ecx, [ebp - 0x105c]
call fcn.00407dac
test al, al
jne 0x418a2d
cmp byte [ebp - 0x1011], al
jne 0x418cb0
push str.Cannot_create_temp_folder_archive
push 0
call fcn.00417263
jmp 0x418cb0
push 0x18
call fcn.009bc07e
mov esi, eax
pop ecx
test esi, esi
je 0x418a69
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 0x418a63
inc dword [esi + 4]
jmp 0x418a6b
push esi
call dword [eax + 4]
jmp 0x418a6b
xor esi, esi
mov ecx, esi
call fcn.00415021
test eax, eax
je 0x418a87
push str.Cannot_load_codecs
push 0
call fcn.00417263
jmp 0x418c9f
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ebp - 0x108c]
call fcn.00406b1d
lea ecx, [ebp - 0x103c]
mov byte [ebp - 0x1012], 0
call fcn.00406bce
push 0xf8
call fcn.009bc07e
pop ecx
test eax, eax
je 0x418ac5
mov ecx, eax
call fcn.00417fcc
mov edi, eax
jmp 0x418ac7
xor edi, edi
and dword [ebp - 0x1048], 0
lea eax, [ebp - 0x104c]
push edi
push eax
mov dword [ebp - 0x104c], edi
mov byte [ebp - 0x1044], 0
call fcn.00419049
push 0x800
mov dword [ebp - 0x1024], eax
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00a0dec0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00a0dec0
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 0x418b62
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1030]
call fcn.00406b98
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x1024]
lea eax, [ebp - 0x103c]
push edi
push eax
lea eax, [ebp - 0x1012]
push eax
push ebx
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1068]
push eax
push esi
call fcn.0041837b
push dword [ebp - 0x1030]
mov edi, eax
call fcn.009bc0c5
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x1024]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp - 0x1044], 0
je 0x418c85
test edi, edi
je 0x418c73
cmp byte [ebp - 0x1011], 0
jne 0x418c87
cmp edi, ebx
je 0x418bfe
cmp byte [ebp - 0x1012], 0
jne 0x418bfe
cmp edi, 0x80004004
je 0x418c87
jmp 0x418c11
lea eax, [ebp - 0x103c]
push eax
push 8
call fcn.00409eb4
mov edi, 0x80004005
cmp dword [ebp - 0x1038], 0
jne 0x418c45
push edi
lea eax, [ebp - 0x1030]
push eax
call fcn.00407c57
lea eax, [ebp - 0x1030]
push eax
lea ecx, [ebp - 0x103c]
call fcn.00406c42
push dword [ebp - 0x1030]
call fcn.009bc0c5
pop ecx
push 7
lea eax, [ebp - 0x1080]
push eax
call fcn.00409de5
push 0x10
push dword [eax]
push dword [ebp - 0x103c]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x1080]
call fcn.009bc0c5
pop ecx
jmp 0x418c87
push dword [ebp - 0x1043]
lea eax, [ebp - 0x810]
push eax
call fcn.00419a2b
xor ebx, ebx
push dword [ebp - 0x103c]
call fcn.009bc0c5
push dword [ebp - 0x108c]
call fcn.009bc0c5
pop ecx
pop ecx
mov dword [ebp - 4], 7
test esi, esi
je 0x418cb0
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x105c]
mov dword [ebp - 4], 8
call fcn.0040830b
push dword [ebp - 0x1058]
call fcn.009bc0c5
push dword [ebp - 0x1098]
call fcn.009bc0c5
push dword [ebp - 0x10a4]
call fcn.009bc0c5
push dword [ebp - 0x1068]
call fcn.009bc0c5
push dword [ebp - 0x10b0]
call fcn.009bc0c5
push dword [ebp - 0x10bc]
call fcn.009bc0c5
push dword [ebp - 0x1020]
call fcn.009bc0c5
push dword [ebp - 0x1074]
call fcn.009bc0c5
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.009bbe70
leave
ret 0x10