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

Disassembly:
push 0xffffffffffffffff
push 0x480797
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a2e7c]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1a4]
push edi
push str.NInstall::setAutoRemove____1__bEnalble:_d_n
push 3
mov esi, ecx
call fcn.00415d30
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.004162d0
xor ebx, ebx
push ebx
lea eax, [esp + 0x50]
push 1
push eax
mov dword [esp + 0x1a8], ebx
call fcn.004219a0
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x19c], 1
call fcn.00416550
push eax
lea ecx, [esp + 0x20]
call fcn.00416860
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], bl
call fcn.00416420
push str._n5AutoRemove.bin
lea ecx, [esp + 0x20]
call fcn.00417190
push 1
sub esp, 0x18
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00416dd0
call fcn.00428050
add esp, 0x1c
cmp eax, 1
jne 0x40ae9e
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
call fcn.004215b0
add esp, 4
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.00416550
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.00415d30
add esp, 0x10
cmp ebp, ebx
je 0x40ae60
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004215f0
add esp, 4
cmp edi, ebx
je 0x40b00b
cmp dword [esp + 0x1a4], ebx
jne 0x40aea9
push str.NInstall::setAutoRemove____3__ret_TRUE_n
push 3
call fcn.00415d30
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00416420
mov eax, 1
jmp 0x40b0de
cmp edi, ebx
jne 0x40aea9
push str.NInstall::setAutoRemove____4__ret_TRUE_n
jmp 0x40ae76
lea ecx, [esp + 0x34]
call fcn.004162d0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.004162d0
push 0x488bbc
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a0], 3
call fcn.00416860
push 0x488bb8
lea ecx, [esp + 0x38]
call fcn.00417190
mov edx, dword [esi + 0x120]
push edx
lea eax, [esp + 0x154]
push str._0.16d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x38]
call fcn.00417190
push 0x488bb8
lea ecx, [esp + 0x38]
call fcn.00417190
lea ecx, [esp + 0x64]
call fcn.0042bdf0
push 0x100
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a0], 4
call fcn.00416560
push eax
push 1
push 5
lea ecx, [esp + 0x74]
call fcn.0042cbe0
push eax
lea ecx, [esp + 0x50]
call fcn.00416860
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x38]
call fcn.00417150
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esp + 0x34]
call fcn.00416550
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b026
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
lea ecx, [esp + 0x34]
call fcn.00416550
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b026
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NInstall::setAutoRemove____5__::CreateFile___Fail_err:_d_n
push 3
call fcn.00415d30
add esp, 0xc
lea ecx, [esp + 0x64]
mov byte [esp + 0x19c], 3
call fcn.0042be40
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00416420
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], bl
call fcn.00416420
lea ecx, [esp + 0x1c]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00416420
xor eax, eax
jmp 0x40b0de
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ebx
call fcn.00416460
lea edi, [eax + 1]
push edi
call fcn.0044aa3d
add esp, 4
lea ecx, [esp + 0x34]
mov ebp, eax
call fcn.00416550
push eax
push edi
push ebp
call fcn.0044ca7b
push edi
push ebp
push 0x354e
call fcn.0041e8f0
add esp, 0x18
push ebx
lea eax, [esp + 0x18]
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.00415d30
push ebp
call fcn.0044ca76
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x64]
mov byte [esp + 0x19c], 3
call fcn.0042be40
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00416420
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], bl
call fcn.00416420
lea ecx, [esp + 0x1c]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00416420
mov eax, edi
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.0044b607
add esp, 0x18c
ret 4