Function at 0x10072000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c0fa6
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x100eb6ac]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x100eb6ac]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [edi + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0
je 0x10072094
dec eax
je 0x10072078
or eax, 0xffffffff
jmp 0x100720a0
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1007209e
cmp eax, 0x80
je 0x1007209e
or eax, 0xffffffff
jmp 0x100720a0
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x130], 0
or ecx, 0xffffffff
cmp eax, ecx
je 0x100724e8
cmp byte [edi], 0
jne 0x100720f7
mov dword [esp + 0x130], ecx
mov eax, dword [ebx + 4]
sub eax, 0
mov dword [esp + 0x18], ecx
je 0x100720e8
dec eax
jne 0x100724ef
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100724ef
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100724ef
lea eax, [esp + 0x34]
push eax
call fcn.10014670
mov byte [esp + 0x130], 1
mov ebx, 1
mov eax, esi
call fcn.10072ba0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0xf4]
mov ebx, eax
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
call fcn.10016010
mov byte [esp + 0x130], 2
test ebx, ebx
jle 0x100721c6
push 0xffffffffffffffff
lea edx, [esp + 0xd0]
push edx
lea ecx, [ebx + 1]
mov edx, esi
call fcn.1006d280
mov byte [esp + 0x130], 3
mov edi, eax
lea esi, [esp + 0xe8]
call fcn.10015ef0
mov byte [esp + 0x130], 2
mov esi, 0x10
cmp dword [esp + 0xe0], esi
jb 0x100721a2
mov eax, dword [esp + 0xcc]
push eax
call fcn.1009c0c0
add esp, 4
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xdc], 0
mov byte [esp + 0xcc], 0
jmp 0x100721cb
mov esi, 0x10
lea ecx, [esp + 0x1c]
push ecx
call fcn.1009fa81
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 4
push edx
push ecx
push 0x100d9458
push ecx
push eax
push ecx
mov eax, dword [esp + 0x34]
sub eax, dword [edi + 0xf0]
push 0x100d9460
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push ecx
push 0x100d9464
push ecx
lea edx, [esp + 0x118]
push edx
push ecx
push 0x100d9468
push ecx
mov ecx, dword [esp + 0x60]
sbb ecx, dword [edi + 0xf4]
lea edx, [esp + 0x74]
push ecx
push eax
push str.DEBUG_
push edx
call fcn.1001d5a0
add esp, 8
push eax
call fcn.10072820
add esp, 4
push eax
call fcn.1001d5a0
add esp, 0xc
push eax
call fcn.1001da70
add esp, 0xc
push eax
call fcn.1001d5a0
add esp, 0xc
push eax
call fcn.10011cf0
add esp, 4
push eax
call fcn.1001d5a0
add esp, 0xc
push eax
call fcn.1001da70
add esp, 0xc
push eax
call fcn.1001d5a0
add esp, 0xc
push eax
call fcn.1001da70
add esp, 8
test byte [edi + 0x44], 1
je 0x10072334
mov eax, dword [ebp + 0xc]
cmp eax, dword [edi + 0xf8]
ja 0x10072334
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x38]
call fcn.10014770
mov byte [esp + 0x130], 4
cmp dword [eax + 0x14], esi
jb 0x100722bd
mov eax, dword [eax]
push eax
lea edx, [edi + 0x48]
push edx
call fcn.1001d5a0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10011ed0
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x100722fa
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x100722fa
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x1007231b
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x10072313
or eax, 4
push 0
push eax
call fcn.100021a0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.10011aa0
mov esi, 0x10
test byte [edi + 0x44], 4
je 0x100723e5
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xfc]
ja 0x100723e5
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x38]
call fcn.10014770
mov byte [esp + 0x130], 5
cmp dword [eax + 0x14], esi
jb 0x1007236d
mov eax, dword [eax]
push eax
push 0x100eeda0
call fcn.1001d5a0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10011ed0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor ebx, ebx
test byte [eax + esi + 0xc], 6
jne 0x100723ab
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x100723ab
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x100723cc
mov eax, dword [ecx + 0xc]
or eax, ebx
cmp dword [ecx + 0x38], 0
jne 0x100723c4
or eax, 4
push 0
push eax
call fcn.100021a0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0xcc]
call fcn.10011aa0
mov esi, 0x10
test byte [edi + 0x44], 0x10
je 0x10072463
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0x100]
ja 0x10072463
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.10014770
mov byte [esp + 0x130], 6
push 0x100d9474
push eax
lea ecx, [esp + 0xd4]
push ecx
call fcn.1006dc10
add esp, 0xc
mov byte [esp + 0x130], 7
cmp dword [eax + 0x14], esi
jb 0x10072434
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esp + 0x130], 6
lea ecx, [esp + 0xcc]
call fcn.10011aa0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
call fcn.10011aa0
mov byte [esp + 0x130], 1
cmp dword [esp + 0xfc], esi
jb 0x10072484
mov edx, dword [esp + 0xe8]
push edx
call fcn.1009c0c0
add esp, 4
mov dword [esp + 0xfc], 0xf
mov dword [esp + 0xf8], 0
mov byte [esp + 0xe8], 0
mov byte [esp + 0x130], 0
lea ecx, [esp + 0x34]
call fcn.10003e90
or eax, 0xffffffff
mov dword [esp + 0x130], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 4]
sub eax, 0
je 0x100724dc
dec eax
jne 0x100724ef
mov eax, dword [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x100724ef
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100724ef
mov dword [esp + 0x130], ecx
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret 0x10