Function at 0x4043f4
Capabilities:
Accept command line arguments
Copy file
Delete file
Get common file path
Get file size
Read file on windows
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x3e8
mov dword [esp + 0x14], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov al, byte [esi]
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
cmp al, 0x22
jne 0x40444e
push esi
call ebx
mov esi, eax
mov al, byte [esi]
test al, al
je 0x404432
cmp al, 0x22
jne 0x404423
cmp byte [esi], 0
je 0x40443c
push esi
call ebx
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0x20
jne 0x40445f
push esi
call ebx
mov esi, eax
jmp 0x404442
test al, al
je 0x40443c
cmp al, 0x20
je 0x40443c
push esi
call ebx
mov esi, eax
mov al, byte [esi]
jmp 0x40444e
cmp byte [esi], 0x2f
jne 0x4044ed
push esi
call ebx
mov esi, eax
push esi
call ebx
mov dl, byte [esi]
cmp dl, 0x53
jne 0x40448c
mov cl, byte [eax]
cmp cl, 0x20
je 0x404482
test cl, cl
jne 0x40448c
inc byte [0x4187b0]
mov esi, eax
jmp 0x4044e4
cmp dl, 0x4e
jne 0x4044ba
cmp byte [esi + 1], 0x43
jne 0x4044ba
cmp byte [esi + 2], 0x52
jne 0x4044ba
cmp byte [esi + 3], 0x43
jne 0x4044ba
mov cl, byte [esi + 4]
lea eax, [esi + 4]
cmp cl, 0x20
je 0x4044b2
test cl, cl
jne 0x4044ba
inc byte [0x4187b8]
jmp 0x404488
cmp dl, 0x44
jne 0x4044ed
push esi
call ebx
cmp byte [eax], 0x3d
jne 0x4044ed
push eax
call ebx
mov edi, eax
cmp byte [edi], 0
je 0x4044ed
push edi
push 0x41ec00
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
cmp byte [esi], 0
jne 0x404442
push str.NSIS_ERROR
push 0x420040
call ebp
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x41f400
push 0x400
push edi
push eax
mov dword [0x419be8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push edi
call fcn.00406623
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x420848], eax
jne 0x404542
mov dword [0x417d40], str.Cant_open_self
jmp 0x4048ce
push edi
call fcn.00406530
pop ecx
push ebp
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [0x4187b4], eax
mov edi, eax
jle 0x404688
mov ebp, 0x418790
mov eax, 0x200
mov dword [esp + 0x10], edi
cmp edi, eax
jbe 0x40457b
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0
push eax
push dword [esp + 0x18]
push 0x41854c
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40475b
cmp edi, dword [0x4187b4]
jge 0x4045c3
push dword [esp + 0x10]
push 0x41854c
push dword [0x418548]
call section..text
add esp, 0xc
mov dword [0x418548], eax
cmp dword [0x420840], 0
jne 0x40461d
push 0x41854c
call fcn.0040405c
test eax, eax
pop ecx
je 0x404672
mov ecx, dword [0x41878c]
cmp eax, edi
mov dword [0x420840], ecx
jg 0x40477e
mov cl, byte [0x41854c]
test cl, 4
je 0x404604
inc byte [0x4187b0]
cmp byte [0x4187b8], 0
jne 0x404686
test cl, 1
je 0x404686
inc byte [0x418544]
lea edi, [eax - 4]
jmp 0x404672
cmp byte [0x4187b0], 0
jne 0x404672
cmp dword [0x4187ac], 0
je 0x40464a
xor eax, eax
push 1
push eax
push eax
push eax
push ebp
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404672
push ebp
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x404672
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x404672
push 0
push 0x4048fc
push 0
push 0x6f
push dword [0x419be8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4187ac], eax
mov eax, dword [esp + 0x10]
add dword [0x41878c], eax
sub edi, eax
test edi, edi
jg 0x40456a
xor ebp, ebp
mov eax, dword [0x4187ac]
cmp eax, ebp
je 0x404698
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x420840], ebp
je 0x4046f6
cmp byte [0x418544], 0
je 0x4046d9
lea eax, [esp + 0x10]
push ebp
push eax
lea eax, [esp + 0x1c]
push 4
push eax
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40477e
mov eax, dword [0x418548]
cmp eax, dword [esp + 0x14]
jne 0x40477e
push ebp
push ebp
push dword [0x420840]
push dword [0x420848]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.00404093
test eax, eax
je 0x404700
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 [0x417d40], eax
cmp dword [0x417d40], ebp
jne 0x4048bd
xor edi, edi
cmp dword [0x420018], edi
je 0x40489f
cmp byte [esi], 0x5f
jne 0x404788
push esi
call ebx
cmp byte [eax], 0x3d
jne 0x404788
push eax
call ebx
mov esi, eax
cmp byte [esi], 0
je 0x404788
push esi
call fcn.004065ae
test eax, eax
pop ecx
je 0x404893
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 0x41ec00
call edi
push esi
push 0x41f000
call edi
jmp 0x40489f
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 [0x417d40], eax
mov eax, dword [0x4187ac]
test eax, eax
je 0x4048bd
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4048bd
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 0x404898
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov ebp, 0x418145
mov edi, 0x418144
mov esi, 0x417d44
push ebp
push 0x3ff
mov byte [0x418144], 0x22
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.ANSISu_.exe
push edi
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x14], 0
jne 0x404877
push 0x400
push esi
push dword [0x419be8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x417d39]
push 0x409291
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404893
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404877
push 0
push ebp
call fcn.0040663d
push esi
call fcn.00406530
push esi
call fcn.004065ae
add esp, 0x10
test eax, eax
je 0x404893
cmp byte [0x4187b0], 0
mov dword [esp + 0x14], 1
je 0x40483f
push str.___S__
jmp 0x404844
push str.___
push edi
call ebx
push esi
push edi
call ebx
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push edi
call fcn.0040649f
pop ecx
test eax, eax
pop ecx
je 0x40486d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404877
mov eax, dword [str.Error_initializing_uninstaller]
mov dword [0x417d40], eax
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x4047a5
cmp dword [esp + 0x14], 0
jne 0x4048bd
mov eax, dword [str.Error_initializing_uninstaller]
mov dword [0x417d40], eax
jmp 0x4048bd
mov eax, dword [0x420010]
cmp byte [eax + 0x6e], 0
jne 0x4048b3
mov cl, byte [0x4187b0]
mov byte [eax + 0x6e], cl
call fcn.00404972
mov dword [0x4187bc], eax
mov eax, dword [0x420848]
cmp eax, 0xffffffff
je 0x4048ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x417d40]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4048eb
push 0x10
push 0x420040
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [0x4187bc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]