Function at 0x403570
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605677
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push 0
push 0
call fcn.00401220
add esp, 0x14
mov dword [ebp - 0x18], 7
mov esi, eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x2c], ax
push eax
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407d30
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push eax
call fcn.00401220
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp esi, eax
ja 0x403620
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x40362d
push 0
sub esi, eax
lea ecx, [ebp - 0x2c]
push esi
call fcn.0040a570
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6b26b0]
cmp eax, dword [ecx + 4]
jle 0x4036be
push 0x6b26b0
call fcn.00569912
add esp, 4
cmp dword [0x6b26b0], 0xffffffff
jne 0x4036be
push 0x690204
mov ecx, 0x6b2650
call fcn.00404590
push str.INFO
mov ecx, 0x6b2668
mov byte [ebp - 4], 1
call fcn.00404590
push str.WARN
mov ecx, 0x6b2680
mov byte [ebp - 4], 2
call fcn.00404590
push str.ERROR
mov ecx, 0x6b2698
mov byte [ebp - 4], 3
call fcn.00404590
push 0x60d760
mov byte [ebp - 4], 0
call fcn.00569da0
add esp, 4
push 0x6b26b0
call fcn.005698d3
add esp, 4
push 0xb0
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.005d2630
add esp, 4
lea ecx, [ebp - 0xdc]
call fcn.00404ab0
mov edx, 0x5b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xcc]
call fcn.0040be70
lea edx, [edi + 0x50]
mov ecx, eax
call fcn.0040c140
mov edx, 0x28
mov ecx, eax
call fcn.0040be70
mov esi, eax
test esi, esi
jne 0x403713
xor ecx, ecx
jmp 0x40371a
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
mov edi, 0x30
and eax, 0xffffff3f
or eax, 0x100
mov dword [ecx + 0x14], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov word [eax + esi + 0x40], di
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ecx
push 0
lea eax, [ebp - 0xec]
push 5
push eax
call fcn.00566a83
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0040bd90
add esp, 4
mov ecx, eax
call fcn.00405220
mov ecx, eax
call fcn.0040c3c0
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
or dword [ebp + eax - 0xb8], 8
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xffffff3f
or eax, 0x100
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov word [ebp + eax - 0x8c], di
lea eax, [ebx + ebx*2]
lea esi, [eax*8 + 0x6b2650]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ecx
push 0
lea eax, [ebp - 0xec]
push 7
push eax
call fcn.00566a83
add esp, 0xc
lea ecx, [ebp - 0xcc]
mov edx, eax
call fcn.0040bd90
add esp, 4
mov ecx, eax
call fcn.00405220
lea edx, [edi - 0x10]
mov ecx, eax
call fcn.0040be70
mov edx, esi
mov ecx, eax
call fcn.0040c140
lea edx, [edi - 0x10]
mov ecx, eax
call fcn.0040be70
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
mov eax, dword [eax + 4]
and dword [ebp + eax - 0xb8], 0xfffffff7
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xfffff3ff
lea edx, [ebp - 0x2c]
or eax, 0x200
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0x14]
and eax, 0xfffffebf
or eax, 0x80
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0xcc]
call fcn.0040c140
push eax
call fcn.0040c650
add esp, 4
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0xdc]
push eax
call fcn.004049a0
cmp dword [eax + 0x14], 8
jb 0x4038af
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xe0]
cmp eax, 8
jb 0x4038d4
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.00408960
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
xor edx, edx
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004023f0
lea ecx, [ebp - 0x74]
call fcn.004049c0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.005669fb
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, 8
jb 0x40392e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00408960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret