Function at 0x408f90
Capabilities:
Delete file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x41398c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push edi
mov edi, ecx
mov dword [ebp - 0x808], edi
call esi
test eax, eax
jne 0x408fce
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call esi
test eax, eax
je 0x408fce
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4090b9
mov ecx, dword [str.auto]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409049
mov edx, dword [edi + 0x10]
push edx
lea eax, [ebp - 0x804]
push 0x3fc
push eax
call fcn.00405640
push 0x40e68c
lea ecx, [ebp - 0x804]
push 0x3fc
push ecx
call fcn.00405590
lea edx, [ebp - 0x804]
push edx
call fcn.00405690
mov eax, dword [0x41393c]
mov edx, dword [ebx]
push eax
mov eax, dword [0x415c40]
push 1
push 0
lea ecx, [ebp - 0x804]
push ecx
push edx
push eax
call fcn.00404820
add esp, 0x34
mov dword [ebx + 4], eax
jmp 0x409053
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebx + 4]
push 0x40e688
push edx
call dword [sym.imp.msvcrt.dll__wfopen]
add esp, 8
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4090b2
push 1
push eax
call dword [sym.imp.msvcrt.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.msvcrt.dll__dup2]
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebx + 0xc]
push 0
add edi, 0x20
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 4
add eax, 0x20
push 0
push eax
call dword [sym.imp.msvcrt.dll_setvbuf]
mov edi, dword [ebp - 0x808]
add esp, 0x18
jmp 0x4090b9
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x409197
mov ecx, dword [str.auto]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409134
mov edx, dword [edi + 0x10]
push edx
lea eax, [ebp - 0x804]
push 0x3fc
push eax
call fcn.00405640
push str._stderr
lea ecx, [ebp - 0x804]
push 0x3fc
push ecx
call fcn.00405590
lea edx, [ebp - 0x804]
push edx
call fcn.00405690
mov eax, dword [0x41393c]
mov edx, dword [ebx]
push eax
mov eax, dword [0x415c40]
push 1
push 0
lea ecx, [ebp - 0x804]
push ecx
push edx
push eax
call fcn.00404820
add esp, 0x34
mov dword [ebx + 8], eax
jmp 0x40913e
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebx + 8]
push 0x40e688
push edx
call dword [sym.imp.msvcrt.dll__wfopen]
add esp, 8
mov dword [ebx + 0x10], eax
test eax, eax
je 0x40918e
push 2
push eax
call dword [sym.imp.msvcrt.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.msvcrt.dll__dup2]
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebx + 0x10]
add edi, 0x40
push 0
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 4
push 0
add eax, 0x40
push eax
jmp 0x4091d4
mov dword [ebx + 4], 0
jmp 0x4091dd
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4091dd
push 2
push eax
call dword [sym.imp.msvcrt.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.msvcrt.dll__dup2]
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov esi, dword [ebx + 0xc]
add edi, 0x40
push 0
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push 4
push 0
add ecx, 0x40
push ecx
call dword [sym.imp.msvcrt.dll_setvbuf]
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040c2f4
mov esp, ebp
pop ebp
ret