Function at 0x406a00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b763
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x461c88]
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
xor ecx, ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ecx
mov dword [edi], vtable.Log.0
mov dword [ebp - 4], ecx
cmp byte [0x4640f0], cl
jne 0x406a56
cmp byte [edi + 0xb9], cl
jne 0x406a56
cmp byte [edi + 0xb8], cl
je 0x406a71
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 8]
call fcn.00409260
cmp dword [eax + 0x10], 0
mov ecx, 1
jbe 0x406a71
mov bl, cl
jmp 0x406a73
xor bl, bl
test cl, 1
je 0x406a89
cmp dword [ebp - 0x14], 0x10
jb 0x406a89
push dword [ebp - 0x28]
call fcn.00419e3e
add esp, 4
test bl, bl
je 0x406c34
cmp dword [0x4640f4], 0
je 0x406af4
cmp byte [0x4640f0], 0
je 0x406af4
cmp byte [0x4612a6], 0
je 0x406af4
cmp byte [edi + 0xb8], 0
lea eax, [ebp - 0x58]
lea ecx, [edi + 8]
push eax
je 0x406ad3
call fcn.00409260
mov ecx, dword [0x4640f4]
push eax
mov edx, dword [ecx]
mov byte [ebp - 4], 1
call dword [edx + 4]
jmp 0x406ae8
call fcn.00409260
mov ecx, dword [0x4640f4]
push eax
mov edx, dword [ecx]
mov byte [ebp - 4], 2
call dword [edx + 8]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004016f0
push 0xa
lea ecx, [edi + 0x18]
call fcn.00408970
lea ecx, [edi + 0x18]
call fcn.00414020
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0040b8a0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
je 0x406b5e
push 1
push 0x44fa50
lea ecx, [ebp - 0x40]
call fcn.00407ba0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.004079f0
push 2
push 0x44fa54
mov ecx, eax
call fcn.00407ba0
cmp byte [edi + 0xb9], 0
push 6
je 0x406b70
push str.FATAL
jmp 0x406b85
cmp byte [edi + 0xb8], 0
je 0x406b80
push str.ERROR
jmp 0x406b85
push str.DEBUG
lea ecx, [ebp - 0x40]
call fcn.00407ba0
lea eax, [ebp - 0x58]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00409260
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004079f0
cmp dword [ebp - 0x44], 0x10
mov byte [ebp - 4], 4
jb 0x406bc1
push dword [ebp - 0x58]
call fcn.00419e3e
add esp, 4
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00402360
call fcn.00409580
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
jb 0x406c0f
push dword [ebp - 0x28]
call fcn.00419e3e
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x406c7b
push dword [ebp - 0x40]
call fcn.00419e3e
add esp, 4
jmp 0x406c7b
lea eax, [ebp - 0x28]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00409260
cmp dword [eax + 0x10], 0
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x406c5a
push dword [ebp - 0x28]
call fcn.00419e3e
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test bl, bl
je 0x406c7b
push str.Unexpected_string_length_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esi, 0x68
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00406930
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00418fad
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.0041a5c9
mov esp, ebp
pop ebp
ret