Function at 0x40c290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589978
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x61b000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x2c]
call fcn.0042eca0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407fc0
lea ecx, [ebp - 0x10]
call fcn.0042eca0
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
je 0x40c346
lea eax, [ebp - 0x30]
push eax
call fcn.0040bbb0
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x601ff0
mov ecx, dword [ebp - 0x44]
call fcn.004027c0
push eax
push 0x602004
push str._s__s__s__d__S__s_r_n
lea ecx, [ebp - 0x10]
push ecx
call fcn.00407aa0
add esp, 0x20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0042ecc0
jmp 0x40c39a
lea edx, [ebp - 0x34]
push edx
call fcn.0040bbb0
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._ad_ess_
mov ecx, dword [ebp - 0x4c]
call fcn.004027c0
push eax
push 0x602050
push str._s__s__s__d__s_r_n
lea edx, [ebp - 0x10]
push edx
call fcn.00407aa0
add esp, 0x1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0042ecc0
mov ecx, 0x6409fc
call fcn.0047c500
push eax
lea ecx, [ebp - 0x1c]
call fcn.004321e0
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
call fcn.00406000
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00406000
push eax
lea ecx, [ebp - 0x10]
call fcn.004027c0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x24], eax
push 0x63d88c
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
call fcn.0056216e
add esp, 8
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x40c4e3
mov edx, dword [ebp - 0x24]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00568440
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406000
push eax
lea ecx, [ebp - 0x10]
call fcn.004027c0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp + 0xc], 1
jne 0x40c490
push 2
push 0
push 0
mov eax, dword [0x6404c4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x6404c4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x6404c4]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x40c4ca
push 2
push 0
push 0
mov eax, dword [0x640658]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x640658]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x640658]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005557fe
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00432220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042ecc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret