Function at 0x40455e
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, 0x41fc60
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 [0x41fc60], 0x22
jne 0x4045a4
add bl, 2
mov esi, 0x41fc61
mov al, byte [esi]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
test al, al
je 0x4045bf
cmp al, bl
je 0x4045bf
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x4045b0
cmp byte [esi], 0
je 0x4045c9
push esi
call edi
mov esi, eax
mov dword [esp + 0x14], esi
cmp byte [esi], 0x20
jne 0x4045d9
push esi
call edi
mov esi, eax
jmp 0x4045cd
cmp byte [esi], 0x2f
jne 0x4045ff
mov dl, byte [esi + 1]
inc esi
cmp dl, 0x53
jne 0x40465c
mov al, byte [esi + 1]
cmp al, 0x20
je 0x4045f2
test al, al
jne 0x40465c
inc byte [0x41821c]
inc esi
inc esi
cmp byte [esi], 0
jne 0x4045cd
push str.NSIS_ERROR
push 0x4214a0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, 0x420860
push 0x400
push edi
push eax
mov dword [0x41ac54], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push edi
call fcn.00406771
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x421ca8], eax
jne 0x4046d4
mov dword [0x417da8], 0x409314
jmp 0x404a99
cmp dl, 0x4e
jne 0x40468f
cmp byte [esi + 1], 0x43
jne 0x40468f
cmp byte [esi + 2], 0x52
jne 0x40468f
cmp byte [esi + 3], 0x43
jne 0x40468f
mov cl, byte [esi + 4]
lea eax, [esi + 4]
cmp cl, 0x20
je 0x404682
test cl, cl
jne 0x40468f
inc byte [0x418c24]
mov esi, eax
jmp 0x4045fa
cmp dl, 0x44
jne 0x4046bb
cmp byte [esi + 1], 0x3d
jne 0x4046bb
and byte [esi - 2], 0
lea eax, [esi + 2]
push eax
push 0x420060
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
jmp 0x4045fa
mov al, byte [esi]
test al, al
je 0x4045fa
cmp al, 0x20
je 0x4045fa
push esi
call edi
mov esi, eax
jmp 0x4046bb
push ebp
push edi
call fcn.0040662b
pop ecx
push ebx
push dword [0x421ca8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x418a20], eax
mov edi, eax
jle 0x404826
mov ebp, 0x418a24
mov eax, 0x200
mov dword [esp + 0x10], edi
cmp edi, eax
jbe 0x40470e
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push ebx
push eax
push dword [esp + 0x18]
push ebp
push dword [0x421ca8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40490a
cmp dword [0x421ca0], ebx
jne 0x404794
push ebp
call fcn.00404222
cmp eax, ebx
pop ecx
je 0x4047f2
mov ecx, dword [0x418214]
cmp eax, edi
mov dword [0x421ca0], ecx
jg 0x40492d
mov cl, byte [0x418a24]
test cl, 4
je 0x404769
inc byte [0x41821c]
cmp byte [0x418c24], 0
jne 0x404826
test cl, 1
je 0x404826
inc byte [0x417dcc]
lea edi, [eax - 4]
cmp dword [esp + 0x10], edi
jbe 0x4047f2
mov dword [esp + 0x10], edi
jmp 0x4047f2
cmp byte [0x41821c], 0
jne 0x4047f2
cmp dword [0x418218], ebx
je 0x4047c6
push 1
push ebx
push ebx
push ebx
push 0x417db0
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4047f2
push 0x417db0
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4047a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x14]
jbe 0x4047f2
push ebx
push 0x404ac7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x6f
push dword [0x41ac54]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x418218], eax
cmp edi, dword [0x418a20]
jge 0x404812
push dword [esp + 0x10]
push ebp
push dword [0x417dd0]
call fcn.00402637
add esp, 0xc
mov dword [0x417dd0], eax
mov eax, dword [esp + 0x10]
add dword [0x418214], eax
sub edi, eax
cmp edi, ebx
jg 0x4046fd
mov eax, dword [0x418218]
cmp eax, ebx
je 0x404836
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x421ca0], ebx
je 0x4048a6
cmp byte [0x417dcc], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
je 0x40488d
push ebx
push ebx
push dword [0x418214]
push dword [0x421ca8]
call edi
lea eax, [esp + 0x10]
push ebx
push eax
lea eax, [esp + 0x1c]
push 4
push eax
push dword [0x421ca8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40492d
mov eax, dword [0x417dd0]
cmp eax, dword [esp + 0x14]
jne 0x40492d
push ebx
push ebx
push dword [0x421ca0]
push dword [0x421ca8]
call edi
call fcn.00404259
test eax, eax
je 0x4048b0
mov eax, dword [0x40924c]
mov dword [0x417da8], eax
cmp dword [0x417da8], ebx
jne 0x404a87
xor eax, eax
cmp dword [0x42147c], eax
je 0x404a69
cmp byte [esi], 0x5f
jne 0x404937
cmp byte [esi + 1], 0x3d
jne 0x404937
cmp byte [esi + 2], al
lea edi, [esi + 2]
je 0x404937
and byte [esi - 1], al
push edi
call fcn.004066a9
test eax, eax
pop ecx
je 0x404a5d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x420060
call esi
push edi
push 0x420460
call esi
jmp 0x404a69
mov eax, dword [0x40924c]
mov dword [0x417da8], eax
mov eax, dword [0x418218]
cmp eax, ebx
je 0x404a87
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x404a87
mov eax, dword [0x40924c]
jmp 0x404a62
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov ebx, 0x418221
mov esi, 0x418220
mov ebp, 0x417dd4
push ebx
push 0x7ff
mov byte [0x418220], 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 0x404a41
push 0x400
push ebp
push dword [0x41ac54]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [eax + 0x417dc9]
push 0x409255
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x404a5d
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404a41
push 0
push ebx
call fcn.0040678b
cmp byte [0x420060], 0
pop ecx
pop ecx
je 0x4049e0
push 0x420060
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4049e7
push ebp
call fcn.0040662b
pop ecx
push ebp
call fcn.004066a9
test eax, eax
pop ecx
je 0x404a5d
push 0x409310
push esi
mov dword [esp + 0x1c], 1
call edi
push dword [esp + 0x18]
push esi
call edi
push 0x40930c
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.0040659a
pop ecx
test eax, eax
pop ecx
je 0x404a37
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404a41
mov eax, dword [0x409250]
mov dword [0x417da8], eax
inc byte [str.ANSISu_.exe]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x404954
cmp dword [esp + 0x14], 0
jne 0x404a87
mov eax, dword [0x409250]
mov dword [0x417da8], eax
jmp 0x404a87
mov eax, dword [0x421474]
cmp byte [eax + 0x62], 0
jne 0x404a7d
mov cl, byte [0x41821c]
mov byte [eax + 0x62], cl
call fcn.00404b3c
mov dword [0x418c28], eax
mov eax, dword [0x421ca8]
pop ebp
cmp eax, 0xffffffff
je 0x404a99
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x417da8]
pop edi
pop esi
pop ebx
test eax, eax
je 0x404ab5
push 0x10
push 0x4214a0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [0x418c28]
call dword [sym.imp.KERNEL32.dll_ExitProcess]