Function at 0x10005110
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058358
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100764f8]
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 ebx, ecx
mov dword [ebp - 0x68], ebx
cmp byte [ebx + 4], 0
jne 0x1000514d
xor eax, eax
jmp 0x100052f6
mov eax, dword [ebx + 0x28]
mov byte [ebx + 4], 0
test eax, eax
je 0x1000516f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
lea eax, [ebx + 0x30]
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebx + 0x48]
lea ecx, [ebx + 0x48]
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], ecx
mov esi, dword [edi]
mov dword [ebp - 0x64], esi
cmp esi, edi
je 0x10005277
nop dword [eax]
lea ecx, [ebp - 0x60]
call fcn.10003ce0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], vtable.CAPIModule::api_report.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10005fa0
mov ebx, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 0
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0xc]
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0xa
test ecx, ecx
je 0x1000521e
lea eax, [ebp - 0x60]
push eax
call fcn.1001c720
mov ebx, dword [ebp - 0x20]
push dword [ebx + 4]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.10006170
mov eax, dword [ebp - 0x20]
push 0x28
mov byte [ebp - 4], 0
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call fcn.1003465a
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.100045a0
lea ecx, [ebp - 0x64]
call fcn.10004700
mov esi, dword [ebp - 0x64]
cmp esi, edi
jne 0x100051a0
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
mov eax, edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x64], edx
mov edi, dword [edx + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x100052ba
mov ebx, dword [ebp - 0x6c]
push dword [esi + 8]
mov ecx, ebx
call fcn.10006130
mov esi, dword [esi]
push 0x18
push edi
call fcn.1003465a
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x10005290
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x64]
mov dword [eax + 4], edx
mov eax, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [eax + 8], edx
lea eax, [ebx + 0x30]
push eax
mov dword [ecx + 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x100052e4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x100052f1
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 1
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.10034676
mov esp, ebp
pop ebp
ret