Function at 0x406d90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a7a3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45fc58]
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 [0x4620d0], cl
jne 0x406de6
cmp byte [edi + 0xb9], cl
jne 0x406de6
cmp byte [edi + 0xb8], cl
je 0x406e01
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 8]
call fcn.004095d0
cmp dword [eax + 0x10], 0
mov ecx, 1
jbe 0x406e01
mov bl, cl
jmp 0x406e03
xor bl, bl
test cl, 1
je 0x406e19
cmp dword [ebp - 0x14], 0x10
jb 0x406e19
push dword [ebp - 0x28]
call fcn.00418e43
add esp, 4
test bl, bl
je 0x406fc4
cmp dword [0x4620d4], 0
je 0x406e84
cmp byte [0x4620d0], 0
je 0x406e84
cmp byte [0x45f2a6], 0
je 0x406e84
cmp byte [edi + 0xb8], 0
lea eax, [ebp - 0x58]
lea ecx, [edi + 8]
push eax
je 0x406e63
call fcn.004095d0
mov ecx, dword [0x4620d4]
push eax
mov edx, dword [ecx]
mov byte [ebp - 4], 1
call dword [edx + 4]
jmp 0x406e78
call fcn.004095d0
mov ecx, dword [0x4620d4]
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.004016e0
push 0xa
lea ecx, [edi + 0x18]
call fcn.00408ce0
lea ecx, [edi + 0x18]
call fcn.00406380
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.0040b7e0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
je 0x406eee
push 1
push 0x44d998
lea ecx, [ebp - 0x40]
call fcn.00407f10
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00407d60
push 2
push 0x44d99c
mov ecx, eax
call fcn.00407f10
cmp byte [edi + 0xb9], 0
push 6
je 0x406f00
push str.FATAL
jmp 0x406f15
cmp byte [edi + 0xb8], 0
je 0x406f10
push str.ERROR
jmp 0x406f15
push str.DEBUG
lea ecx, [ebp - 0x40]
call fcn.00407f10
lea eax, [ebp - 0x58]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.004095d0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00407d60
cmp dword [ebp - 0x44], 0x10
mov byte [ebp - 4], 4
jb 0x406f51
push dword [ebp - 0x58]
call fcn.00418e43
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.004098f0
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
jb 0x406f9f
push dword [ebp - 0x28]
call fcn.00418e43
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x40700b
push dword [ebp - 0x40]
call fcn.00418e43
add esp, 4
jmp 0x40700b
lea eax, [ebp - 0x28]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.004095d0
cmp dword [eax + 0x10], 0
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x406fea
push dword [ebp - 0x28]
call fcn.00418e43
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test bl, bl
je 0x40700b
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.00406cc0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00417fb2
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.004195d9
mov esp, ebp
pop ebp
ret