Function at 0x4275d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434f5e
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4430a4]
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
mov ebx, ecx
mov esi, dword [ebx + 0x18]
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x174], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
je 0x427628
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], 0xfa
mov ecx, dword [ebx + 0x20]
lea edx, [ebp - 0x134]
push edx
push edi
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebx + 0x1c], 0
jne 0x4276ef
cmp dword [ebx + 0x14], 0
je 0x427854
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x160], edx
test edx, edx
je 0x427854
xor edi, edi
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x15c]
push 0
push eax
sub edx, edi
mov dword [ebp - 0x15c], 0
push edx
add ecx, edi
push ecx
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4278dd
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4278dd
mov edx, dword [ebp - 0x160]
add edi, eax
cmp edi, edx
jb 0x4276a0
jmp 0x427854
cmp byte [ebx + 0x1d], 0
je 0x42783b
mov eax, dword [edi + 0x1c]
cmp dword [edi + 0x20], eax
jbe 0x42783b
push 0
push 0
push eax
push dword [ebp - 0x130]
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea ecx, [edi + 8]
push ecx
mov dword [ebp - 0x168], ecx
lea ecx, [ebp - 0x160]
push ecx
lea ecx, [ebx + 0x24]
call fcn.00421d90
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x160]
cmp eax, ecx
jne 0x4277c6
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x161]
push edx
mov dword [ebp - 0x168], eax
lea edx, [ebp - 0x168]
mov eax, dword [ecx]
push edx
push 0x43870f
mov dword [ebp - 0x160], eax
mov ecx, dword [eax + 4]
push ecx
mov dword [ebp - 0x16c], ecx
lea ecx, [ebx + 0x28]
push eax
call fcn.004061a0
mov edx, eax
mov ecx, 0xffffffe
mov eax, dword [ebx + 0x2c]
sub ecx, eax
cmp ecx, 1
jb 0x427921
inc eax
lea ecx, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x160]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x16c]
mov dword [eax], edx
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
push eax
lea edx, [eax + 8]
push edx
lea eax, [ebp - 0x170]
push eax
call fcn.00406b30
mov eax, dword [ebp - 0x170]
movzx edi, word [eax + 0xc]
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x20]
and eax, 0xfff0
or eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
push dword [ebx + 0x14]
call edi
mov eax, dword [ebp - 0x15c]
push 0
push 0
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
sub edx, ecx
mov eax, dword [ebp - 0x130]
push edx
add eax, ecx
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x20]
push dword [ebx + 0x14]
call edi
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x12c]
push 0
push 0
mov ecx, dword [eax + 0x20]
sub edx, ecx
mov eax, dword [ebp - 0x130]
add eax, ecx
push edx
push eax
jmp 0x42784b
push 0
push 0
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 3
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x4278a2
mov edx, dword [ebp - 0x128]
mov eax, ecx
cmp edx, 0x1000
jb 0x427898
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x427898
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d3d2
add esp, 8
push esi
mov dword [ebp - 4], 4
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
test eax, eax
je 0x4278bf
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
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.0042d3e0
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042afa0
sub esp, 0x10
mov byte [ebp - 4], 2
mov ecx, esp
push eax
push str.wincolor_sink:_write_to_file__failed._GetLastError__:
push ecx
call fcn.00403670
add esp, 0xc
lea ecx, [ebp - 0x158]
call fcn.0041ad20
push 0x43fcd4
lea eax, [ebp - 0x158]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.list_T__too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3