Function at 0x404740
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4330c7
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x43fbfc]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43fbfc]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov edi, dword [esp + 0x180]
push edi
push str.NInstall::setAutoRemove____1__bEnalble:_d_n
push 3
mov esi, ecx
call fcn.00403ef0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.0040c030
lea eax, [esp + 0x34]
push 1
xor ebx, ebx
push eax
mov dword [esp + 0x180], ebx
call fcn.0040cd80
add esp, 8
mov ecx, eax
mov byte [esp + 0x178], 1
call fcn.00419120
push eax
lea ecx, [esp + 0x18]
call fcn.0040c3c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], bl
call fcn.0040c0f0
push str._n5AutoRemove.bin
lea ecx, [esp + 0x18]
call fcn.0040c770
push 1
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0040c500
call fcn.0040d3d0
add esp, 0x10
cmp eax, 1
jne 0x40489d
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebx
call fcn.0040cc70
add esp, 4
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.00419120
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.NInstall::setAutoRemove____2__bDelRet:_d__err:_d_n
push 3
call fcn.00403ef0
add esp, 0x10
cmp ebp, ebx
je 0x40485f
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040ccb0
add esp, 4
cmp edi, ebx
je 0x404a0a
cmp dword [esp + 0x180], ebx
jne 0x4048a8
push str.NInstall::setAutoRemove____3__ret_TRUE_n
push 3
call fcn.00403ef0
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call fcn.0040c0f0
mov eax, 1
jmp 0x404add
cmp edi, ebx
jne 0x4048a8
push str.NInstall::setAutoRemove____4__ret_TRUE_n
jmp 0x404875
lea ecx, [esp + 0x20]
call fcn.0040c030
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 2
call fcn.0040c030
push 0x436648
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 3
call fcn.0040c3c0
push 0x436644
lea ecx, [esp + 0x24]
call fcn.0040c770
mov edx, dword [esi + 0x9c]
push edx
lea eax, [esp + 0x130]
push str._0.16d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040c770
push 0x436644
lea ecx, [esp + 0x24]
call fcn.0040c770
lea ecx, [esp + 0x40]
call fcn.0040e3a0
push 0x100
lea ecx, [esp + 0x24]
mov byte [esp + 0x17c], 4
call fcn.00419120
push eax
push 1
push 5
lea ecx, [esp + 0x50]
call fcn.0040ef80
push eax
lea ecx, [esp + 0x38]
call fcn.0040c3c0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x24]
call fcn.0040c730
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esp + 0x2c]
call fcn.00419120
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a25
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esp + 0x2c]
call fcn.00419120
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NInstall::setAutoRemove____5__::CreateFile___Fail_err:_d_n
push 3
call fcn.00403ef0
add esp, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0x178], 3
call fcn.0040e3f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 2
call fcn.0040c0f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], bl
call fcn.0040c0f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call fcn.0040c0f0
xor eax, eax
jmp 0x404add
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
call fcn.0040c120
lea edi, [eax + 1]
push edi
call fcn.004197c1
add esp, 4
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00419120
push eax
push edi
push ebp
call fcn.0041b0d5
push edi
push ebp
push 0x354e
call fcn.0040d060
add esp, 0x18
push ebx
lea eax, [esp + 0x30]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.NInstall::setAutoRemove____6__bRet:_d__err:_d_n
push 3
call fcn.00403ef0
push ebp
call fcn.0041b0d0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
mov byte [esp + 0x178], 3
call fcn.0040e3f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 2
call fcn.0040c0f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], bl
call fcn.0040c0f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x178], 0xffffffff
call fcn.0040c0f0
mov eax, edi
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0041a1b8
add esp, 0x168
ret 4