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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x409298]
add eax, 0x3e8
mov dword [esp + 0x14], eax
mov bl, 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edi, 0x400
push 0x79fb20
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push dword [0x409298]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [esi], 0x22
jne 0x403e7c
add bl, 2
inc esi
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x403e8d
cmp al, bl
je 0x403e93
push esi
call ebp
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x403e84
push esi
call ebp
mov ebx, eax
mov dword [esp + 0x18], ebx
jmp 0x403ea3
push ebx
call ebp
mov ebx, eax
cmp byte [ebx], 0x20
je 0x403e9e
cmp byte [ebx], 0x2f
jne 0x403ef8
inc ebx
cmp byte [ebx], 0x53
jne 0x403ec2
mov al, byte [ebx + 1]
or al, 0x20
cmp al, 0x20
jne 0x403ec2
inc byte [0x796a38]
cmp dword [ebx], 0x4352434e
jne 0x403ed9
mov al, byte [ebx + 4]
or al, 0x20
cmp al, 0x20
jne 0x403ed9
inc byte [0x796a39]
cmp word [ebx], 0x3d44
jne 0x403f52
and byte [ebx - 2], 0
add ebx, 2
push ebx
push dword [0x40929c]
call sub.KERNEL32.dll_lstrcpyA
mov ebx, 0x40b2d8
push str.NSIS_ERROR
push 0x79ff80
call sub.KERNEL32.dll_lstrcpyA
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [0x798f00], eax
push dword [0x4092a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push dword [0x4092a4]
call fcn.004065d4
cmp eax, 0xffffffff
mov dword [0x7a0794], eax
jne 0x403f5f
mov dword [0x795bd8], str.Error_launching_installer
jmp 0x4041d2
push ebx
call ebp
mov ebx, eax
mov al, byte [ebx]
or al, 0x20
cmp al, 0x20
jne 0x403f4d
jmp 0x403ea3
push dword [0x4092a4]
call fcn.00406453
push 0
push dword [0x7a0794]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x7a078c], eax
test esi, esi
jle 0x4040c3
mov ebp, 0x796a40
mov eax, 0x200
mov edi, esi
cmp esi, eax
jbe 0x403f99
mov edi, eax
push edi
push 0x795be0
call fcn.00403d62
test eax, eax
je 0x4040a0
cmp dword [0x7a0784], 0
jne 0x404018
push 0x795be0
call fcn.004038b0
test eax, eax
je 0x404055
mov ecx, dword [0x7a0780]
cmp eax, esi
mov dword [0x7a0784], ecx
jg 0x4040dd
mov cl, byte [0x795be0]
test cl, 4
je 0x403fec
inc byte [0x796a38]
cmp byte [0x796a39], 0
je 0x403ffe
test cl, 8
je 0x4040c3
test cl, 1
je 0x4040c3
inc byte [0x795de0]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x404055
mov edi, esi
jmp 0x404055
cmp byte [0x796a38], 0
jne 0x404055
cmp dword [0x796230], 0
jne 0x40408c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x404055
push str.verifying_installer:__d__
push 0x403dad
push 0
push 0x6f
push dword [0x798f00]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x796230], eax
cmp esi, dword [0x7a078c]
jge 0x404073
push edi
push 0x795be0
push dword [0x7961e8]
call fcn.00401dea
mov dword [0x7961e8], eax
add dword [0x7a0780], edi
sub esi, edi
test esi, esi
jg 0x403f8c
jmp 0x4040c3
push ebp
call dword [sym.imp.USER32.dll_DispatchMessageA]
xor eax, eax
push 1
push eax
push eax
push eax
push ebp
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x404085
jmp 0x404055
mov eax, dword [0x796230]
mov dword [0x795bd8], 0x4090a8
test eax, eax
je 0x4041c1
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4041c1
mov eax, dword [0x796230]
xor esi, esi
cmp eax, esi
je 0x4040d5
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x7a0784], esi
jne 0x4040ec
mov dword [0x795bd8], str.Installer_corrupted_or_incomplete._r_n_r_nThis_could_be_the_result_of_a_failed_download_or_corruption_from_a_virus._r_n_r_nIf_desperate__try_the__NCRC_command_line_switch__NOT_recommended_
jmp 0x4041c1
cmp byte [0x795de0], 0
je 0x40411c
push esi
push dword [0x7a0780]
call fcn.00403d94
lea eax, [esp + 0x14]
push 4
push eax
call fcn.00403d62
test eax, eax
je 0x4040dd
mov eax, dword [0x7961e8]
cmp eax, dword [esp + 0x14]
jne 0x4040dd
push esi
push dword [0x7a0784]
call fcn.00403d94
call fcn.004038ea
cmp eax, esi
mov dword [0x795bd8], eax
jne 0x4041c1
xor eax, eax
cmp dword [0x79ff4c], eax
je 0x4041a3
cmp byte [ebx], al
mov esi, ebx
je 0x404158
inc esi
cmp byte [esi], 0
jne 0x40414a
cmp esi, ebx
jb 0x404229
cmp byte [esi], 0x5f
jne 0x404169
cmp byte [esi + 1], 0x3f
jne 0x404169
cmp byte [esi + 2], 0x3d
je 0x40416e
dec esi
cmp esi, ebx
jae 0x404158
cmp esi, ebx
jb 0x404229
and byte [esi - 1], 0
add esi, 3
push esi
call fcn.004064d2
test eax, eax
je 0x40433c
push esi
push dword [0x40929c]
call sub.KERNEL32.dll_lstrcpyA
push esi
push dword [0x4092a0]
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [0x79ff40]
cmp byte [eax + 0x42], 0
jne 0x4041b7
mov cl, byte [0x796a38]
mov byte [eax + 0x42], cl
call fcn.0040434b
mov dword [0x796a3c], eax
mov eax, dword [0x7a0794]
cmp eax, 0xffffffff
je 0x4041d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4090a4]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
je 0x4041e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x795bd8]
test eax, eax
je 0x4041f8
push 0x10
push eax
call fcn.004063a0
cmp byte [0x40aed8], 0
je 0x40420d
push 1
push 0x40aed8
call fcn.004063cb
mov eax, dword [0x79ff58]
test eax, eax
je 0x40421d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x796a3c]
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, 0x796239
mov esi, 0x796238
mov ebp, 0x795de8
push 0x79fb20
push ebx
mov byte [0x796238], 0x22
call sub.KERNEL32.dll_lstrcpyA
push str.ANSISu_.exe
push esi
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x14], 0
jne 0x40431c
push 0x400
push ebp
push dword [0x798f00]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x795ddd]
push 0x409195
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40433c
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40431c
push 0
push ebx
call fcn.004065f0
mov eax, dword [0x40929c]
cmp byte [eax], 0
je 0x4042c7
push eax
push ebp
call sub.KERNEL32.dll_lstrcpyA
jmp 0x4042cd
push ebp
call fcn.00406453
push ebp
call fcn.004064d2
test eax, eax
je 0x40433c
push 0x4091c8
push esi
mov dword [esp + 0x1c], 1
call edi
push dword [esp + 0x18]
push esi
call edi
push str.___
push esi
call edi
push ebp
push esi
call edi
push 0x79fb20
push esi
call fcn.0040632a
test eax, eax
je 0x404312
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40431c
mov eax, dword [str.Error_launching_installer]
mov dword [0x795bd8], eax
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x404246
cmp dword [esp + 0x14], 0
jne 0x4041c1
mov eax, dword [str.Error_launching_installer]
mov dword [0x795bd8], eax
jmp 0x4041c1