Function at 0x4046df
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Copy file
Delete file
Get common file path
Get file size
Read file on windows
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov esi, 0x420d80
mov dword [esp + 0x10], eax
mov bl, 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [0x420d80], 0x22
jne 0x404725
add bl, 2
mov esi, 0x420d81
mov al, byte [esi]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
test al, al
je 0x404740
cmp al, bl
je 0x404740
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x404731
cmp byte [esi], 0
je 0x40474a
push esi
call edi
mov esi, eax
mov dword [esp + 0x14], esi
cmp byte [esi], 0x20
jne 0x40475a
push esi
call edi
mov esi, eax
jmp 0x40474e
cmp byte [esi], 0x2f
jne 0x404780
mov dl, byte [esi + 1]
inc esi
cmp dl, 0x53
jne 0x4047dd
mov al, byte [esi + 1]
cmp al, 0x20
je 0x404773
test al, al
jne 0x4047dd
inc byte [0x41933c]
inc esi
inc esi
cmp byte [esi], 0
jne 0x40474e
push str.NSIS_ERROR
push 0x4225e0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x421980
push 0x400
push edi
push eax
mov dword [0x41bd74], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push edi
call fcn.0040693f
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x422de8], eax
jne 0x404855
mov dword [0x418ec8], str.Cant_open_self
jmp 0x404c1a
cmp dl, 0x4e
jne 0x404810
cmp byte [esi + 1], 0x43
jne 0x404810
cmp byte [esi + 2], 0x52
jne 0x404810
cmp byte [esi + 3], 0x43
jne 0x404810
mov cl, byte [esi + 4]
lea eax, [esi + 4]
cmp cl, 0x20
je 0x404803
test cl, cl
jne 0x404810
inc byte [0x419d44]
mov esi, eax
jmp 0x40477b
cmp dl, 0x44
jne 0x40483c
cmp byte [esi + 1], 0x3d
jne 0x40483c
and byte [esi - 2], 0
lea eax, [esi + 2]
push eax
push 0x421180
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
jmp 0x40477b
mov al, byte [esi]
test al, al
je 0x40477b
cmp al, 0x20
je 0x40477b
push esi
call edi
mov esi, eax
jmp 0x40483c
push ebp
push edi
call fcn.004067f9
pop ecx
push ebx
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x419b40], eax
mov edi, eax
jle 0x4049a7
mov ebp, 0x419b44
mov eax, 0x200
mov dword [esp + 0x10], edi
cmp edi, eax
jbe 0x40488f
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push ebx
push eax
push dword [esp + 0x18]
push ebp
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404a8b
cmp dword [0x422de0], ebx
jne 0x404915
push ebp
call fcn.004043a3
cmp eax, ebx
pop ecx
je 0x404973
mov ecx, dword [0x419334]
cmp eax, edi
mov dword [0x422de0], ecx
jg 0x404aae
mov cl, byte [0x419b44]
test cl, 4
je 0x4048ea
inc byte [0x41933c]
cmp byte [0x419d44], 0
jne 0x4049a7
test cl, 1
je 0x4049a7
inc byte [0x418eec]
lea edi, [eax - 4]
cmp dword [esp + 0x10], edi
jbe 0x404973
mov dword [esp + 0x10], edi
jmp 0x404973
cmp byte [0x41933c], 0
jne 0x404973
cmp dword [0x419338], ebx
je 0x404947
push 1
push ebx
push ebx
push ebx
push 0x418ed0
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404973
push 0x418ed0
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x404926
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x404973
push ebx
push 0x404c48
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x6f
push dword [0x41bd74]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x419338], eax
cmp edi, dword [0x419b40]
jge 0x404993
push dword [esp + 0x10]
push ebp
push dword [0x418ef0]
call fcn.00402637
add esp, 0xc
mov dword [0x418ef0], eax
mov eax, dword [esp + 0x10]
add dword [0x419334], eax
sub edi, eax
cmp edi, ebx
jg 0x40487e
mov eax, dword [0x419338]
cmp eax, ebx
je 0x4049b7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x422de0], ebx
je 0x404a27
cmp byte [0x418eec], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x404a0e
push ebx
push ebx
push dword [0x419334]
push dword [0x422de8]
call edi
lea eax, [esp + 0x10]
push ebx
push eax
lea eax, [esp + 0x1c]
push 4
push eax
push dword [0x422de8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404aae
mov eax, dword [0x418ef0]
cmp eax, dword [esp + 0x14]
jne 0x404aae
push ebx
push ebx
push dword [0x422de0]
push dword [0x422de8]
call edi
call fcn.004043da
test eax, eax
je 0x404a31
mov eax, dword [str.Installer_verification_failed._r_n_r_nThis_could_be_the_result_of_an_incomplete_download__r_na_failing_disk__or__possibly__corruption_from_a_virus._r_n_r_nYou_can_try_to_force_an_install_using_the__NCRC_r_ncommand_line_switch__but_it_is_NOT_recommended_]
mov dword [0x418ec8], eax
cmp dword [0x418ec8], ebx
jne 0x404c08
xor eax, eax
cmp dword [0x4225c0], eax
je 0x404bea
cmp byte [esi], 0x5f
jne 0x404ab8
cmp byte [esi + 1], 0x3d
jne 0x404ab8
cmp byte [esi + 2], al
lea edi, [esi + 2]
je 0x404ab8
and byte [esi - 1], al
push edi
call fcn.00406877
test eax, eax
pop ecx
je 0x404bde
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x421180
call esi
push edi
push 0x421580
call esi
jmp 0x404bea
mov eax, dword [str.Installer_verification_failed._r_n_r_nThis_could_be_the_result_of_an_incomplete_download__r_na_failing_disk__or__possibly__corruption_from_a_virus._r_n_r_nYou_can_try_to_force_an_install_using_the__NCRC_r_ncommand_line_switch__but_it_is_NOT_recommended_]
mov dword [0x418ec8], eax
mov eax, dword [0x419338]
cmp eax, ebx
je 0x404c08
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x404c08
mov eax, dword [str.Installer_verification_failed._r_n_r_nThis_could_be_the_result_of_an_incomplete_download__r_na_failing_disk__or__possibly__corruption_from_a_virus._r_n_r_nYou_can_try_to_force_an_install_using_the__NCRC_r_ncommand_line_switch__but_it_is_NOT_recommended_]
jmp 0x404be3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov ebx, 0x419341
mov esi, 0x419340
mov ebp, 0x418ef4
push ebx
push 0x7ff
mov byte [0x419340], 0x22
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.ANSISu_.exe
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x14], 0
jne 0x404bc2
push 0x400
push ebp
push dword [0x41bd74]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x418ee9]
push 0x40a2d5
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404bde
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404bc2
push 0
push ebx
call fcn.00406959
cmp byte [0x421180], 0
pop ecx
pop ecx
je 0x404b61
push 0x421180
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x404b68
push ebp
call fcn.004067f9
pop ecx
push ebp
call fcn.00406877
test eax, eax
pop ecx
je 0x404bde
push 0x40a3fc
push esi
mov dword [esp + 0x1c], 1
call edi
push dword [esp + 0x18]
push esi
call edi
push 0x40a3f8
push esi
call edi
push ebp
push esi
call edi
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebp
push esi
call fcn.00406768
pop ecx
test eax, eax
pop ecx
je 0x404bb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404bc2
mov eax, dword [str.Error_Initializing_Uninstaller]
mov dword [0x418ec8], eax
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x404ad5
cmp dword [esp + 0x14], 0
jne 0x404c08
mov eax, dword [str.Error_Initializing_Uninstaller]
mov dword [0x418ec8], eax
jmp 0x404c08
mov eax, dword [0x4225b8]
cmp byte [eax + 0x62], 0
jne 0x404bfe
mov cl, byte [0x41933c]
mov byte [eax + 0x62], cl
call fcn.00404cbd
mov dword [0x419d48], eax
mov eax, dword [0x422de8]
pop ebp
cmp eax, 0xffffffff
je 0x404c1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x418ec8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x404c36
push 0x10
push 0x4225e0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [0x419d48]
call dword [sym.imp.KERNEL32.dll_ExitProcess]