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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa74
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [edi], 0x1006b20c
mov ecx, edi
call fcn.1000de30
cmp dword [edi + 0x1c], 0
jne 0x1000ce1b
mov esi, dword [edi + 0xa4]
mov dword [esp + 0xc], esi
test bl, 4
je 0x1000cd76
lea ecx, [esp + 0x3a0]
and ebx, 0xfffffffb
call fcn.10009810
add esi, 0x18
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x40], 0
je 0x1000cdfc
add eax, 0x30
lea edx, [edi + 0xc]
cmp eax, edx
je 0x1000cdfc
mov ecx, dword [eax]
mov esi, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [esi + 0x30], eax
mov eax, esi
mov esi, dword [esp + 0x14]
add eax, 0x30
mov dword [edx], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x1000cdb6
mov dword [ecx], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x1000cdbe
mov dword [ecx], edx
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0xc]
mov eax, dword [edx + 4]
mov dword [edi + 0x34], eax
mov dword [edx + 4], ecx
mov ecx, edi
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 0x38]
mov dword [edi + 0x38], eax
mov dword [edx + 8], ecx
mov ecx, edi
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + 0x3c]
mov dword [edi + 0x3c], eax
mov dword [edx + 0xc], ecx
mov ecx, edi
mov eax, dword [edx + 0x10]
mov ecx, dword [ecx + 0x40]
mov dword [edi + 0x40], eax
mov edi, dword [esp + 0x1c]
mov dword [edx + 0x10], ecx
test bl, 8
je 0x1000ce10
lea ecx, [esp + 0x7c0]
and ebx, 0xfffffff7
call fcn.10009810
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x18]
mov ecx, edi
call fcn.1000de30
test al, al
je 0x1000ce34
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x64
jl 0x1000cd47
test bl, 2
je 0x1000ce48
lea ecx, [esp + 0x240]
and ebx, 0xfffffffd
call fcn.10009810
mov eax, dword [edi + 0x54]
or edx, 0xffffffff
sub eax, dword [edi + 0x50]
test eax, 0xfffffffc
je 0x1000d194
mov eax, dword [edi + 0x4c]
lea esi, [edi + 0x4c]
mov dword [esp + 0xc], esi
lea ecx, [edx + 2]
test eax, eax
je 0x1000ce73
mov eax, dword [eax]
cmp eax, ecx
jne 0x1000cec2
push 8
call fcn.1004240d
add esp, 4
test eax, eax
je 0x1000ce96
mov dword [eax], 0
mov ecx, 1
mov byte [eax + 5], 1
lock xadd dword [eax], ecx
jmp 0x1000ce98
xor eax, eax
mov ecx, dword [esi]
or edx, 0xffffffff
mov dword [esi], eax
test ecx, ecx
je 0x1000cebd
mov eax, edx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x1000cebd
push ecx
call fcn.1004245e
add esp, 4
or edx, 0xffffffff
mov ecx, 1
mov edi, dword [esi]
mov dword [esp + 0x18], edi
test edi, edi
je 0x1000ced2
mov eax, ecx
lock xadd dword [edi], eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x1000cede
lock xadd dword [edi], ecx
mov dword [esp + 0x24], esi
test edi, edi
je 0x1000cefd
mov eax, edx
lock xadd dword [edi], eax
dec eax
setne al
test al, al
jne 0x1000cefd
push edi
call fcn.1004245e
add esp, 4
mov eax, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x28], esi
cmp dword [eax + 0x14], esi
jne 0x1000cf19
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
jmp 0x1000cf2a
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
sar ecx, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ecx
test bl, 0x10
je 0x1000cf3e
lea ecx, [esp + 0x660]
and ebx, 0xffffffef
call fcn.10009810
test edi, edi
je 0x1000cf5f
test bl, 0x20
je 0x1000cf53
lea ecx, [esp + 0x30]
and ebx, 0xffffffdf
call fcn.10009810
cmp byte [edi + 5], 0
je 0x1000cf5f
mov eax, dword [esp + 0xc]
jmp 0x1000cf61
xor eax, eax
inc dword [eax + 0x10]
test edi, edi
je 0x1000d190
test bl, 0x40
je 0x1000cf80
lea ecx, [esp + 0x920]
and ebx, 0xffffffbf
call fcn.10009810
cmp byte [edi + 5], 0
je 0x1000d001
test bl, bl
jns 0x1000cf9c
lea ecx, [esp + 0x500]
and ebx, 0xffffff7f
call fcn.10009810
test ebx, 0x100
je 0x1000cfb6
lea ecx, [esp + 0xe0]
and ebx, 0xfffffeff
call fcn.10009810
xor eax, eax
cmp byte [edi + 5], al
mov edi, dword [esp + 0x18]
cmovne eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
sub ecx, edx
sar ecx, 2
lea eax, [esp + 0x10]
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x2c]
cmovae eax, ecx
mov ecx, dword [eax]
cmp esi, ecx
jae 0x1000d001
lea eax, [edx + esi*4]
jmp 0x1000cff0
cmp dword [eax], 0
jne 0x1000d0d2
inc esi
add eax, 4
cmp esi, ecx
jb 0x1000cff0
test edi, edi
je 0x1000d190
test ebx, 0x200
je 0x1000d023
lea ecx, [esp + 0x190]
and ebx, 0xfffffdff
call fcn.10009810
cmp byte [edi + 5], 0
je 0x1000d178
test ebx, 0x400
je 0x1000d047
lea ecx, [esp + 0x2f0]
and ebx, 0xfffffbff
call fcn.10009810
test ebx, 0x800
je 0x1000d061
lea ecx, [esp + 0x450]
and ebx, 0xfffff7ff
call fcn.10009810
mov esi, dword [esp + 0xc]
xor eax, eax
cmp byte [edi + 5], al
cmovne eax, esi
dec dword [eax + 0x10]
jne 0x1000d178
test ebx, 0x1000
je 0x1000d090
lea ecx, [esp + 0x5b0]
and ebx, 0xffffefff
call fcn.10009810
test ebx, 0x2000
je 0x1000d0aa
lea ecx, [esp + 0x710]
and ebx, 0xffffdfff
call fcn.10009810
xor ecx, ecx
cmp byte [edi + 5], cl
cmovne ecx, esi
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp esi, eax
je 0x1000d13f
cmp dword [esi], 0
je 0x1000d0f3
add esi, 4
cmp esi, eax
jne 0x1000d0c4
jmp 0x1000d13f
cmp esi, ecx
jae 0x1000d001
mov ecx, dword [edx + esi*4]
inc esi
mov dword [esp + 0x28], esi
test ecx, ecx
je 0x1000d001
mov eax, dword [ecx]
call dword [eax]
jmp 0x1000cf64
cmp esi, eax
je 0x1000d13f
lea ecx, [esi + 4]
mov edi, eax
sub edi, ecx
xor edx, edx
add edi, 3
shr edi, 2
cmp ecx, eax
cmova edi, edx
mov dword [esp + 0x10], edi
test edi, edi
mov edi, dword [esp + 0x18]
je 0x1000d13b
mov eax, dword [esp + 0x10]
jmp 0x1000d120
mov edi, dword [ecx]
test edi, edi
je 0x1000d12b
mov dword [esi], edi
add esi, 4
inc edx
add ecx, 4
cmp edx, eax
jne 0x1000d120
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
cmp esi, edx
jne 0x1000d150
cmp eax, dword [ecx + 8]
jne 0x1000d150
mov dword [ecx + 8], edx
jmp 0x1000d178
cmp esi, eax
je 0x1000d178
mov ecx, dword [ecx + 8]
sub ecx, eax
and ecx, 0xfffffffc
push ecx
push eax
push esi
mov dword [esp + 0x1c], ecx
call fcn.100425b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [ecx + 8], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
setne al
test al, al
jne 0x1000d190
push edi
call fcn.1004245e
add esp, 4
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0xac]
mov dword [edi + 0xac], 0
test esi, esi
je 0x1000d201
test ebx, 0x4000
je 0x1000d1c2
lea ecx, [esp + 0x870]
and ebx, 0xffffbfff
call fcn.10009810
call fcn.100154e0
xor edx, edx
mov ecx, dword [eax]
call fcn.10015b50
mov ecx, dword [esi]
test ecx, ecx
je 0x1000d1f8
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x1000d1f8
test ecx, ecx
je 0x1000d1f1
add ecx, 0xfffffffc
jmp 0x1000d1f3
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.1004245e
add esp, 4
mov dword [edi + 0xac], 0
mov esi, dword [edi + 0xa4]
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
je 0x1000d239
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
dec dword [0x10072e14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
add esi, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
push esi
mov dword [eax + 0x44], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0xa4]
mov dword [edi + 0xa4], 0
test ecx, ecx
je 0x1000d28a
add ecx, 8
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x1000d28a
test ecx, ecx
je 0x1000d28a
add ecx, 0xfffffff8
je 0x1000d28a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 0xa8]
mov dword [edi + 0xa8], 0
test ecx, ecx
je 0x1000d2c0
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x1000d2c0
test ecx, ecx
je 0x1000d2b9
add ecx, 0xfffffffc
jmp 0x1000d2bb
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
call fcn.1000e6b0
xor edx, edx
mov ecx, dword [eax]
call fcn.10015b50
mov esi, dword [edi + 0xac]
test esi, esi
je 0x1000d32b
test ebx, 0x8000
je 0x1000d2ec
lea ecx, [esp + 0x9d0]
call fcn.10009810
call fcn.100154e0
xor edx, edx
mov ecx, dword [eax]
call fcn.10015b50
mov ecx, dword [esi]
test ecx, ecx
je 0x1000d322
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x1000d322
test ecx, ecx
je 0x1000d31b
add ecx, 0xfffffffc
jmp 0x1000d31d
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.1004245e
add esp, 4
mov ecx, dword [edi + 0xa8]
or edx, 0xffffffff
test ecx, ecx
je 0x1000d35c
add ecx, 4
mov eax, edx
lock xadd dword [ecx], eax
dec eax
setne al
test al, al
jne 0x1000d35c
test ecx, ecx
je 0x1000d352
add ecx, 0xfffffffc
jmp 0x1000d354
xor ecx, ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
or edx, 0xffffffff
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x1000d384
add ecx, 8
lock xadd dword [ecx], edx
dec edx
setne al
test al, al
jne 0x1000d384
test ecx, ecx
je 0x1000d384
add ecx, 0xfffffff8
je 0x1000d384
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [edi + 0x88]
call fcn.1000e740
cmp dword [edi + 0x7c], 0x10
jb 0x1000d3a0
push dword [edi + 0x68]
call fcn.1004245e
add esp, 4
mov dword [edi + 0x7c], 0xf
lea ecx, [edi + 0x4c]
mov dword [edi + 0x78], 0
mov byte [edi + 0x68], 0
call fcn.1000e740
lea ecx, [edi + 0x38]
call fcn.1000e880
push dword [edi + 0x38]
call fcn.1004245e
mov dword [edi + 0x38], 0
add esp, 4
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x1000d408
push dword [esp + 0x10]
mov edx, dword [edi + 0x24]
push ecx
call fcn.1000f040
push dword [edi + 0x20]
call fcn.1004245e
add esp, 0xc
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
lea ecx, [edi + 0xc]
call fcn.1000e880
push dword [edi + 0xc]
call fcn.1004245e
mov dword [edi + 0xc], 0
add esp, 4
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1000d42f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], 0x1006b220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret