Function at 0x401490
Capabilities:
Delete file
Get common file path
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490be0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x4a8040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401518
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.00402190
mov ecx, dword [ebp - 0x128]
mov edi, bind
mov eax, edi
sub eax, ecx
cmp eax, 0xf
jb 0x40182f
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
push 0xf
cmova eax, dword [ebp - 0x138]
push str.downloader.exe
push ecx
push eax
push ecx
push dword [ebp - 0x144]
lea ecx, [ebp - 0x174]
call fcn.004025c0
cmp dword [ebp - 0x160], 0xf
lea eax, [ebp - 0x174]
mov dword [ebp - 0x13c], 0
cmova eax, dword [ebp - 0x174]
mov dword [ebp - 0x140], eax
call fcn.0043fa90
mov esi, eax
test esi, esi
je 0x4016ad
push dword [ebp - 0x140]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
push 0x49e854
push dword [ebp - 0x140]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0xc
mov dword [ebp - 0x140], eax
test eax, eax
jne 0x401600
push esi
call fcn.0043fa50
add esp, 4
push 0x1010
push str.Update
push str.Unable_to_open_file_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push str.https:__sapphire_project.ru_partners_mod_downloader.exe
push 0x2712
push esi
call fcn.00444540
push 0
push 0x40
push esi
call fcn.00444540
push 0
push 0x51
push esi
call fcn.00444540
push 0x401480
push 0x4e2b
push esi
call fcn.00444540
push dword [ebp - 0x140]
push 0x2711
push esi
call fcn.00444540
push 1
push 0x2d
push esi
call fcn.00444540
add esp, 0x48
push esi
call fcn.0043fad0
push dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea eax, [ebp - 0x13c]
push eax
push 0x200002
push esi
call fcn.0043fa70
mov eax, dword [ebp - 0x144]
add esp, 0x14
test eax, eax
je 0x4016ad
push eax
call fcn.004404c0
add esp, 4
push 0x1010
push str.Update
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
call fcn.0043fa50
add esp, 4
call fcn.0043fc10
mov ecx, dword [ebp - 0x160]
cmp ecx, 0xf
jbe 0x4016f7
mov edx, dword [ebp - 0x174]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048f77f
add esp, 8
mov ecx, dword [ebp - 0x128]
sub edi, ecx
cmp edi, 0xf
jb 0x401834
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
push 0xf
cmova eax, dword [ebp - 0x138]
push str.downloader.exe
push ecx
push eax
push ecx
push dword [ebp - 0x144]
lea ecx, [ebp - 0x15c]
call fcn.004025c0
mov esi, dword [0x591c64]
lea eax, [ebp - 0x15c]
cmp esi, eax
je 0x40179f
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x40177a
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x401770
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401801
mov eax, edx
push ecx
push eax
call fcn.0048f77f
add esp, 8
movups xmm0, xmmword [ebp - 0x15c]
mov ecx, 0xf
mov byte [ebp - 0x15c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x14c]
movq qword [esi + 0x10], xmm0
jmp 0x4017a5
mov ecx, dword [ebp - 0x148]
cmp ecx, 0xf
jbe 0x4017d5
mov edx, dword [ebp - 0x15c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4017cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401801
push ecx
push edx
call fcn.0048f77f
add esp, 8
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x401811
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401807
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401807
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048f77f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f4f0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401310
call fcn.00401310
int3