Function at 0x10026250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100df983
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10122064]
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.10088320
add esp, 4
test eax, eax
jne 0x10026499
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.1001e390], 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 0x10026330
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10026412
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 0x1002649f
jmp 0x10026412
cmp byte [edi + 0x1d], 0
je 0x100263f9
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x100263f9
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 edx, dword [ebp - 0x13c]
mov eax, dword [edx + 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 ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x130]
add eax, ecx
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 edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x12c]
push 0
push 0
sub eax, dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x130]
add eax, dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x138]
push dword [eax + 0x14]
call ebx
jmp 0x10026412
push 0
push 0
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x124]
mov dword [ebp - fcn.1001e390], vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp eax, ecx
je 0x10026472
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], eax
cmp ecx, 0x1000
jb 0x10026468
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.10017080
mov ecx, dword [ebp - 0x13c]
add esp, 8
mov eax, dword [ebp - 0x138]
push ecx
push eax
call fcn.1008ab90
add esp, 8
push esi
call fcn.10088340
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.1008a020
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.10087020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.10017150
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov edx, str.wincolor_sink:_::WriteFile___failed._GetLastError__:
push eax
call fcn.10020aa0
add esp, 4
call fcn.10018da0
int3