Function at 0x1007c690
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010524b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10145fb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push eax
call dword [edx]
cmp byte [edi + 0xc], 0
je 0x1007c7c6
mov ebx, dword [edi + 0x14]
lea esi, [edi + 0x20]
push 0x180
push 0x40
push 0x8109
push ebx
push esi
call fcn.100dd1d9
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x1007c7a6
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.100cdc50
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.10079f30
push 0x10117ce0
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push ebx
push str.open
push eax
call fcn.10005ad0
add esp, 8
push eax
call fcn.10005ad0
add esp, 8
push eax
call fcn.10005ad0
add esp, 8
mov ecx, eax
call fcn.100144d0
push eax
call fcn.10005ad0
add esp, 8
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0xa8]
push eax
call fcn.1007c5d0
cmp dword [eax + 0x14], 8
jb 0x1007c789
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xd8]
call fcn.100087f0
lea ecx, [ebp - 0xa8]
call fcn.10009000
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1007c7bc
push 2
push 0
push eax
call fcn.100dd6a7
add esp, 0xc
jmp 0x1007c7bf
or eax, 0xffffffff
mov dword [edi + 8], eax
mov byte [edi + 0xc], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x1007c8e4
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor bl, bl
push 0
push eax
call esi
test eax, eax
movzx edx, bl
mov ecx, 1
cmove edx, ecx
mov dword [ebp - 0xac], edx
test dl, dl
jne 0x1007c819
cmp dword [ebp + 0xc], 0
je 0x1007c811
push 0xffffffffffffffff
push dword [edi + 4]
call esi
mov byte [ebp - 0xac], 1
jmp 0x1007c819
test dl, dl
je 0x1007c8e4
lea ecx, [edi + 0x24]
mov dword [ebp - 0xb8], 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
cmp eax, ecx
je 0x1007c8bd
mov esi, dword [ecx]
mov dword [ecx], 0
mov edx, dword [ecx + 4]
mov dword [ecx + 4], 0
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xb0], eax
mov dword [ecx + 8], 0
cmp esi, edx
je 0x1007c8bd
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1007c88a
mov ecx, dword [esi]
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x1007c8a9
push dword [esi + 0x10]
push ecx
push eax
call fcn.100ddede
mov edx, dword [ebp - 0xbc]
add esp, 0xc
mov ecx, eax
jmp 0x1007c8ac
or ecx, 0xffffffff
mov ebx, dword [edi + 8]
add esi, 0x18
add ebx, ecx
mov dword [edi + 8], ebx
cmp esi, edx
jne 0x1007c880
jmp 0x1007c8c0
mov ebx, dword [edi + 8]
lea ecx, [ebp - 0xb8]
call fcn.1007a290
cmp byte [ebp - 0xac], 0
je 0x1007c8e0
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
jmp 0x1007c8e7
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b254d
mov esp, ebp
pop ebp
ret 8