Function at 0x406f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1ae8
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x639210]
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.0043f36d
add esp, 4
test eax, eax
jne 0x406fe2
call fcn.00589ae5
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 0x649a1c
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x649a10], 0
je 0x40702c
push 0x649a00
lea ecx, [ebp - 0x24]
call fcn.00412520
mov ecx, 0x649a00
call fcn.00413970
mov eax, dword [0x649a14]
mov ecx, 0x649a14
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 0x407370
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x24]
call fcn.00413e20
mov ecx, eax
call fcn.00414d90
mov esi, dword [eax]
test esi, esi
je 0x407078
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 0x407052
test ecx, ecx
je 0x40736e
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0xa0], eax
call fcn.00569bc0
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x40717f
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.00413e20
mov ecx, eax
call fcn.00414d90
mov esi, dword [eax]
test esi, esi
je 0x407106
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.00569c52
mov eax, dword [ebp - 0x90]
add esp, 4
inc eax
mov dword [ebp - 0x90], eax
cmp eax, edi
jl 0x4070e0
push dword [ebp - 0xa0]
lea eax, [ebp - 0x88]
push str.CDebugLog::FlushLogToFile_malloc_size___d_failed
push eax
push 0x6495d0
call fcn.00410a60
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.00402220
jmp 0x40736b
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.00413e20
mov ecx, eax
call fcn.00414d90
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x4071bb
xor eax, eax
jmp 0x4071bd
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.00413e20
mov ecx, eax
call fcn.00414d90
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x407210
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 0x40727d
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x407268
mov eax, dword [ebp - 0x8c]
sub esi, edx
mov edx, dword [ebp - 0x98]
cmp esi, ecx
jb 0x407284
lea esi, [ecx - 1]
push esi
push eax
push ecx
push edx
call fcn.005688de
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.00413e20
mov ecx, eax
call fcn.00414d90
mov esi, dword [eax]
test esi, esi
je 0x4072c5
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.00413e20
mov ecx, eax
call fcn.00414d90
mov esi, dword [eax]
test esi, esi
je 0x407316
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.00569c52
mov esi, dword [ebp - 0x9c]
add esp, 4
inc esi
mov dword [ebp - 0x9c], esi
cmp esi, edi
jl 0x407191
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0xa4]
push eax
push esi
push 0
push ecx
call fcn.00407680
push esi
call fcn.00569c52
add esp, 4
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x407388
mov eax, dword [ebp - 0x18]
dec edi
mov ecx, 0
cmove eax, ecx
test edi, edi
jne 0x407375
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x4073ab
mov ecx, dword [eax + esi*4 - 4]
dec esi
test ecx, ecx
je 0x4073a7
push ecx
call fcn.0043f3a3
mov eax, dword [ebp - 0x20]
add esp, 4
test esi, esi
jne 0x407392
test eax, eax
je 0x4073b8
push eax
call fcn.0043f3a3
add esp, 4
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.0043f3a3
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.00567455
mov esp, ebp
pop ebp
ret