Function at 0x1006a0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x28], 0
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov ecx, dword [ebx + 0x98]
mov esi, dword [ebx + 0x58]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], esi
push edi
mov edi, dword [esp + 0x50]
test ecx, ecx
jne 0x1006a0fb
mov ecx, dword [ebx + 0xfc]
cmp dword [edi + 0x10], 0
lea eax, [ebx + 4]
jne 0x1006a150
push dword [ebx + 0xb4]
test ebx, ebx
mov dword [esp + 0x20], 0
cmove eax, dword [esp + 0x20]
push eax
push esi
push ecx
lea ecx, [edi + 0x10]
call fcn.1007e4d0
test eax, eax
jne 0x1006a160
push eax
push dword [ebp + 4]
lea ecx, [ebx + 8]
push 0xa0000075
call fcn.1000baa0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10142783
add esp, 0x3c
ret 0x18
xor ecx, ecx
test ebx, ebx
cmove eax, ecx
lea ecx, [edi + 0x10]
push eax
call fcn.1007e6b0
mov eax, dword [esp + 0x5c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x20], eax
test eax, eax
jl 0x1006a1fa
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], eax
jg 0x1006a184
test eax, eax
je 0x1006a1fa
lea ebp, [edi + 0x10]
lea ebx, [edi + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x1006a532
xor ebx, ebx
lea eax, [edi + 0x10]
cmp dword [eax], ebx
jle 0x1006a1d6
xor ebp, ebp
nop
mov esi, dword [eax + 0x24]
add esi, ebp
push 0
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1006a293
inc ebx
lea eax, [edi + 0x10]
add ebp, 0x78
cmp ebx, dword [eax]
jl 0x1006a1b0
lea ebp, [edi + 0x10]
push 5
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x20], 0
jl 0x1006a1f4
jg 0x1006a187
cmp dword [esp + 0x18], 0
ja 0x1006a187
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [edi + 0x44]
call ebp
lea esi, [edi + 0x40]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x1006a22d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebx
push 0xffffffffffffffff
push dword [edi + 0x44]
call ebp
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x1006a216
mov ebx, dword [edi + 0x38]
test ebx, ebx
je 0x1006a261
lea esi, [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [ebx + 0x24]
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [ebx + 0x30]
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0x4c]
push ebx
mov byte [edi + 0x48], 1
call ebp
mov esi, dword [edi + 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1006a563
lea ecx, [edi + 0x10]
call fcn.1007e790
push ebx
call ebp
jmp 0x1006a541
lea ebp, [edi + 0x10]
mov dword [ebp + 4], ebx
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x1006a1d9
mov ecx, dword [esp + 0x20]
test ecx, ecx
ja 0x1006a2bf
mov eax, dword [esp + 0x18]
jb 0x1006a2b9
cmp eax, 0x20000
jae 0x1006a2bf
mov dword [esp + 0x40], ecx
jmp 0x1006a2cc
mov eax, 0x20000
mov dword [esp + 0x40], 0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push 1
push ecx
push eax
push ebx
mov ecx, esi
call fcn.1000c630
test eax, eax
je 0x1006a4f4
cmp dword [esp + 0x2c], 0
je 0x1006a314
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x1006a30c
mov eax, dword [esi + 0x1f0]
xor edx, edx
cmp dword [eax], 0x46445025
cmove ecx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x14]
mov edx, ebx
mov esi, dword [esp + 0x44]
sub dword [esp + 0x18], esi
push 0x101f1fd0
mov ecx, dword [eax + 0x60]
sbb dword [esp + 0x24], 0
not ecx
push esi
call fcn.100d5f20
mov ecx, dword [esp + 0x14]
not eax
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x20]
jne 0x1006a34f
lea edx, [eax + 1]
jmp 0x1006a351
xor edx, edx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x34]
shl ecx, 4
sub ecx, dword [edi + 0x14]
mov dword [eax + ecx*8 + 0x40], esi
mov dword [eax + ecx*8 + 0x44], edx
lea ebx, [eax + ecx*8]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x54], ecx
mov ecx, ebx
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x28], eax
call fcn.10090fd0
mov edx, dword [ebx + 0x58]
push ecx
mov ecx, ebx
call fcn.100911a0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x1006a3bc
mov edx, dword [esp + 0x28]
mov ecx, ebx
push eax
call fcn.10090de0
add esp, 4
cmp esi, 0x8000
mov eax, 0x8000
cmova esi, eax
mov dword [edi + 0x28], esi
mov eax, dword [ebx + 0x38]
sub eax, esi
push esi
add eax, 0x20000
push eax
push dword [edi + 0x24]
call fcn.10146160
add esp, 0xc
lock inc dword [edi + 0x40]
push dword [edi + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0x2c]
call esi
add dword [edi + 0x18], 1
mov ebx, dword [esp + 0x24]
adc dword [edi + 0x1c], 0
cmp dword [ebx + 0x480], 0
jne 0x1006a4d1
cmp dword [esp + 0x60], 0
je 0x1006a1e4
lea eax, [edi + 0x4c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
mov eax, dword [edi + 0x70]
mov esi, dword [edi + 0x78]
mov ebx, dword [edi + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x28], eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jl 0x1006a1e4
jg 0x1006a464
cmp esi, 0x1e00000
jbe 0x1006a1e4
push 0
push 0x64
push dword [esp + 0x30]
push dword [esp + 0x28]
call fcn.1015dc20
push ebx
push esi
push edx
push eax
call fcn.1015d9d0
mov ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov ecx, eax
call fcn.1015e040
comisd xmm0, xmmword [0x101dc6b0]
jb 0x1006a1e4
push dword [esp + 0x38]
push dword [esp + 0x40]
push dword [esp + 0x30]
push dword [esp + 0x28]
push ebx
push esi
push str.__rNow_bypass_triggered.:_lld__lld___lld__
call fcn.10001e10
add esp, 0x1c
mov dword [esp + 0x30], 0
mov dword [esp + 0x60], 0
jmp 0x1006a1e4
lea ecx, [edi + 0x10]
call fcn.1007e790
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 8]
push 0
push dword [eax + 4]
push 0xa0000017
call fcn.1000baa0
lea ebx, [edi + 0x4c]
jmp 0x1006a56b
mov eax, dword [esi + 0x100]
lea ecx, [esi + 0x100]
call dword [eax + 0x4c]
lea ecx, [edi + 0x10]
mov esi, eax
call fcn.1007e790
mov eax, dword [esp + 0x14]
test esi, esi
mov ecx, dword [esp + 0x24]
mov edx, 0xa0000102
push 0
cmovne edx, esi
push dword [eax + 4]
lea ecx, [ecx + 8]
push edx
call fcn.1000baa0
lea ebx, [edi + 0x4c]
jmp 0x1006a56b
mov ecx, ebp
call fcn.1007e790
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
call eax
mov esi, dword [edi + 0x68]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push 0
push dword [eax + 4]
lea ecx, [ecx + 8]
push esi
call fcn.1000baa0
jmp 0x1006a56b
mov dword [esp + 0x34], 1
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x70]
mov edi, dword [edi + 0x74]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
add dword [eax + 0x50], esi
adc dword [eax + 0x54], edi
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x3c
ret 0x18