Function at 0x44a530
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4e42e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, ecx
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], ebp
cmp byte [ebp + 0x98], 0
je 0x44a55a
call dword [sym.imp.KERNEL32.dll_AllocConsole]
xor eax, eax
cmp byte [ebp + 0x99], al
sete al
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44a59d
push 0
push str.Win32ConsoleAppender::append__Unable_to_get_STD_OUTPUT_HANDLE.
call fcn.00432a80
mov ecx, eax
call fcn.00433ca0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00472897
add esp, 0x2c
ret 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov esi, eax
test esi, esi
jne 0x44a5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44a5c0
push esi
push str.Win32ConsoleAppender::append__Error_retrieving_handle_type.
jmp 0x44a727
push edi
mov ecx, ebp
call fcn.0043c7a0
mov ebp, eax
cmp dword [ebp + 0x14], 0x10
mov edi, dword [ebp + 0x10]
jb 0x44a5d6
mov ebp, dword [ebp]
cmp esi, 2
jne 0x44a6d1
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x44a6d1
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [eax + 0x9c], esi
je 0x44a663
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x44a631
push eax
push str.Win32ConsoleAppender::write_console:_GetConsoleScreenBufferInfo_failed
call fcn.00432a80
mov ecx, eax
call fcn.00433ca0
mov dword [esp + 0x18], 7
jmp 0x44a663
movzx eax, word [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 0x9c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x44a663
push eax
push str.Win32ConsoleAppender::write_console:_SetConsoleTextAttribute_failed
call fcn.00432a80
mov ecx, eax
call fcn.00433ca0
mov eax, edi
mov dword [esp + 0x10], 0
sub eax, esi
mov ecx, 0xffff
cmp eax, ecx
push 0
cmovb ecx, eax
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esi + ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
je 0x44a69a
add esi, dword [esp + 0x10]
cmp esi, edi
jne 0x44a663
jmp 0x44a6ad
push 0
push str.Win32ConsoleAppender::write_console__WriteConsole_has_failed.
call fcn.00432a80
mov ecx, eax
call fcn.00433ca0
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x9c], 0
je 0x44a733
push dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x44a733
push eax
push str.Win32ConsoleAppender::write_console:_SetConsoleTextAttribute_failed
jmp 0x44a727
xor esi, esi
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44a720
add esi, dword [esp + 0x10]
cmp esi, edi
jne 0x44a6e0
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00472897
add esp, 0x2c
ret 4
push 0
push str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
call fcn.00432a80
mov ecx, eax
call fcn.00433ca0
mov ecx, dword [esp + 0x38]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00472897
add esp, 0x2c
ret 4