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

Disassembly:
sub esp, 0x44
mov eax, dword [0x44f3c0]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [0x451108]
jl 0x416d88
lea esi, [edi + 4]
push 0xa
mov ecx, esi
call fcn.00403200
mov ecx, esi
call fcn.004036a0
lea ecx, [esp + 0x2c]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call fcn.00415bc0
mov eax, dword [0x451120]
test eax, eax
je 0x416c06
mov ecx, dword [edi]
lea edx, [esp + 0x2c]
push edx
push ecx
call eax
add esp, 8
test al, al
je 0x416c06
cmp dword [esp + 0x44], 0x10
jmp 0x416d79
mov eax, dword [0x44f004]
push ebx
mov ebx, 0x10
cmp eax, 2
je 0x416c22
cmp eax, 3
je 0x416c22
cmp dword [edi], 2
jl 0x416c6a
jmp 0x416c37
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x416c30
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], ebx
jae 0x416c45
lea eax, [esp + 0x34]
push eax
push 0x443488
call fcn.004276bf
add eax, 0x40
push eax
call fcn.004275a3
call fcn.004276bf
add eax, 0x40
push eax
call fcn.00427547
add esp, 0x10
push 0
push 0
call fcn.00416030
mov eax, dword [0x44f004]
add esp, 8
test eax, eax
je 0x416cf2
cmp eax, 2
je 0x416cf2
lea ecx, [esp + 0xf]
call fcn.00414f60
call fcn.004161e0
test al, al
je 0x416ccf
mov eax, dword [0x451110]
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 0x416cb6
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
mov eax, dword [0x451110]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x451128], 0
jne 0x416ce7
mov ecx, dword [0x45112c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x416cf2
mov ecx, dword [0x451124]
call fcn.00418f30
mov eax, dword [edi]
cmp eax, 4
jne 0x416d2b
call fcn.0041eb60
test al, al
je 0x416d09
call fcn.0041eb70
jmp 0x416d74
cmp dword [0x451118], 0
je 0x416d02
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00415bc0
lea eax, [esp + 0x10]
push eax
call dword [0x451118]
jmp 0x416d68
cmp eax, 3
jne 0x416d74
cmp dword [0x45111c], 0
je 0x416d52
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00415bc0
lea edx, [esp + 0x10]
push edx
call dword [0x45111c]
jmp 0x416d68
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00415bc0
lea ecx, [esp + 0x10]
push ecx
call fcn.00415a50
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00403ff0
cmp dword [esp + 0x48], ebx
pop ebx
jb 0x416d88
mov edx, dword [esp + 0x30]
push edx
call fcn.00424b3c
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], 0x4433e8
mov ecx, edi
mov dword [edi], 0x4433b0
call fcn.00414c30
mov ecx, edi
call fcn.00415060
mov eax, dword [edi - 4]
mov ecx, dword [eax + 4]
mov dword [ecx + edi - 4], 0x443f64
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004243c9
mov ecx, dword [esp + 0x4c]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00424b47
add esp, 0x44
ret