Function at 0x78007e40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x780293e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx + 0x34]
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, dword [edi]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
cmp dword [ebx], esi
je 0x78007e78
mov eax, ebx
lea esp, [esp]
lea eax, [eax + 4]
inc edx
cmp dword [eax], esi
jne 0x78007e70
mov dword [ebx + edx*4], 0
mov edx, dword [ecx + 0x2c]
cmp edx, edi
jne 0x78007e8e
mov eax, dword [edi + 0x18]
mov dword [ecx + 0x2c], eax
jmp 0x78007ea6
cmp dword [edx + 0x18], edi
lea eax, [edx + 0x18]
je 0x78007ea0
mov edx, dword [eax]
cmp dword [edx + 0x18], edi
lea eax, [edx + 0x18]
jne 0x78007e96
mov eax, dword [edi + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ebx
cmp dword [ecx + 0x24], ebx
jle 0x78007f8f
lea esp, [esp]
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x20], eax
lea esi, [eax - 1]
not esi
and esi, ebx
xor ebx, ebx
test eax, eax
jle 0x78007f74
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
lea ecx, [ecx]
mov eax, esi
cdq
mov ecx, esi
and ecx, 0x1f
and edx, 0x1f
mov edi, 1
shl edi, cl
mov ecx, dword [ebp - 0xc]
add eax, edx
sar eax, 5
test dword [ecx + eax*4], edi
jne 0x78007f0b
inc ebx
inc esi
cmp ebx, dword [ebp - 0x20]
jl 0x78007ee0
mov ecx, dword [ebp - 0x18]
jmp 0x78007f71
mov ebx, dword [ebp - 0x18]
push 0x7802be70
mov esi, dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4000
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x78007f5e
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
sub dword [0x7802c814], esi
push 0x7802be70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add ebx, dword [ecx + 0x28]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
cmp ebx, dword [ecx + 0x24]
jl 0x78007ec0
mov esi, dword [ecx + 0x20]
mov edi, dword [edi]
push 0x7802be70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [0x7802c818], esi
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x78007fe6
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x7802be70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [eax + 0x14]
mov ebx, dword [ebx + 0x3c]
mov esi, dword [eax + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x18]
call fcn.78006a30
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x14]
lea ecx, [ebx + 0x18]
call fcn.78006a30
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7800ce67
mov esp, ebp
pop ebp
ret 4