Function at 0x465140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8c9d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x514080]
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.00409950
push ebx
push str.UninstallFilePath
mov ecx, edi
call fcn.00464f70
mov eax, dword [ebx]
cmp dword [eax - 4], 1
jle 0x465199
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], 0x4ec614
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x4651d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x46541b
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x465454
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
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 0x465223
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 0x4652ca
call fcn.004046f0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x465454
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x18]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test ebx, ebx
js 0x46545e
cmp ebx, dword [edi + 0x1c]
jge 0x46545e
mov eax, dword [edi + 0x18]
push dword [eax + ebx*4]
lea eax, [ebp - 0x14]
push str.del___s___r_n
push eax
call fcn.00408b50
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 0x4652c0
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x20]
inc ebx
cmp ebx, dword [edi + 0x1c]
jl 0x465232
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x465454
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
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.00408b50
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.004a18f2
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 0x4653ae
cmp word [esi], bx
je 0x4653ae
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 0x4653ae
push eax
call fcn.004a18f7
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 0x4653ae
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.004a18f2
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 0x4653f1
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
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 0x465419
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], 0x4ec614
test eax, eax
je 0x46543e
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