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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.004012b2
mov ebx, 0x4102f0
push 0
push str.setup.ibt
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x4102f8
mov dword [ebp - 0xc], ebx
call fcn.00402c2b
lea ecx, [ebp - 0x20]
lea eax, [esi + 0x18]
push ecx
push eax
lea eax, [ebp - 0xa8]
mov edi, 0x4102ec
push eax
mov dword [ebp - 0x20], edi
call fcn.0040b834
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00402199
push 0
lea eax, [ebp - 0xa8]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00402980
lea ecx, [ebp - 0x8c]
call fcn.004012e9
test al, al
jne 0x40980a
mov dword [ebp - 0xc], ebx
xor ebx, ebx
push ebx
push str.setup.boot
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x4102f8
call fcn.00402c2b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040b834
add esp, 0xc
lea ecx, [ebp - 0xa8]
push eax
call fcn.0040222b
lea ecx, [ebp - 0xc4]
call fcn.00402199
lea ecx, [ebp - 0x20]
call fcn.00402199
push ebx
lea eax, [ebp - 0xa8]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00402980
lea ecx, [ebp - 0x8c]
call fcn.004012e9
test al, al
jne 0x40980c
mov esi, 0xfffffed3
jmp 0x40992f
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x8c]
push dword [esi + 0xcc]
call fcn.00407d47
lea edi, [esi + 0x88]
lea eax, [ebp - 0x3c]
push edi
push dword [ebp + 8]
push eax
call fcn.0040b834
add esp, 0xc
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00403113
lea ecx, [ebp - 0x64]
call fcn.004012b2
push 2
lea eax, [ebp - 0x3c]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00402980
lea ecx, [ebp - 0x64]
call fcn.004018cf
test al, al
jne 0x409870
mov esi, 0xfffffed2
jmp 0x409910
push dword [esi + 0xc8]
lea ecx, [ebp - 4]
call fcn.00409fbc
push dword [esi + 0xc8]
push ebx
push dword [ebp - 4]
call fcn.0040f040
add esp, 0xc
lea ecx, [ebp - 0x8c]
push dword [esi + 0xc8]
push dword [ebp - 4]
call fcn.004019bd
cmp eax, 0xffffffff
jne 0x4098b0
mov esi, 0xfffffed1
jmp 0x409908
lea ecx, [ebp + 8]
push ebx
push ecx
push eax
push dword [ebp - 4]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4098cb
mov eax, dword [ebp + 8]
jmp 0x4098ce
or eax, 0xffffffff
cmp eax, 0xffffffff
jne 0x4098da
mov esi, 0xfffffed0
jmp 0x409908
lea ecx, [ebp - 0x64]
call fcn.004087f7
cmp dword [esi + 0xc8], eax
lea ecx, [ebp - 0x64]
je 0x40995e
call fcn.004017e2
lea ecx, [ebp - 0x3c]
call fcn.004027e2
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0xfffffecf
lea ecx, [ebp - 4]
call fcn.00409a6c
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x5c]
call fcn.00402199
lea ecx, [ebp - 0x3c]
call fcn.00402199
lea ecx, [ebp - 0xa8]
call fcn.00402199
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x84]
call fcn.00402199
mov eax, esi
jmp 0x4099b5
call fcn.004017e2
lea eax, [ebp - 0xd0]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040b488
push eax
mov ecx, edi
call fcn.0040222b
lea ecx, [ebp - 0xd0]
call fcn.00402199
lea ecx, [ebp - 4]
call fcn.00409a6c
lea ecx, [ebp - 0x64]
call fcn.004087df
lea ecx, [ebp - 0x3c]
call fcn.00402199
lea ecx, [ebp - 0xa8]
call fcn.00402199
lea ecx, [ebp - 0x8c]
call fcn.004087df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4