Function at 0x4068a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a6b8
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x618190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movdqu xmmword [ebp - 0x24], xmm0
push 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0043b7fd
add esp, 4
test eax, eax
jne 0x406912
call fcn.00572796
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
push 0x627e2c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x627e20], 0
je 0x40695c
push 0x627e10
lea ecx, [ebp - 0x24]
call fcn.00415160
mov ecx, 0x627e10
call fcn.004165c0
mov eax, dword [0x627e24]
mov ecx, 0x627e24
call dword [eax + 0x14]
mov edi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], eax
test edi, edi
jle 0x406ca0
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x24]
call fcn.00416a80
mov ecx, eax
call fcn.004179f0
mov esi, dword [eax]
test esi, esi
je 0x4069a8
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov ecx, edx
mov eax, dword [esi + 8]
and edx, 1
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x90]
add ecx, dword [eax + edx*8 + 4]
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x94], eax
cmp eax, edi
jl 0x406982
test ecx, ecx
je 0x406c9e
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0xa0], eax
call fcn.00553420
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x406aaf
mov dword [ebp - 0x90], eax
lea ecx, [ecx]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00416a80
mov ecx, eax
call fcn.004179f0
mov esi, dword [eax]
test esi, esi
je 0x406a36
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov ecx, edx
mov eax, dword [esi + 8]
and edx, 1
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
push dword [eax + edx*8]
call fcn.005534b2
mov eax, dword [ebp - 0x90]
add esp, 4
inc eax
mov dword [ebp - 0x90], eax
cmp eax, edi
jl 0x406a10
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push str.CDebugLog::FlushLogToFile_malloc_size___d_failed
push eax
push 0x6279dc
call fcn.004134e0
add esp, 0x10
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x88]
call fcn.00402150
jmp 0x406c9b
xor esi, esi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x9c], esi
push esi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00416a80
mov ecx, eax
call fcn.004179f0
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x406aeb
xor eax, eax
jmp 0x406aed
mov eax, dword [ecx]
mov edx, dword [edx + 8]
mov ecx, edx
mov dword [ebp - 0x8c], eax
and edx, 1
mov eax, dword [eax + 8]
dec eax
shr ecx, 1
and ecx, eax
mov eax, dword [ebp - 0x8c]
push esi
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x24]
lea eax, [eax + edx*8]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00416a80
mov ecx, eax
call fcn.004179f0
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x406b40
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov edx, dword [edx + 8]
dec ecx
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x8c], eax
mov eax, edx
shr eax, 1
and edx, 1
and ecx, eax
mov eax, dword [ebp - 0x8c]
mov esi, dword [esi + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [eax + edx*8]
mov edx, dword [ebp - 0x94]
sub ecx, edx
add edx, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x98], edx
cmp esi, 0xffffffff
jne 0x406bad
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406b98
mov eax, dword [ebp - 0x8c]
sub esi, edx
mov edx, dword [ebp - 0x98]
cmp esi, ecx
jb 0x406bb4
lea esi, [ecx - 1]
push esi
push eax
push ecx
push edx
call fcn.0055213e
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x24]
add esp, 0x10
mov byte [esi + eax], 0
lea eax, [ebp - 0xec]
push dword [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00416a80
mov ecx, eax
call fcn.004179f0
mov esi, dword [eax]
test esi, esi
je 0x406bf5
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 1
push dword [ebp - 0x9c]
shr eax, 1
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x94]
add ecx, dword [eax + edx*8 + 4]
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x94], ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00416a80
mov ecx, eax
call fcn.004179f0
mov esi, dword [eax]
test esi, esi
je 0x406c46
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 1
shr eax, 1
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
push dword [eax + edx*8]
call fcn.005534b2
mov esi, dword [ebp - 0x9c]
add esp, 4
inc esi
mov dword [ebp - 0x9c], esi
cmp esi, edi
jl 0x406ac1
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0xa4]
push eax
push esi
push 0
push ecx
call fcn.00406fb0
push esi
call fcn.005534b2
add esp, 4
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x406cb8
mov eax, dword [ebp - 0x18]
dec edi
mov ecx, 0
cmove eax, ecx
test edi, edi
jne 0x406ca5
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x406cdb
mov ecx, dword [eax + esi*4 - 4]
dec esi
test ecx, ecx
je 0x406cd7
push ecx
call fcn.0043b833
mov eax, dword [ebp - 0x20]
add esp, 4
test esi, esi
jne 0x406cc2
test eax, eax
je 0x406ce8
push eax
call fcn.0043b833
add esp, 4
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.0043b833
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550cb3
mov esp, ebp
pop ebp
ret