Function at 0x4657a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d967d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push dword [ebp + 8]
lea ebx, [edi + 8]
mov ecx, ebx
call fcn.00409b90
push ebx
push str.UninstallFilePath
mov ecx, edi
call fcn.004655d0
mov eax, dword [ebx]
cmp dword [eax - 4], 1
jle 0x4657f9
push dword [eax - 0xc]
mov ecx, ebx
call fcn.00402410
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], 0x4ed624
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x465839
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x465a7b
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x465ab4
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push str._echo_off__r_n
call fcn.00403700
test al, al
jne 0x465883
push 0xc
push str._echo_off__r_n
lea ecx, [ebp - 0x10]
call fcn.00403890
mov byte [ebp - 4], 2
xor ebx, ebx
cmp dword [edi + 0x1c], ebx
jle 0x46592a
call fcn.004046f0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x465ab4
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test ebx, ebx
js 0x465abe
cmp ebx, dword [edi + 0x1c]
jge 0x465abe
mov eax, dword [edi + 0x18]
push dword [eax + ebx*4]
lea eax, [ebp - 0x14]
push str.del___s___r_n
push eax
call fcn.00408d80
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.004025b0
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x465920
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x20]
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x465892
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x465ab4
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
push dword [edi + 8]
mov eax, dword [edi + 4]
push dword [edi]
push eax
push eax
push eax
lea eax, [ebp - 0x14]
push str.:again__r_nif_not_exist___s__goto_end__r_nif_exist___s__del___s___r_ngoto_again__r_n:end__r_nrmDir___s___r_ndel___s___cls
push eax
call fcn.00408d80
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 0x1c
push dword [edi - 0xc]
push edi
call fcn.004025b0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
mov dword [ebp - 0x18], eax
call fcn.004a2092
xor ebx, ebx
add esp, 4
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x28], ebx
test esi, esi
je 0x465a0e
cmp word [esi], bx
je 0x465a0e
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x465a0e
push eax
call fcn.004a2097
add esp, 4
mov ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
push 0
push 0
push eax
push ebx
push 0xffffffffffffffff
push esi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x465a0e
push 0
lea ecx, [ebp - 0x20]
dec eax
push ecx
push eax
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 7
push ebx
call fcn.004a2092
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x465a51
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
mov ecx, ebx
call edi
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x465a79
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 0x4ed624
test eax, eax
je 0x465a9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402720
push 0x8000000b
call fcn.00402720
int3