Function at 0x401306
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Create directory
Create process on windows
Get common file path
Set current directory
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x68]
mov eax, 0x4fa4
call fcn.00406470
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
inc ebx
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x28], ebx
call fcn.0040129a
call fcn.00401af8
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0x2c], 0x401a67
mov dword [ebp + 0x30], 0x401a7d
mov dword [ebp], 0x401a67
mov dword [ebp + 4], 0x401a7d
call fcn.00401de6
lea eax, [ebp - 0x4f3c]
push edi
push eax
call fcn.004043d9
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x908]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x401a5b
cmp eax, esi
ja 0x401a5b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp + 0x50], eax
xor ecx, ecx
mov eax, dword [ebp + 0x50]
movzx eax, word [eax]
cmp ax, 0x22
jne 0x4013ab
xor eax, eax
cmp ecx, edi
sete al
mov ecx, eax
jmp 0x4013ba
cmp ax, di
je 0x4013c0
cmp ax, 0x20
jne 0x4013ba
cmp ecx, edi
je 0x4013c0
add dword [ebp + 0x50], 2
jmp 0x401394
lea eax, [ebp - 0x6fc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x401a5b
cmp eax, esi
ja 0x401a5b
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x6fc]
push eax
call ebx
pop ecx
mov dword [ebp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
shl edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor esi, edi
shl esi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
mov eax, dword [ebp + 0x48]
lea eax, [ebp + eax*2 - 0x6fc]
xor edi, esi
and dword [ebp + 0x5c], 0
mov dword [ebp + 0x44], eax
push 0x407260
push dword [ebp + 0x44]
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x6fc]
push eax
call ebx
lea eax, [ebp + eax*2 - 0x6fc]
add esp, 0xc
mov dword [ebp + 0x58], edi
lea esi, [eax + 0xe]
mov dword [ebp + 0x4c], 8
mov ecx, dword [ebp + 0x58]
shr dword [ebp + 0x58], 4
and ecx, 0xf
cmp ecx, 0xa
jae 0x401466
add ecx, 0x30
jmp 0x401469
add ecx, 0x37
movsx cx, cl
mov word [esi], cx
dec esi
dec esi
dec dword [ebp + 0x4c]
jne 0x401452
xor esi, esi
mov word [eax + 0x10], si
lea eax, [ebp - 0x6fc]
push eax
call fcn.0040114e
test eax, eax
pop ecx
jne 0x4014ad
push esi
lea eax, [ebp - 0x6fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4014dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4014c2
inc dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, eax
cmp dword [ebp + 0x5c], 0x64
jb 0x401424
push 0x10
push str.7_Zip_Error
push str.Cant_create_temp_folder
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x401a5d
lea eax, [ebp - 0x6fc]
push 0x407140
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x6fc]
push eax
call ebx
mov dword [ebp + 0x48], eax
add esp, 0xc
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00401c4d
pop ecx
xor edi, edi
test eax, eax
pop ecx
je 0x401526
mov dword [ebp + 0x54], str.can_not_open_input_file
mov dword [ebp + 0x64], 0xb
jmp 0x401577
lea eax, [ebp + 0x14]
push eax
lea esi, [ebp + 0x20]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
call fcn.0040105c
test eax, eax
pop ecx
je 0x401551
push edi
mov eax, esi
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00401d35
add esp, 0xc
test eax, eax
je 0x401561
mov dword [ebp + 0x64], 0xb
mov dword [ebp + 0x54], str.Cant_find_7z_archive
jmp 0x401577
lea eax, [ebp + 0xc]
mov dword [ebp - 0x4f2c], eax
lea eax, [ebp - 0x4f3c]
push eax
call fcn.00404406
pop ecx
lea eax, [ebp - 0x9c]
push eax
call fcn.0040274c
cmp dword [ebp + 0x64], edi
pop ecx
jne 0x4018cf
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x4f3c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040405e
add esp, 0x10
cmp eax, edi
mov dword [ebp + 0x64], eax
jne 0x4018cf
or dword [ebp + 0x40], 0xffffffff
or dword [ebp + 0x24], 0xffffffff
lea eax, [ebp - 0x6fc]
push eax
mov dword [ebp + 0x1c], 0x40000000
mov dword [ebp + 0x4c], edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x80], edi
mov dword [ebp + 0x60], edi
jbe 0x401865
mov dword [ebp + 0x38], edi
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp + 0x38]
xor esi, esi
push esi
push dword [ebp + 0x60]
add ecx, eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x58], ecx
call fcn.0040371c
add esp, 0xc
cmp eax, 0x104
jae 0x401877
mov edi, dword [ebp + 0x48]
lea edi, [ebp + edi*2 - 0x6fc]
push edi
push dword [ebp + 0x60]
lea eax, [ebp - 0x9c]
push eax
call fcn.0040371c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x60]
lea eax, [ebp - 0x4f3c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040408e
add esp, 0x34
cmp eax, esi
mov dword [ebp + 0x64], eax
jne 0x4018bb
cmp word [edi], si
mov dword [ebp + 0x5c], esi
je 0x4016ba
mov ebx, edi
cmp word [ebx], 0x2f
jne 0x4016ab
and word [ebx], 0
push 0
lea eax, [ebp - 0x6fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4016a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x5c]
mov word [ebx], 0x5c
inc esi
inc dword [ebp + 0x5c]
mov eax, dword [ebp + 0x5c]
lea ebx, [edi + eax*2]
cmp word [ebx], 0
jne 0x40167f
mov eax, dword [ebp + 0x58]
cmp byte [eax + 0x19], 0
je 0x4016e5
push 0
lea eax, [ebp - 0x6fc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40182c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40182c
lea ebx, [edi + esi*2]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
push ebx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
pop ecx
mov ecx, eax
jbe 0x401715
lea edx, [ebx + eax*2 - 2]
cmp word [edx], 0x2e
je 0x401841
dec ecx
dec edx
dec edx
test ecx, ecx
ja 0x401704
xor edx, edx
mov dword [ebp + 0x5c], eax
push edx
sub edi, edx
lea eax, [ebx + edi*2]
push eax
push 7
push 0x408010
call section..text
push dword [ebp + 0x5c]
mov edi, eax
push ebx
push 4
push 0x40802c
call section..text
add esp, 0x20
neg esi
sbb esi, esi
and esi, 0x1000
mov ecx, edi
add eax, esi
shl ecx, 6
add eax, ecx
cmp dword [ebp + 0x1c], eax
jbe 0x40176e
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x40], eax
xor eax, eax
cmp edi, 1
setne al
mov dword [ebp + 0x28], eax
lea eax, [ebp - 0x6fc]
push eax
call fcn.0040114e
test eax, eax
pop ecx
jne 0x40184e
lea eax, [ebp - 0x6fc]
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.00401c54
test eax, eax
pop ecx
pop ecx
jne 0x401857
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x44]
push eax
mov eax, dword [ebp + 0x4c]
add ecx, eax
push ecx
lea eax, [ebp + 0x34]
push eax
call fcn.00401cdb
add esp, 0xc
test eax, eax
jne 0x4017c8
mov eax, dword [ebp + 0x44]
cmp eax, dword [ebp + 0x3c]
je 0x4017d6
mov dword [ebp + 0x54], str.Cant_write_output_file
mov dword [ebp + 0x64], 0xb
mov eax, dword [ebp + 0x58]
cmp byte [eax + 0x1c], 0
je 0x4017fb
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x34]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0x34]
push eax
call fcn.00401c5c
cmp dword [ebp + 0x64], 0
pop ecx
jne 0x4018bb
test eax, eax
jne 0x401860
mov eax, dword [ebp + 0x58]
cmp byte [eax + 0x1d], 0
je 0x40182c
push dword [eax + 0x14]
lea eax, [ebp - 0x6fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc dword [ebp + 0x60]
mov eax, dword [ebp + 0x60]
add dword [ebp + 0x38], 0x20
cmp eax, dword [ebp - 0x80]
jb 0x4015e7
jmp 0x40186a
sub eax, ecx
dec ecx
mov edx, eax
mov dword [ebp + 0x5c], ecx
jmp 0x40171a
mov dword [ebp + 0x54], str.Duplicate_file
jmp 0x401877
mov dword [ebp + 0x54], str.Cant_open_output_file
jmp 0x401877
mov dword [ebp + 0x64], eax
xor edi, edi
cmp dword [ebp + 0x64], edi
jne 0x4018bb
cmp dword [ebp + 0x40], 0xffffffff
jne 0x401880
mov dword [ebp + 0x54], str.There_is_no_file_to_execute
mov dword [ebp + 0x64], 0xb
jmp 0x4018bb
mov esi, dword [ebp + 0x48]
lea esi, [ebp + esi*2 - 0x6fc]
push esi
push dword [ebp + 0x40]
lea eax, [ebp - 0x9c]
push eax
call fcn.0040371c
xor ecx, ecx
add esp, 0xc
cmp word [esi], cx
je 0x4018bb
mov eax, esi
cmp word [eax], 0x2f
jne 0x4018b1
mov word [eax], 0x5c
inc ecx
lea eax, [esi + ecx*2]
cmp word [eax], 0
jne 0x4018a6
push dword [ebp + 0x4c]
lea eax, [ebp + 0x2c]
push eax
call dword [ebp + 0x30]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00402773
lea eax, [ebp + 0x14]
push eax
call fcn.00401c5c
add esp, 0xc
cmp dword [ebp + 0x64], edi
jne 0x4019ef
cmp dword [ebp + 0x28], edi
mov dword [ebp + 0x60], edi
je 0x40195d
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
push edi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x50]
lea eax, [ebp - 0x6fc]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], 0x140
call ebx
add esp, 0x10
test eax, eax
je 0x40192f
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x30], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
je 0x401954
cmp dword [ebp - 0x2c], 0x20
ja 0x40194f
cmp dword [ebp - 0x2c], edi
jne 0x401954
mov eax, dword [ebp - 0x14]
jmp 0x4019d3
mov dword [ebp + 0x64], 0xb
jmp 0x4019d6
lea eax, [ebp - 0x6fc]
push eax
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
push dword [ebp + 0x50]
lea eax, [ebp - 0xf20]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0xe0]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe0]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xf20]
push eax
push edi
mov dword [ebp - 0xe0], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4019c7
mov dword [ebp + 0x64], 0xb
jmp 0x4019ef
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x60], eax
cmp dword [ebp + 0x60], edi
je 0x4019ef
push 0xffffffffffffffff
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x407144
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 0x48]
mov word [ebp + eax*2 - 0x6fc], di
lea eax, [ebp - 0x6fc]
push eax
call fcn.0040117c
mov eax, dword [ebp + 0x64]
cmp eax, edi
pop ecx
jne 0x401a1d
xor eax, eax
jmp 0x401a5d
cmp eax, 4
jne 0x401a29
mov eax, str.Decoder_doesnt_support_this_archive
jmp 0x401a4d
cmp eax, 2
jne 0x401a35
mov eax, str.Cant_allocate_required_memory
jmp 0x401a4d
cmp eax, 3
jne 0x401a41
mov eax, str.CRC_error
jmp 0x401a4d
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x401a4d
mov eax, str.ERROR
push 0x10
push str.7_Zip_Error
push eax
push edi
jmp 0x4014cf
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10