Function at 0x424960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x465a53
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x481014]
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 edi, ecx
mov dword [ebp - 0x138], edi
mov esi, dword [edi + 0x18]
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], esi
call fcn.0042e662
add esp, 4
test eax, eax
jne 0x424b9d
mov dword [ebp - 4], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x124]
mov dword [ebp - fcn.00408c50], vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], 0xfa
mov byte [ebp - 4], 1
lea edx, [ebp - 0x134]
mov ecx, dword [edi + 0x20]
push edx
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x1c], 0
jne 0x424a40
mov eax, dword [edi + 0x14]
test eax, eax
je 0x424b23
push 0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0
push ecx
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424ba3
jmp 0x424b23
cmp byte [edi + 0x1d], 0
je 0x424b0a
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x424b0a
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0
push 0
push eax
push dword [ebp - 0x130]
push dword [edi + 0x14]
call ebx
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 8]
movzx edi, word [edi + eax*2 + 0x24]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x138]
push dword [eax + 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
mov eax, dword [ebp - 0x138]
push dword [eax + 0x14]
call edi
mov eax, dword [ebp - 0x13c]
push 0
push 0
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
sub edx, ecx
mov eax, dword [ebp - 0x130]
add eax, ecx
push edx
push eax
mov eax, dword [ebp - 0x138]
push dword [eax + 0x14]
call ebx
mov eax, dword [ebp - 0x138]
push dword [ebp - 0x20]
push dword [eax + 0x14]
call edi
mov eax, dword [ebp - 0x13c]
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
mov eax, dword [ebp - 0x138]
push dword [eax + 0x14]
call ebx
jmp 0x424b23
push 0
push 0
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x124]
mov ecx, dword [ebp - 0x130]
mov dword [ebp - fcn.00408c50], vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x424b6b
mov edx, dword [ebp - 0x128]
mov eax, ecx
cmp edx, 0x1000
jb 0x424b61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x424bcf
push edx
push ecx
call fcn.0042f33f
add esp, 8
push esi
mov dword [ebp - 4], 3
call fcn.0042e687
add esp, 4
test eax, eax
jne 0x424bd4
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.0042f2f9
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.0042e2d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00415a70
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov edx, str.wincolor_sink:_::WriteFile___failed._GetLastError__:
push eax
call fcn.0041dc80
add esp, 4
call fcn.00416010
call fcn.0044e102
push eax
call fcn.0042e2d6
int3