Function at 0x44a980
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x49e280]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [0x4a1fa8]
jl 0x44ab68
lea esi, [edi + 4]
push 0xa
mov ecx, esi
call fcn.00431be0
mov ecx, esi
call fcn.00409590
lea ecx, [esp + 0x2c]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call fcn.00431d00
mov eax, dword [0x4a1fc0]
test eax, eax
je 0x44a9e6
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
push ecx
call eax
add esp, 8
test al, al
je 0x44a9e6
cmp dword [esp + 0x44], 0x10
jmp 0x44ab59
mov eax, dword [0x49e004]
push ebx
mov ebx, 0x10
cmp eax, 2
je 0x44aa02
cmp eax, 3
je 0x44aa02
cmp dword [edi], 2
jl 0x44aa4a
jmp 0x44aa17
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x44aa10
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x44aa25
lea eax, [esp + 0x34]
push eax
push 0x47c8cc
call fcn.0045b079
add eax, 0x40
push eax
call fcn.0045af5d
call fcn.0045b079
add eax, 0x40
push eax
call fcn.00459e85
add esp, 0x10
push 0
push 0
call fcn.0044a220
mov eax, dword [0x49e004]
add esp, 8
test eax, eax
je 0x44aad2
cmp eax, 2
je 0x44aad2
lea ecx, [esp + 0xf]
call fcn.00449d30
call fcn.0044a3d0
test al, al
je 0x44aaaf
mov eax, dword [0x4a1fb0]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x44aa96
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [0x4a1fb0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x4a1fc8], 0
jne 0x44aac7
mov ecx, dword [0x4a1fcc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x44aad2
mov ecx, dword [0x4a1fc4]
call fcn.0044fd00
mov eax, dword [edi]
cmp eax, 4
jne 0x44ab0b
call fcn.00453c10
test al, al
je 0x44aae9
call fcn.00453c20
jmp 0x44ab54
cmp dword [0x4a1fb8], 0
je 0x44aae2
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00431d00
lea eax, [esp + 0x10]
push eax
call dword [0x4a1fb8]
jmp 0x44ab48
cmp eax, 3
jne 0x44ab54
cmp dword [0x4a1fbc], 0
je 0x44ab32
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00431d00
lea edx, [esp + 0x10]
push edx
call dword [0x4a1fbc]
jmp 0x44ab48
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00431d00
lea ecx, [esp + 0x10]
push ecx
call fcn.00449ff0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004011a0
cmp dword [esp + 0x48], ebx
pop ebx
jb 0x44ab68
mov edx, dword [esp + 0x30]
push edx
call fcn.00457c05
add esp, 4
mov eax, dword [edi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea esi, [edi + 0x50]
lea edi, [esi - 0x48]
mov dword [edx + esi - 0x4c], 0x48f53c
mov ecx, edi
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.00432fc0
mov ecx, edi
call fcn.00432f50
mov eax, dword [edi - 4]
mov ecx, dword [eax + 4]
mov dword [ecx + edi - 4], 0x47d5b4
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004572dd
mov ecx, dword [esp + 0x4c]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00457c10
add esp, 0x44
ret