Function at 0x4018b0
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Delete registry key
Get common file path
Get file attributes
Get file size
Move file
Query or enumerate registry key
Query or enumerate registry value
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 0x20
sub esp, 0xec
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
movzx edx, byte [eax]
cmp dl, 0x22
jne 0x4018d9
movzx edx, byte [eax + 1]
mov ebx, 0x22
add eax, 1
mov esi, dword [sym.imp.USER32.dll_CharNextA]
cmp bl, dl
jne 0x4018f7
jmp 0x4018fb
mov dword [esp], eax
call esi
movzx edx, byte [eax]
sub esp, 4
cmp dl, bl
je 0x4018fb
test dl, dl
jne 0x4018e8
mov dword [esp], eax
call esi
mov ebx, eax
movzx eax, byte [eax]
sub esp, 4
cmp al, 0x20
jne 0x40191b
lea esi, [esi]
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 0x20
je 0x401910
mov edx, 1
cmp al, 0x2f
jne 0x401972
cmp byte [ebx + 1], 0x53
je 0x401980
mov dword [esp], 0x8001
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call edi
sub esp, 4
mov esi, eax
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
movzx eax, byte [ebx + 1]
sub esp, 4
cmp al, 0x44
je 0x401b61
cmp al, 0x54
je 0x401d98
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp], esi
call edi
xor edx, edx
sub esp, 4
add esp, 0xec
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 4], 0x400
mov dword [esp], 0x40
mov dword [esp + 0x30], edi
call edi
sub esp, 8
mov ebp, eax
mov dword [esp + 4], 0x400
mov dword [esp], 0x40
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 8
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareNSIS.Library.RegTool.v3
mov dword [esp], 0x80000002
call ebx
sub esp, 0x14
test eax, eax
js 0x401b00
mov dword [esp + 0x28], ebx
xor edi, edi
jmp 0x401a03
add edi, 1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
sub esp, 0x10
test eax, eax
jne 0x401ad8
lea eax, [esp + 0x50]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebp
call eax
sub esp, 0x14
test eax, eax
js 0x401a00
lea eax, [esp + 0x5c]
lea esi, [esp + 0x54]
mov dword [esp + 0x5c], 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.count
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
js 0x401aac
cmp dword [esp + 0x54], 4
je 0x401da8
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
sub esp, 8
jmp 0x401a00
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], str.SoftwareNSIS.Library.RegTool.v3
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], 0x400
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 0xc
test eax, eax
jne 0x401bb5
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call edx
sub esp, 4
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
call edx
xor edx, edx
sub esp, 4
mov eax, edx
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
add ebx, 2
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401962
mov dword [esp + 4], str.DllRegisterServer
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x401ba4
call eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x401962
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edx, dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401b36
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x28], edx
mov dword [esp + 4], 0x40413f
mov dword [esp], 0x403400
mov dword [esp + 0x38], eax
call eax
sub esp, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x403800
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
test eax, eax
mov edx, dword [esp + 0x28]
je 0x401b36
cmp eax, 0x400
jg 0x401b36
mov dword [esp + 0x34], edx
mov dword [esp + 0xc], 0x403800
mov dword [esp + 8], 0x403400
mov dword [esp + 4], str._S_S_r_n
mov dword [esp], section..data
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], 0x3f0
mov dword [esp + 0x28], eax
mov esi, eax
mov dword [esp], 0x403800
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
sub esp, 8
mov dword [esp + 4], str.wininit.ini
mov dword [esp], 0x403800
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
mov dword [esp], 0x403800
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
cmove eax, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x403800
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
mov edx, dword [esp + 0x34]
je 0x401b36
mov dword [esp + 0x3c], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
mov edi, eax
add eax, esi
mov dword [esp + 0x34], eax
add eax, 0xa
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], 0x40
call eax
sub esp, 8
test eax, eax
mov esi, eax
mov edx, dword [esp + 0x3c]
je 0x401d78
lea eax, [esp + 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
mov edx, dword [esp + 0x3c]
je 0x401d78
cmp edi, dword [esp + 0x60]
je 0x401ec2
mov dword [esp + 0x28], edx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov edx, dword [esp + 0x28]
jmp 0x401b36
add ebx, 2
mov dword [esp], ebx
call fcn.00401130
jmp 0x401962
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x401aac
mov edx, 1
lea eax, [esp + 0x60]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov edi, eax
mov ebp, edx
jmp 0x401ddd
add ebp, 1
cmp dword [esp + 0x58], ebp
jb 0x401eb5
mov dword [esp + 8], ebp
mov dword [esp + 4], str._u.mode
mov dword [esp], edi
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 3
mov dword [esp + 0x14], eax
lea eax, [esp + 0x49]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
js 0x401dd0
cmp dword [esp + 0x54], 1
jne 0x401dd0
mov dword [esp + 8], ebp
mov dword [esp + 4], str._u.file
mov dword [esp], edi
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x400
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
js 0x401dd0
cmp dword [esp + 0x54], 1
jne 0x401dd0
xor eax, eax
cmp byte [esp + 0x4a], 0x58
sete al
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
movsx eax, byte [esp + 0x49]
mov dword [esp], eax
call fcn.004011d0
jmp 0x401dd0
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
jmp 0x401aac
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], esi
call fcn.00401040
lea edx, [esi + edi]
test eax, eax
je 0x401f1f
add eax, 0xa
mov dword [esp + 4], 0x404163
mov dword [esp], eax
mov dword [esp + 0x38], edx
call fcn.00401040
test eax, eax
je 0x401f3f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov edi, ebx
add ecx, esi
cmp eax, edx
jae 0x401f16
movzx ebx, byte [edx]
sub edx, 1
sub ecx, 1
mov byte [ecx + 1], bl
cmp eax, edx
jne 0x401f04
mov ebx, edi
sub eax, esi
mov edi, eax
add edi, 1
jmp 0x401f3f
mov dword [esp], edx
mov eax, dword [esp + 0x38]
add edi, 0xa
mov dword [esp + 4], str._Rename__r_n
call eax
push edx
push edx
mov eax, dword [esp + 0x28]
add eax, edi
mov dword [esp + 0x34], eax
add edi, esi
xor eax, eax
cmp dword [esp + 0x28], 0
jle 0x401f5d
movzx edx, byte [eax + section..data]
mov byte [edi + eax], dl
add eax, 1
cmp dword [esp + 0x28], eax
jne 0x401f4a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 0x14
mov dword [esp + 0x28], edx
mov dword [esp], esi
call edx
push eax
mov edx, dword [esp + 0x28]
jmp 0x401d78