Function at 0x401b1b
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Check if file exists
Copy file
Create directory
Create process on windows
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
push ebx
inc edi
call dword [sym.imp.ole32.dll_CoInitialize]
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4070c4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.0040117c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x401bd1
cmp ax, 0x20
jne 0x401b70
add esi, 2
jmp 0x401bd1
mov ecx, esi
call fcn.0040117c
xor edx, edx
mov esi, eax
inc edx
cmp word [0x4070c8], 0x2f
mov ecx, edx
jne 0x401bb8
mov ax, word [0x4070ca]
cmp ax, 0x53
jne 0x401ba5
cmp word [0x4070cc], bx
jne 0x401bb8
mov dword [0x4070b0], edx
jmp 0x401bb6
cmp ax, 0x4e
jne 0x401c06
cmp word [0x4070cc], bx
jne 0x401bb8
mov edi, ebx
mov ecx, ebx
test ecx, ecx
je 0x401bd1
cmp word [0x4072d8], bx
jne 0x401bd1
push 0x4070c8
push 0x4072d8
call ebp
movzx eax, word [esi]
test ax, ax
jne 0x401b65
cmp word [0x4072d8], bx
je 0x401c28
cmp dword [0x4070b0], ebx
jne 0x401bf9
mov edx, 0x4072d8
mov ecx, str.Unsupported_command:
call fcn.00401631
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0x10
push 0x44
pop edx
cmp ax, dx
jne 0x401bb8
cmp word [0x4070cc], 0x3d
jne 0x401bb8
push 0x4070ce
push 0x407948
call ebp
mov edi, ebx
jmp 0x401bd1
mov esi, 0x104
push esi
push 0x407b68
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401bf9
cmp eax, esi
ja 0x401bf9
push 0x407b68
push 0x407d88
mov esi, ebx
call ebp
movzx eax, word [0x407d88]
mov ecx, 0x407d8a
test ax, ax
je 0x401bf9
cmp ax, 0x5c
movzx eax, word [ecx]
cmove esi, ecx
add ecx, 2
test ax, ax
jne 0x401c61
test esi, esi
je 0x401bf9
mov edx, 0x405320
mov ecx, esi
call fcn.00401052
xor ecx, ecx
test eax, eax
mov word [esi], cx
mov esi, 0x4074e8
cmovne ecx, edi
test ecx, ecx
je 0x401ec5
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401ec5
cmp eax, 0x105
ja 0x401ec5
mov edx, esi
mov ecx, 0x407d88
call fcn.00401498
test eax, eax
jne 0x401ec5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
shl esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, edi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
lea eax, [ebx*2 + 0x4074e8]
mov dword [esp + 0x18], eax
mov edx, 0x405928
mov esi, eax
mov cl, byte [edx]
inc edx
movzx eax, cl
mov word [esi], ax
lea esi, [esi + 2]
test cl, cl
jne 0x401d12
push 0x4074e8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x10]
mov edx, eax
push 8
pop ebx
lea edi, [edx*2 + 0x4074f6]
mov ecx, esi
shr esi, 4
and ecx, 0xf
cmp ecx, 0xa
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
add ax, cx
mov word [edi], ax
lea edi, [edi - 2]
sub ebx, 1
jne 0x401d3d
xor eax, eax
mov esi, 0x4074e8
push esi
mov word [edx*2 + 0x4074f8], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401d92
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401dc7
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add dword [esp + 0x10], eax
cmp edi, 0x64
jae 0x401dc7
mov eax, dword [esp + 0x18]
jmp 0x401d0b
mov edx, 0x40592c
mov ecx, esi
call fcn.004010ac
push esi
push 0x407fa8
call ebp
cmp word [0x407fa8], 0
je 0x401ec5
push 0x407fa8
mov edi, 0x408a70
push edi
call ebp
mov edx, str.Uninst.exe
mov ecx, edi
call fcn.004010ac
push 1
push edi
push 0x407b68
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x401ec5
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push ebx
push edi
call esi
push 4
push ebx
push 0x407fa8
call esi
xor eax, eax
mov esi, 0x408408
mov edx, edi
mov word [0x408408], ax
mov ecx, esi
call section..text
mov edx, str.__N__D
mov ecx, esi
call fcn.004010ac
mov edx, 0x407d88
mov ecx, esi
call section..text
mov ebx, dword [esp + 0x1c]
xor eax, eax
cmp word [ebx], ax
je 0x401e69
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x212
jae 0x401e69
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [esp + 0x40]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], edi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push 0x407fa8
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401ec0
push dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [esp + 0x20], ebx
je 0x401ec0
push dword [esp + 0x20]
call esi
xor eax, eax
jmp 0x401bfc
mov esi, 0x4074e8
push 0x407d88
push esi
call ebp
cmp word [0x407948], 0
je 0x401ee6
push 0x407948
push esi
call ebp
mov ecx, esi
call fcn.004015c6
cmp dword [0x4070b0], 0
je 0x401ef9
call fcn.004011dc
jmp 0x401bfc
push ebx
push 0x401a1c
push ebx
push 0x64
push dword [esp + 0x94]
xor esi, esi
inc esi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x4070b4], eax
test eax, eax
je 0x401bf9
push esi
push dword [esp + 0x88]
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
push 0x80
push dword [0x4070b4]
call ebp
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x2c]
push eax
call ebx
test eax, eax
je 0x402037
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp eax, 0xffffffff
je 0x40204e
mov eax, dword [0x4070b4]
test eax, eax
je 0x40204e
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x401f9c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [0x4070b4], 0
je 0x40204e
cmp dword [0x4070a8], 0
je 0x402023
cmp dword [0x4070ac], 0
jne 0x402023
call fcn.004011dc
xor ecx, ecx
mov esi, eax
inc ecx
mov dword [0x4070ac], ecx
test esi, esi
jne 0x402037
mov eax, dword [0x4070b4]
test eax, eax
je 0x40204e
push str.Close
push ecx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push 1
push dword [0x4070b4]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
push eax
push 2
push dword [0x4070b4]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 1
push dword [0x4070b4]
call edi
push eax
push 0x28
push dword [0x4070b4]
call ebp
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push eax
call ebx
test eax, eax
jne 0x401f60
mov eax, dword [0x4070b4]
test eax, eax
je 0x40204e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov dword [0x4070b4], eax
mov eax, esi
jmp 0x401bfc