Function at 0x4045d1
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]
mov esi, dword [0x409718]
add eax, 0x3e8
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 dword [0x409718]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esi], 0x22
jne 0x404615
add bl, 2
inc esi
mov al, byte [esi]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
test al, al
je 0x40463a
cmp al, bl
je 0x404630
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x404621
cmp byte [esi], 0
je 0x40463a
push esi
call edi
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x404645
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x404640
cmp byte [esi], 0x2f
jne 0x4046e5
inc esi
mov dl, byte [esi]
cmp dl, 0x53
jne 0x404670
mov al, byte [esi + 1]
cmp al, 0x20
je 0x404666
test al, al
jne 0x404670
inc byte [0x417874]
inc esi
inc esi
jmp 0x4046dc
cmp dl, 0x4e
jne 0x40469f
cmp byte [esi + 1], 0x43
jne 0x40469f
cmp byte [esi + 2], 0x52
jne 0x40469f
cmp byte [esi + 3], 0x43
jne 0x40469f
lea eax, [esi + 4]
mov cl, byte [eax]
cmp cl, 0x20
je 0x404695
test cl, cl
jne 0x40469f
inc byte [0x418278]
mov esi, eax
jmp 0x4046dc
cmp dl, 0x44
jne 0x4046c7
cmp byte [esi + 1], 0x3d
jne 0x4046c7
and byte [esi - 2], 0
lea eax, [esi + 2]
push eax
push dword [0x40971c]
call sub.KERNEL32.dll_lstrcpyA
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jmp 0x4046dc
mov al, byte [esi]
test al, al
je 0x4046e5
cmp al, 0x20
je 0x4046dc
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x4046cd
cmp byte [esi], 0
jne 0x404645
push str.NSIS_ERROR
push 0x421340
call sub.KERNEL32.dll_lstrcpyA
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x400
mov dword [0x41a6b8], eax
push dword [0x409724]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push dword [0x409724]
call fcn.00406f2f
cmp eax, 0xffffffff
mov dword [0x421b50], eax
jne 0x40473f
mov dword [0x417400], str.Cant_open_self
jmp 0x4049d8
push ebp
push dword [0x409724]
call fcn.00406de7
push ebx
push dword [0x421b50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [0x421b4c], eax
cmp edi, ebx
jle 0x4048cd
mov ebp, 0x418078
mov ebx, 0x417404
mov eax, 0x200
mov dword [esp + 0x10], edi
cmp edi, eax
jbe 0x404782
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0
push eax
push dword [esp + 0x18]
push ebp
push dword [0x421b50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40489e
cmp dword [0x421b44], 0
jne 0x40480e
push ebp
call fcn.0040402f
test eax, eax
je 0x404850
mov ecx, dword [0x421b40]
cmp eax, edi
mov dword [0x421b44], ecx
jg 0x4048c1
mov cl, byte [0x418078]
test cl, 4
je 0x4047de
inc byte [0x417874]
cmp byte [0x418278], 0
je 0x4047f0
test cl, 8
je 0x4048cb
test cl, 1
je 0x4048cb
inc byte [0x417424]
lea edi, [eax - 4]
cmp dword [esp + 0x10], edi
jbe 0x404850
mov dword [esp + 0x10], edi
jmp 0x404850
cmp byte [0x417874], 0
jne 0x404850
cmp dword [0x417870], 0
jne 0x40488a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x404850
push str.verifying_installer:__d__
push 0x404553
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x6f
push dword [0x41a6b8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x417870], eax
cmp edi, dword [0x421b4c]
jge 0x40486d
push dword [esp + 0x10]
push ebp
push dword [0x417428]
call fcn.004024f9
mov dword [0x417428], eax
mov eax, dword [esp + 0x10]
add dword [0x421b40], eax
sub edi, eax
test edi, edi
jg 0x404771
jmp 0x4048cb
push ebx
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
push 1
push eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x404883
jmp 0x404850
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 [0x417400], eax
mov eax, dword [0x417870]
test eax, eax
je 0x4049c6
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4049c6
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 0x404b3f
xor ebx, ebx
mov eax, dword [0x417870]
cmp eax, ebx
je 0x4048dd
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x421b44], ebx
je 0x404945
cmp byte [0x417424], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x40492c
push ebx
push ebx
push dword [0x421b40]
push dword [0x421b50]
call edi
lea eax, [esp + 0x10]
push ebx
push eax
lea eax, [esp + 0x1c]
push 4
push eax
push dword [0x421b50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4048c1
mov eax, dword [0x417428]
cmp eax, dword [esp + 0x14]
jne 0x4048c1
push ebx
push ebx
push dword [0x421b44]
push dword [0x421b50]
call edi
call fcn.00404069
test eax, eax
je 0x40494f
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 [0x417400], eax
cmp dword [0x417400], ebx
jne 0x4049c6
xor eax, eax
cmp dword [0x421308], eax
je 0x4049a8
cmp byte [esi], 0x5f
jne 0x404a1e
cmp byte [esi + 1], 0x3d
jne 0x404a1e
lea edi, [esi + 2]
cmp byte [edi], al
je 0x404a1e
and byte [esi - 1], al
push edi
call fcn.00406e6a
test eax, eax
je 0x404b3a
push edi
push dword [0x40971c]
call sub.KERNEL32.dll_lstrcpyA
push edi
push dword [0x409720]
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x4212fc]
cmp byte [eax + 0x42], 0
jne 0x4049bc
mov cl, byte [0x417874]
mov byte [eax + 0x42], cl
call fcn.00404b49
mov dword [0x41827c], eax
mov eax, dword [0x421b50]
pop ebp
cmp eax, 0xffffffff
je 0x4049d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4094a4]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
je 0x4049ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x417400]
test eax, eax
je 0x4049fd
push 0x10
push eax
call fcn.00406caa
cmp byte [0x40af98], 0
je 0x404a12
push 1
push 0x40af98
call fcn.00406cc6
push dword [0x41827c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov ebx, 0x417879
mov esi, 0x417878
mov ebp, 0x417430
push ebx
push 0x7ff
mov byte [0x417878], 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 0x404b1a
push 0x400
push ebp
push dword [0x41a6b8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x417425]
push 0x409509
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404b3a
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404b1a
push 0
push ebx
call fcn.00406f4b
mov eax, dword [0x40971c]
cmp byte [eax], 0
je 0x404abd
push eax
push ebp
call sub.KERNEL32.dll_lstrcpyA
jmp 0x404ac3
push ebp
call fcn.00406de7
push ebp
call fcn.00406e6a
test eax, eax
je 0x404b3a
push 0x409630
push esi
mov dword [esp + 0x1c], 1
call edi
push dword [esp + 0x18]
push esi
call edi
push 0x40962c
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.00406c4f
test eax, eax
je 0x404b10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404b1a
mov eax, dword [str.Error_initializing_uninstaller]
mov dword [0x417400], eax
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x404a3b
cmp dword [esp + 0x14], 0
jne 0x4049c6
mov eax, dword [str.Error_initializing_uninstaller]
mov dword [0x417400], eax
jmp 0x4049c6