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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ac24
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x498e04]
xor eax, ebp
mov dword [ebp - 0x44], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f0], ecx
mov eax, dword [ebp + 8]
push eax
push str.NInstall::setAutoRemove____1__bEnalble:_d_n
push 3
call fcn.00415200
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00418580
mov dword [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x1c8]
push ecx
call fcn.00426520
add esp, 0xc
mov dword [ebp - 0x1f4], eax
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1f8]
call fcn.00418800
push eax
lea ecx, [ebp - 0x24]
call fcn.00418b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c8]
call fcn.004186d0
push str._n5AutoRemove.bin
lea ecx, [ebp - 0x24]
call fcn.00419440
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1cc], esp
lea eax, [ebp - 0x24]
push eax
call fcn.00419080
mov dword [ebp - 0x1fc], eax
call fcn.0041dec0
add esp, 0x1c
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 1
jne 0x40b9ba
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041b260
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.00418800
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x2c]
push edx
push str.NInstall::setAutoRemove____2__bDelRet:_d__err:_d_n
push 3
call fcn.00415200
add esp, 0x10
cmp dword [ebp - 0x28], 0
je 0x40b955
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041b2b0
add esp, 4
cmp dword [ebp - 0x2c], 0
jne 0x40b97f
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x1d0]
jmp 0x40bcf5
cmp dword [ebp + 8], 0
jne 0x40b9b8
push str.NInstall::setAutoRemove____3__ret_TRUE_n
push 3
call fcn.00415200
add esp, 8
mov dword [ebp - 0x1d4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x1d4]
jmp 0x40bcf5
jmp 0x40b9f3
cmp dword [ebp + 8], 0
jne 0x40b9f3
push str.NInstall::setAutoRemove____4__ret_TRUE_n
push 3
call fcn.00415200
add esp, 8
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x1d8]
jmp 0x40bcf5
cmp dword [ebp + 8], 0
je 0x40bcd6
lea ecx, [ebp - 0x9c]
call fcn.00418580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.00418580
mov byte [ebp - 4], 3
push 0x482a84
lea ecx, [ebp - 0x9c]
call fcn.00418b10
push 0x482a88
lea ecx, [ebp - 0x9c]
call fcn.00419440
mov ecx, dword [ebp - 0x1f0]
mov edx, dword [ecx + 0x120]
push edx
push str._0.16d
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00419440
push 0x482a88
lea ecx, [ebp - 0x9c]
call fcn.00419440
lea ecx, [ebp - 0x194]
call fcn.0042ac80
mov byte [ebp - 4], 4
push 0x100
lea ecx, [ebp - 0x9c]
call fcn.00418810
push eax
push 1
push 5
lea ecx, [ebp - 0x194]
call fcn.0042ba70
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00418b10
lea edx, [ebp - 0x1b0]
push edx
lea ecx, [ebp - 0x9c]
call fcn.00419400
mov dword [ebp - 0x40], 1
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x24]
call fcn.00418800
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x40bba7
cmp dword [ebp - 0x38], 0xffffffff
jne 0x40bba7
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x24]
call fcn.00418800
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x40bba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NInstall::setAutoRemove____5__::CreateFile___Fail_err:_d_n
push 3
call fcn.00415200
add esp, 0xc
mov dword [ebp - 0x1dc], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x194]
call fcn.0042acd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.004186d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x1dc]
jmp 0x40bcf5
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x9c]
call fcn.00418710
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
add eax, 1
push eax
call fcn.00448fa1
add esp, 4
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
mov dword [ebp - 0x198], ecx
lea ecx, [ebp - 0x9c]
call fcn.00418800
push eax
mov edx, dword [ebp - 0xa0]
add edx, 1
push edx
mov eax, dword [ebp - 0x198]
push eax
call fcn.0044a9b1
add esp, 0xc
mov ecx, dword [ebp - 0xa0]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x198]
push edx
push 0x354e
call fcn.0041c040
add esp, 0xc
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xa0]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x198]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push str.NInstall::setAutoRemove____6__bRet:_d__err:_d_n
push 3
call fcn.00415200
add esp, 0x10
mov edx, dword [ebp - 0x198]
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e4]
push eax
call fcn.0044a9ac
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x1e8], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x194]
call fcn.0042acd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1b0]
call fcn.004186d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.004186d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x1e8]
jmp 0x40bcf5
mov dword [ebp - 0x1ec], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004186d0
mov eax, dword [ebp - 0x1ec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.00449ce2
mov esp, ebp
pop ebp
ret 4