Function at 0x4019c3
Capabilities:
Write file on windows

Disassembly:
push 0xac
mov eax, 0x405be8
call fcn.00405adf
cmp dword [ebp + 8], 0xd
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0xa0], eax
jb 0x401bcc
xor ebx, ebx
lea ecx, [ebp - 0x98]
mov eax, edi
lea edx, [ebp - 0x84]
mov dword [ebp - 0x98], 0x4019ad
mov dword [ebp - 0x94], 0x4019b8
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
call fcn.00404333
mov ecx, dword [edi + 9]
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
add edi, 5
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
push eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x88], eax
add edi, 8
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xb8], esi
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x88]
push eax
push esi
lea edi, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.004041ef
add esp, 0x14
push dword [ebp - 0x74]
mov edi, eax
lea eax, [ebp - 0x98]
push eax
call dword [ebp - 0x94]
push dword [ebp - 0x70]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x74], ebx
call dword [ebp - 0x94]
add esp, 0x10
cmp edi, ebx
mov dword [ebp - 0x70], ebx
je 0x401ac7
or edi, 0xffffffff
or dword [ebp - 4], 0xffffffff
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, edi
jmp 0x401bcf
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x9c], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0xa8], edx
add esi, eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x88]
push eax
push dword [ebp - 0xa8]
mov eax, dword [ebp - 0x9c]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.004043a0
add esp, 0x24
test eax, eax
je 0x401b5a
push dword [ebp - 0x8c]
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 0x90]
xor edi, edi
pop ecx
inc edi
jmp 0x401ab5
mov esi, dword [ebp - 0x88]
push 0
lea eax, [ebp - 0xa4]
push eax
push esi
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401bac
cmp dword [ebp - 0xa4], esi
jne 0x401bac
push dword [ebp - 0x8c]
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
or dword [ebp - 4], 0xffffffff
pop ecx
push dword [ebp - 0x90]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
xor eax, eax
jmp 0x401bcf
push dword [ebp - 0x8c]
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
or dword [ebp - 4], 0xffffffff
pop ecx
push dword [ebp - 0x90]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
or eax, 0xffffffff
call fcn.00405b29
ret