Function at 0x40b215
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a708
push 0x443e16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffec4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x148]
mov cl, byte [eax + 8]
mov byte [ebp - 0x2c], cl
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x140], 0xd
mov byte [ebp - 0x13f], 0xa
mov byte [ebp - 0x30], 0x22
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x144], 0
jmp 0x40b2aa
mov edx, dword [ebp - 0x144]
add edx, 1
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x144]
cmp ecx, dword [eax + 4]
jge 0x40b459
push 0x104
push 0
lea edx, [ebp - 0x13c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x104
jbe 0x40b2fd
mov dword [ebp - 0x28], 0xffffffba
jmp 0x40b49a
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0
jmp 0x40b327
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp dword [ebp - 0x24], eax
jae 0x40b3b3
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x24]
movsx eax, byte [edx]
movsx ecx, byte [ebp - 0x30]
cmp eax, ecx
jne 0x40b390
cmp dword [ebp - 0x24], 0
je 0x40b390
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
sub eax, 1
cmp dword [ebp - 0x24], eax
je 0x40b390
push 1
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
push 1
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x40b31e
lea edx, [ebp - 0x13c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b3f5
mov dword [ebp - 0x28], 0xffffffc4
jmp 0x40b49a
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x38]
je 0x40b409
mov dword [ebp - 0x28], 0xffffffc4
jmp 0x40b49a
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax + 4]
sub ecx, 1
cmp dword [ebp - 0x144], ecx
je 0x40b454
push 0
lea edx, [ebp - 0x1c]
push edx
push 1
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b445
mov dword [ebp - 0x28], 0xffffffc4
jmp 0x40b49a
cmp dword [ebp - 0x1c], 1
je 0x40b454
mov dword [ebp - 0x28], 0xffffffc4
jmp 0x40b49a
jmp 0x40b29b
mov eax, 1
test eax, eax
je 0x40b49a
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 2
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b48d
mov dword [ebp - 0x28], 0xffffffc4
jmp 0x40b49a
cmp dword [ebp - 0x1c], 2
je 0x40b49a
mov dword [ebp - 0x28], 0xffffffc4
mov dword [ebp - 4], 0xffffffff
call fcn.0040b4a8
jmp 0x40b4bd