Function at 0x406ba0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a443
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45fc48]
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 [0x4620b0], cl
jne 0x406bf6
cmp byte [edi + 0xb9], cl
jne 0x406bf6
cmp byte [edi + 0xb8], cl
je 0x406c11
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 8]
call fcn.00409350
cmp dword [eax + 0x10], 0
mov ecx, 1
jbe 0x406c11
mov bl, cl
jmp 0x406c13
xor bl, bl
test cl, 1
je 0x406c29
cmp dword [ebp - 0x14], 0x10
jb 0x406c29
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
test bl, bl
je 0x406dd4
cmp dword [0x4620b4], 0
je 0x406c94
cmp byte [0x4620b0], 0
je 0x406c94
cmp byte [0x45f2a6], 0
je 0x406c94
cmp byte [edi + 0xb8], 0
lea eax, [ebp - 0x58]
lea ecx, [edi + 8]
push eax
je 0x406c73
call fcn.00409350
mov ecx, dword [0x4620b4]
push eax
mov edx, dword [ecx]
mov byte [ebp - 4], 1
call dword [edx + 4]
jmp 0x406c88
call fcn.00409350
mov ecx, dword [0x4620b4]
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.00408a90
lea ecx, [edi + 0x18]
call fcn.00406190
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.0040b590
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 4
je 0x406cfe
push 1
push 0x44d980
lea ecx, [ebp - 0x40]
call fcn.00407cc0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00407b10
push 2
push 0x44d984
mov ecx, eax
call fcn.00407cc0
cmp byte [edi + 0xb9], 0
push 6
je 0x406d10
push str.FATAL
jmp 0x406d25
cmp byte [edi + 0xb8], 0
je 0x406d20
push str.ERROR
jmp 0x406d25
push str.DEBUG
lea ecx, [ebp - 0x40]
call fcn.00407cc0
lea eax, [ebp - 0x58]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00409350
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00407b10
cmp dword [ebp - 0x44], 0x10
mov byte [ebp - 4], 4
jb 0x406d61
push dword [ebp - 0x58]
call fcn.00418b1b
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.00402350
call fcn.00409670
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
jb 0x406daf
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x406e1b
push dword [ebp - 0x40]
call fcn.00418b1b
add esp, 4
jmp 0x406e1b
lea eax, [ebp - 0x28]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.00409350
cmp dword [eax + 0x10], 0
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x406dfa
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test bl, bl
je 0x406e1b
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.00406ad0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00417c8a
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.004192a9
mov esp, ebp
pop ebp
ret