Function at 0x401000
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
mov ebp, esp
mov eax, 0x13fc
call fcn.00407ab0
push ebx
push esi
push edi
push 1
xor edi, edi
pop ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], edi
call fcn.00405553
push ebx
push 0x401867
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.00403c6e
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x24], 0x401ad6
mov dword [ebp - 0x20], 0x401acd
mov dword [ebp - 0x5c], 0x401ad6
mov dword [ebp - 0x58], 0x401acd
call fcn.00404051
xor edx, edx
lea ecx, [ebp - 0xa4]
call fcn.00404a2a
mov esi, 0x104
lea eax, [ebp - 0xb9c]
push esi
push eax
push edi
mov dword [ebp - 0x88], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x4017b5
cmp eax, esi
ja 0x4017b5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov ax, word [eax]
cmp ax, 0x22
jne 0x4010b4
xor eax, eax
cmp ecx, edi
sete al
mov ecx, eax
jmp 0x4010c3
cmp ax, di
je 0x4010c9
cmp ax, 0x20
jne 0x4010c3
cmp ecx, edi
je 0x4010c9
add dword [ebp - 0x14], 2
jmp 0x40109d
lea eax, [ebp - 0x784]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x4017b5
cmp eax, esi
ja 0x4017b5
lea eax, [ebp - 0x784]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
shl esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
shl esi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x1c]
push 0x408270
lea eax, [ebp + eax*2 - 0x784]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea eax, [ebp - 0x784]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp + eax*2 - 0x784]
add esp, 0xc
mov ebx, esi
mov dword [ebp - 0x18], 8
lea ecx, [eax + 0xe]
mov edx, ebx
and edx, 0xf
shr ebx, 4
cmp edx, 0xa
jae 0x401164
add edx, 0x30
jmp 0x401167
add edx, 0x37
mov word [ecx], dx
dec ecx
dec ecx
dec dword [ebp - 0x18]
jne 0x401152
lea ecx, [ebp - 0x784]
mov word [eax + 0x10], di
call fcn.00401988
push 0xb
test eax, eax
pop ebx
jne 0x4011a6
lea eax, [ebp - 0x784]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4011f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4011bb
inc dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
cmp dword [ebp - 8], 0x64
jb 0x401119
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x784]
push eax
lea eax, [ebp - 0xde4]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp - 4], edi
pop ecx
pop ecx
je 0x401219
mov eax, str.Cant_create_temp_folder
test eax, eax
mov ecx, eax
jne 0x4017ab
mov ecx, str.Error
jmp 0x4017ab
lea eax, [ebp - 0x784]
push 0x408248
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x784]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x4011be
lea edx, [ebp - 0xb9c]
lea ecx, [ebp - 0x64]
call fcn.00403e98
test eax, eax
je 0x401237
mov dword [ebp - 0xc], str.can_not_open_input_file
mov dword [ebp - 4], ebx
jmp 0x4012a3
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
call fcn.00401893
test eax, eax
je 0x40125c
push edi
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00403fd7
test eax, eax
je 0x401268
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], str.Cant_find_7z_archive
jmp 0x4012a3
mov esi, 0x40000
lea ecx, [ebp - 0x24]
mov edx, esi
call dword [ebp - 0x24]
cmp eax, edi
mov dword [ebp - 0x88], eax
jne 0x401288
mov dword [ebp - 4], 2
jmp 0x4012a3
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], edi
lea ecx, [ebp - 0x168]
call fcn.00401b05
cmp dword [ebp - 4], edi
jne 0x4015b7
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x168]
call fcn.004020b9
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4015b7
or dword [ebp - 0x34], 0xffffffff
or dword [ebp - 0x70], 0xffffffff
cmp dword [ebp - 0x128], edi
mov dword [ebp - 0x54], 0x40000000
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 8], edi
jbe 0x401563
mov edx, dword [ebp - 8]
xor esi, esi
push esi
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], esi
call fcn.00403bd5
cmp eax, 0x104
jae 0x401555
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x168]
lea edi, [ebp + eax*2 - 0x784]
push edi
call fcn.00403bd5
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x168]
push dword [ebp - 8]
call fcn.00403a6b
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4015ac
cmp word [edi], si
je 0x4013af
mov eax, edi
mov dword [ebp - 0x10], 1
mov ebx, edi
cmp word [eax], 0x2f
jne 0x4013a2
and word [ebx], 0
lea ecx, [ebp - 0x784]
call fcn.0040187c
mov esi, dword [ebp - 0x10]
mov word [ebx], 0x5c
inc dword [ebp - 0x10]
inc ebx
inc ebx
mov eax, ebx
cmp word [ebx], 0
jne 0x401385
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x120]
and ecx, 7
mov eax, 0x80
sar eax, cl
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 0x10], ecx
test byte [ecx + edx], al
mov dword [ebp - 0x44], eax
je 0x4013e3
lea ecx, [ebp - 0x784]
call fcn.0040187c
jmp 0x401531
lea ebx, [edi + esi*2]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea edx, [ebp - 0x38]
mov ecx, ebx
mov edi, eax
call fcn.004017bc
sub edi, dword [ebp - 0x38]
push dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov ecx, 0x4080f8
lea eax, [ebx + edi*2]
push eax
push 7
pop edx
call fcn.004017f0
push dword [ebp - 0x48]
mov ecx, 0x408114
mov edi, eax
push ebx
push 4
pop edx
call fcn.004017f0
neg esi
sbb esi, esi
mov ecx, edi
and esi, 0x1000
add eax, esi
shl ecx, 6
add eax, ecx
cmp dword [ebp - 0x54], eax
jbe 0x401453
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
xor eax, eax
cmp edi, 2
setne al
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x784]
call fcn.00401988
test eax, eax
jne 0x401545
lea edx, [ebp - 0x784]
lea ecx, [ebp - 0x28]
call fcn.00403ee7
test eax, eax
jne 0x40154e
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ecx + eax]
lea ecx, [ebp - 0x28]
call fcn.00403f75
test eax, eax
jne 0x4014a3
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x30]
je 0x4014b1
mov dword [ebp - 0xc], str.Cant_write_output_file
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x10c]
xor esi, esi
cmp eax, esi
je 0x4014ee
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x44]
test byte [ecx + eax], dl
je 0x4014ee
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov dword [ebp - 0x78], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x28]
call fcn.00403eef
cmp dword [ebp - 4], esi
jne 0x4015ac
test eax, eax
jne 0x40155e
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x401531
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 0x44]
test byte [ecx + eax], dl
je 0x401531
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
lea eax, [ebp - 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x128]
jb 0x4012ff
jmp 0x401568
mov dword [ebp - 0xc], str.Duplicate_file
jmp 0x401555
mov dword [ebp - 0xc], str.Cant_open_output_file
mov dword [ebp - 4], 0xb
jmp 0x4015ac
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x4015ac
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
jne 0x401579
mov dword [ebp - 0xc], str.There_is_no_file_to_execute
jmp 0x401555
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x168]
lea esi, [ebp + eax*2 - 0x784]
push esi
call fcn.00403bd5
cmp word [esi], 0
je 0x4015ac
mov eax, esi
cmp word [eax], 0x2f
jne 0x4015a2
mov word [esi], 0x5c
inc esi
inc esi
mov eax, esi
cmp word [esi], 0
jne 0x401597
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call dword [ebp - 0x20]
xor edi, edi
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x168]
call fcn.00401b67
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x24]
call dword [ebp - 0x20]
lea ecx, [ebp - 0x64]
call fcn.00403eef
cmp dword [ebp - 4], edi
jne 0x401755
lea eax, [ebp - 0x990]
xor ebx, ebx
push eax
push 0x105
mov word [ebp - 0x990], di
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x401608
cmp eax, 0x104
jbe 0x40160f
mov word [ebp - 0x990], di
lea eax, [ebp - 0xde4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0x40], edi
je 0x4016a8
push 0x3c
lea eax, [ebp - 0xe0]
pop esi
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 0x14]
lea eax, [ebp - 0x784]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xdc], 0x140
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x10
test eax, eax
je 0x40166b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xc4], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
je 0x40169f
cmp dword [ebp - 0xc0], 0x20
ja 0x401697
cmp dword [ebp - 0xc0], edi
jne 0x40169f
mov ebx, dword [ebp - 0xa8]
jmp 0x40171e
mov dword [ebp - 4], 0xb
jmp 0x40171e
lea eax, [ebp - 0x784]
push eax
lea eax, [ebp - 0x13fc]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
push dword [ebp - 0x14]
lea eax, [ebp - 0x13fc]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
push 0x44
lea eax, [ebp - 0xe8]
pop esi
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x80]
mov dword [ebp - 0xe8], esi
push eax
lea eax, [ebp - 0xe8]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x13fc]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401712
mov dword [ebp - 4], 0xb
jmp 0x401748
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x80]
cmp ebx, edi
je 0x401748
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x401741
mov dword [ebp - 0x2c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x990]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x784]
mov word [ebp + eax*2 - 0x784], di
call fcn.004019b4
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x401777
mov eax, dword [ebp - 0x2c]
jmp 0x4017b7
cmp eax, 4
jne 0x401783
mov ecx, str.Decoder_doesnt_support_this_archive
jmp 0x4017a7
cmp eax, 2
jne 0x40178f
mov ecx, str.Cant_allocate_required_memory
jmp 0x4017a7
cmp eax, 3
jne 0x40179b
mov ecx, str.CRC_error
jmp 0x4017a7
mov ecx, dword [ebp - 0xc]
cmp ecx, edi
jne 0x4017ab
mov ecx, str.ERROR
cmp ecx, edi
je 0x4017b0
call fcn.0040186d
push 1
pop eax
jmp 0x4017b7
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret