Function at 0x40c050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f8fd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5c84bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5cdbf0
lea ecx, [ebp - 0x28]
call fcn.00403210
mov esi, accept
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub eax, ecx
cmp eax, 0xf
jb 0x40c318
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xf
cmovae eax, dword [ebp - 0x28]
push str._NoQuestion.bin
push ecx
push eax
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
call fcn.00404970
mov byte [ebp - 4], 1
mov eax, esi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x10
jb 0x40c318
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x10
cmovae eax, dword [ebp - 0x28]
push str._StealthMode.bin
push ecx
push eax
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
call fcn.00404970
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
sub esi, ecx
cmp esi, 0xb
jb 0x40c318
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xb
cmovae eax, dword [ebp - 0x28]
push str._NoHook.bin
push ecx
push eax
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x40]
call fcn.00404970
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x70]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call esi
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0
cmovae ecx, dword [ebp - 0x58]
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov dword [ebp - 0x74], eax
call esi
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
mov ebx, eax
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push 1
push 0x5bc730
push dword [ebp - 0x74]
call esi
push 0
lea eax, [ebp - 0x78]
push eax
push 1
push 0x5bc730
push ebx
call esi
push 0
lea eax, [ebp - 0x78]
push eax
push 1
push 0x5bc730
push edi
call esi
push dword [ebp - 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push edi
call esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40c21a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c210
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c31d
push edx
push ecx
call fcn.00532001
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40c268
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c25e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c31d
push edx
push ecx
call fcn.00532001
add esp, 8
mov edx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40c2b2
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c31d
push edx
push ecx
call fcn.00532001
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40c2fc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c31d
push edx
push ecx
call fcn.00532001
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531ff3
mov esp, ebp
pop ebp
ret
call fcn.00401220
call fcn.005375cf
int3