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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10058a6f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp byte [edi + 0x9c], 0
mov dword [esp + 0x18], edi
je 0x1000767a
mov eax, dword [edi + 0xa4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
je 0x1000767a
lea ebx, [edi + 0x6c]
mov dword [esp + 0x1c], ebx
jmp 0x10006ec0
mov edx, dword [0x1006e504]
mov eax, dword [edx + 0xc]
mov ecx, 0x1006e504
call eax
add eax, 0x10
xor ecx, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], esi
mov word [esp + 0x94], cx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0xac], 8
mov dword [esp + 0xc0], esi
mov dword [esp + 0x20], esi
cmp ebx, esi
je 0x10006f3c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], 1
mov byte [esp + 0xc0], 1
mov ecx, dword [edi + 0x94]
sub ecx, dword [edi + 0x90]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100075fb
mov eax, dword [edi + 0x94]
mov dword [esp + 0x14], eax
cmp dword [edi + 0x90], eax
jbe 0x10006f80
call fcn.1003f767
mov ebx, dword [edi + 0x84]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
cmp ebx, esi
jne 0x10006fb1
call fcn.1003f767
xor eax, eax
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffc8
cmp ecx, dword [eax + 0x10]
ja 0x10006fbc
cmp ebx, esi
je 0x10006fb5
mov ebx, dword [ebx]
jmp 0x10006fb7
mov eax, dword [ebx]
jmp 0x10006f9d
xor ebx, ebx
cmp ecx, dword [ebx + 0xc]
jae 0x10006fc1
call fcn.1003f767
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
add esi, 0xffffffc8
test eax, eax
jne 0x1000702c
call fcn.1003f767
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x10006fe1
call fcn.1003f767
mov ecx, dword [esi]
mov ebx, dword [esp + 0x78]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x1000703d
cmp dword [ebx + 0xc], 0
jl 0x10007030
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x10007030
call fcn.10002fe0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000701f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [esp + 0x78], ecx
jmp 0x1000703d
mov eax, dword [eax]
jmp 0x10006fd7
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x7c]
call fcn.10002f40
mov edx, dword [esi + 4]
mov dword [esp + 0x7c], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x80], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x84], ecx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x88], edx
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
mov dword [esp + 0x90], eax
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
lea ecx, [esp + 0x98]
call fcn.1000b980
mov ecx, dword [esi + 0x34]
mov esi, dword [edi + 0x94]
mov dword [esp + 0xac], ecx
mov ecx, esi
sub ecx, dword [edi + 0x90]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100070c5
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [esi - 0x38]
push esi
call fcn.1000a810
add esp, 8
add dword [edi + 0x94], 0xffffffc8
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100070e2
cmp dword [esp + 0x20], ebx
je 0x100070e2
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
call fcn.1003f860
add esp, 4
cmp eax, ebx
je 0x100070f8
lea edx, [esp + 0x24]
mov dword [eax], edx
jmp 0x100070fa
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea eax, [edi + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
cmp eax, ebx
je 0x10007128
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x44], 1
lea esi, [edi + 0x1c]
lea ecx, [esp + 0x78]
mov eax, esi
mov byte [esp + 0xc0], 4
mov dword [esp + 0x14], esi
call fcn.10009820
mov edi, eax
mov dword [esp + 0x64], edi
cmp esi, ebx
jne 0x10007151
call fcn.1003f767
mov eax, dword [esi]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x60], eax
cmp eax, ebx
je 0x10007162
cmp eax, eax
je 0x10007167
call fcn.1003f767
cmp edi, esi
je 0x100071bb
mov ecx, dword [edi + 0xc]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x100076a3
mov eax, dword [esp + 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100071a7
cmp dx, bx
je 0x100071a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100071a7
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10007181
xor eax, eax
jmp 0x100071ac
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
setl al
test al, al
jne 0x100071bb
lea edi, [esp + 0x60]
jmp 0x100071d0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
lea edi, [esp + 0x58]
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
mov ecx, dword [eax + 0x18]
mov ebx, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x6c], ecx
test esi, esi
je 0x100071ea
cmp esi, eax
je 0x100071ef
call fcn.1003f767
cmp ebx, dword [esp + 0x6c]
je 0x10007236
test esi, esi
jne 0x10007352
call fcn.1003f767
cmp ebx, dword [esi + 0x18]
jne 0x1000720c
call fcn.1003f767
lea edx, [esp + 0x24]
add ebx, 0x10
push edx
call fcn.10008450
cmp dword [esp + 0x7c], 1
je 0x10007236
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
push eax
call fcn.10007c80
mov byte [esp + 0xc0], 3
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10007254
cmp dword [esp + 0x44], 0
je 0x10007254
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
jbe 0x10007263
call fcn.1003f767
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x48], ebx
jmp 0x10007270
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x1000727f
call fcn.1003f767
test ebx, ebx
je 0x10007289
cmp ebx, dword [esp + 0x24]
je 0x1000728e
call fcn.1003f767
cmp edi, esi
je 0x10007501
test ebx, ebx
jne 0x10007359
call fcn.1003f767
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x100072af
call fcn.1003f767
cmp dword [edi], 0
je 0x100074e0
mov eax, dword [esp + 0x7c]
sub eax, 1
je 0x10007453
sub eax, 1
je 0x100073bd
sub eax, 1
jne 0x100074e0
mov ecx, dword [esp + 0x8c]
sub esp, 0x20
mov eax, esp
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x5c], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0xb8]
mov word [ecx + 4], dx
call fcn.1000b980
mov byte [esp + 0xe0], 5
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x98]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x3c], esp
mov dword [esp + 0x3c], esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x10007360
cmp eax, dword [esi]
jne 0x10007360
mov ebx, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x1000739b
mov esi, dword [esi]
jmp 0x10007202
mov eax, dword [ebx]
jmp 0x100072a5
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x100076ad
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.1003f777
add esp, 0x10
mov ecx, dword [esp + 0x3c]
add ebx, 0x10
mov dword [ecx], ebx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
add eax, 0x14
mov byte [esp + 0xe8], 3
call edx
jmp 0x100074dc
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x78]
push eax
push ecx
push edx
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x4c], esp
mov dword [esp + 0x24], esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10007405
cmp eax, dword [esi]
jne 0x10007405
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x1000743c
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x100076ad
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.1003f777
add esp, 0x10
mov edx, dword [esp + 0x24]
add ebx, 0x10
mov dword [edx], ebx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
jmp 0x100074dc
mov eax, dword [esp + 0x80]
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x78]
push eax
push ecx
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x48], esp
mov dword [esp + 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10007493
cmp eax, dword [esi]
jne 0x10007493
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x100074ca
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x100076ad
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.1003f777
add esp, 0x10
mov edx, dword [esp + 0x20]
add ebx, 0x10
mov dword [edx], ebx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x100074fd
call fcn.1003f767
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x100074f5
call fcn.1003f767
add edi, 0x24
jmp 0x10007270
mov eax, dword [ebx]
jmp 0x100074eb
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10007515
push eax
call fcn.1004009b
add esp, 4
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10007561
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x10007554
add esi, 0x20
cmp dword [esi], 0x10
jb 0x10007539
mov eax, dword [esi - 0x14]
push eax
call fcn.1003f2c6
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x24
lea eax, [esi - 0x20]
cmp eax, edi
jne 0x10007528
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1003f2c6
add esp, 4
mov edx, dword [esp + 0x24]
xor esi, esi
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.1003f2c6
add esp, 4
mov dword [esp + 0xc0], 0xffffffff
cmp dword [esp + 0xa8], 8
jb 0x100075a1
mov eax, dword [esp + 0x94]
push eax
call fcn.1003f2c6
add esp, 4
mov eax, dword [esp + 0x78]
xor ecx, ecx
add eax, 0xfffffff0
mov word [esp + 0x94], cx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100075dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x9c], 0
je 0x1000767a
mov ebx, dword [esp + 0x1c]
xor esi, esi
mov edi, ecx
jmp 0x10006ec0
cmp ebx, esi
je 0x1000760c
cmp dword [esp + 0x20], esi
je 0x1000760c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xc0], 0xffffffff
cmp dword [esp + 0xa8], 8
jb 0x10007631
mov edx, dword [esp + 0x94]
push edx
call fcn.1003f2c6
add esp, 4
xor eax, eax
mov word [esp + 0x94], ax
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000766d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [edi + 0x9c], 0
jne 0x10006e95
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1003f2d1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001000
call fcn.10003ac0
int3