Function at 0x43ef90
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x128
push 0xffffffffffffffff
push 0x4764a5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x48fe40]
xor eax, ebp
mov dword [ebp + 0x124], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 0x130]
test eax, eax
je 0x43f169
cmp eax, 0xffffffff
je 0x43f169
mov esi, dword [edi + 0xc]
push esi
mov dword [ebp - 0x10], esi
call fcn.0044ce97
add esp, 4
test eax, eax
jne 0x43f18e
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x43f195
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp + 8], 0
mov dword [ebp], vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], 0xfa
mov ecx, dword [edi + 0x14]
lea edx, [ebp]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x10], 0
je 0x43f10c
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x43f10c
test eax, eax
je 0x43f074
push 0
push 0
push eax
push dword [ebp + 4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebx + 8]
movzx eax, word [edi + eax*2 + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x43f09c
mov dword [ebp - 0x10], 7
jmp 0x43f0be
mov eax, dword [ebp + 0x114]
and eax, 0xfff0
or eax, dword [ebp - 0x10]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx eax, word [ebp + 0x114]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
cmp eax, ecx
jbe 0x43f0de
push 0
push 0
sub eax, ecx
push eax
mov eax, dword [ebp + 4]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x10]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp + 8]
cmp eax, ecx
jbe 0x43f128
push 0
push 0
sub eax, ecx
push eax
mov eax, dword [ebp + 4]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x43f128
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 8]
push dword [ebp + 4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 4]
lea eax, [ebp + 0x10]
mov dword [ebp], vtable.fmt::v10::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x43f160
mov edx, dword [ebp + 0xc]
mov eax, ecx
cmp edx, 0x1000
jb 0x43f156
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f1a0
push edx
push ecx
call fcn.0044e17e
add esp, 8
push esi
call fcn.0044cea8
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 + 0x124]
xor ecx, ebp
call fcn.0044e4cb
lea esp, [ebp + 0x128]
pop ebp
ret 4
push 5
call fcn.0044d0c6
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.0044d0c6
call fcn.004532bf
int3