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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xf8
mov ebp, edx
mov edx, dword [esp + 0x110]
mov ebx, dword [esp + 0x10c]
mov edi, ecx
mov dword [esp + 0x24], ecx
cmp byte [ebp + 8], 2
jne 0x100ceba3
mov esi, dword [ebp]
mov cl, 1
xor eax, eax
lock cmpxchg byte [esi + 8], cl
lea ebp, [esi + 8]
jne 0x100cf19b
mov eax, dword [0x1019913c]
test eax, 0x7fffffff
jne 0x100cf1b9
xor eax, eax
movzx ecx, byte [esi + 9]
test cl, cl
jne 0x100cf1d3
movsd xmm0, qword [esi + 0x1b4]
movsd xmm1, qword [esi + 0x1bc]
test edx, edx
mov dword [esp + 4], eax
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm0
mov ecx, dword [esi + 0x1ac]
mov edi, dword [esi + 0x1b0]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
je 0x100cec31
js 0x100cf28c
movzx eax, byte [0x10199148]
xor ecx, ecx
call fcn.100ea7d0
test eax, eax
je 0x100cf2a2
mov edx, dword [esp + 0x110]
mov edi, eax
jmp 0x100cec36
mov esi, dword [ebp + 4]
mov cl, 1
lea eax, [esi + 8]
mov dword [esp + 4], eax
xor eax, eax
lock cmpxchg byte [esi + 8], cl
jne 0x100cf1f9
mov eax, dword [0x1019913c]
test eax, 0x7fffffff
jne 0x100cf219
xor ecx, ecx
movzx eax, byte [esi + 9]
test al, al
jne 0x100cf236
movsd xmm0, qword [esi + 0x38]
movsd xmm1, qword [esi + 0x40]
test edx, edx
mov dword [esp + 0x20], ecx
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm0
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
je 0x100cec8b
js 0x100cf28c
movzx eax, byte [0x10199148]
xor ecx, ecx
call fcn.100ea7d0
test eax, eax
je 0x100cf2a2
mov edx, dword [esp + 0x110]
mov edi, eax
jmp 0x100cec90
mov edi, 1
push edx
push ebx
push edi
call fcn.10100490
add esp, 0xc
mov ebx, dword [esp + 0x118]
mov dword [esp + 0x18], ebp
test ebx, ebx
je 0x100cece6
js 0x100cf28c
movzx eax, byte [0x10199148]
xor ecx, ecx
mov edx, ebx
call fcn.100ea7d0
test eax, eax
je 0x100cf2b3
mov ebp, eax
push ebx
push dword [esp + 0x118]
push eax
call fcn.10100490
add esp, 0xc
mov dword [esp + 0xc], ebx
jmp 0x100cecee
mov edi, 1
push edx
push ebx
push edi
call fcn.10100490
add esp, 0xc
mov ebx, dword [esp + 0x118]
test ebx, ebx
je 0x100cedbe
js 0x100cf28c
movzx eax, byte [0x10199148]
xor ecx, ecx
mov edx, ebx
call fcn.100ea7d0
test eax, eax
je 0x100cf2b3
push ebx
push dword [esp + 0x118]
mov dword [esp + 0x54], eax
push eax
call fcn.10100490
add esp, 0xc
mov dword [esp + 8], ebx
jmp 0x100cedc6
mov dword [esp + 0xc], 0x80000000
lea ecx, [esp + 0x70]
call fcn.100dc9e0
movsd xmm0, qword [esp + 0x60]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
movsd xmm1, qword [esp + 0x68]
movzx ebx, byte [esp + 0xd6]
mov bh, byte [esp + 0xd5]
test dword [esp + 0x7c], 0x7fffffff
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [esp + 0x70]
mov dword [esp + 0x14], edx
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x10], eax
movsd qword [esp + 0x58], xmm1
mov byte [esp + 8], bl
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esp + 0xac]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
movups xmmword [esp + 0xd8], xmm0
movsd xmm0, qword [esp + 0xb4]
movsd qword [esp + 0x34], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 0x28], xmm0
jne 0x100ceea1
test dword [esp + 0x88], 0x7fffffff
jne 0x100ceec7
lock inc dword [esi]
jg 0x100ceee5
jmp 0x100cf291
mov dword [esp + 8], 0x80000000
lea ecx, [esp + 0x70]
call fcn.100dc9e0
movsd xmm0, qword [esp + 0x60]
mov eax, dword [esp + 0x98]
movzx edx, byte [esp + 0xd5]
mov ecx, dword [esp + 0x78]
movsd xmm1, qword [esp + 0x68]
movzx ebx, byte [esp + 0xd6]
test dword [esp + 0x7c], 0x7fffffff
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [esp + 0x70]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x94]
mov byte [esp + 0xc], dl
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc8]
movsd qword [esp + 0x58], xmm1
mov byte [esp + 0x14], bl
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esp + 0xac]
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
movups xmmword [esp + 0xe8], xmm0
movsd xmm0, qword [esp + 0xb4]
movsd qword [esp + 0x34], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 0x28], xmm0
jne 0x100cf00f
test dword [esp + 0x88], 0x7fffffff
jne 0x100cf035
mov ebx, dword [ebp]
lock inc dword [ebx]
jg 0x100cf056
jmp 0x100cf291
push dword [esp + 0x80]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x88], 0x7fffffff
je 0x100cedb0
push dword [esp + 0x8c]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
lock inc dword [esi]
jle 0x100cf291
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x40]
mov bl, byte [esi + 0x1d4]
xor ecx, ecx
mov edx, 0x74
mov dword [esp + 0x7a], eax
movsd qword [esp + 0x72], xmm0
movzx eax, byte [0x10199148]
call fcn.100ea7d0
test eax, eax
je 0x100cf293
mov dword [eax], 1
mov dword [eax + 4], 1
mov word [eax + 8], 0
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x20]
cmp byte [esp + 4], 0
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x76]
movsd qword [eax + 0xa], xmm0
movsd qword [eax + 0x10], xmm1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x118]
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x30], ecx
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
movsd qword [eax + 0x38], xmm0
movups xmm0, xmmword [esp + 0xd8]
movsd qword [eax + 0x40], xmm1
movlps qword [eax + 0x48], xmm0
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x58], ecx
movsd xmm0, qword [esp + 0x34]
movsd qword [eax + 0x50], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [eax + 0x5c], xmm0
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x64], ecx
mov byte [eax + 0x68], 1
mov dword [eax + 0x69], edx
mov dword [eax + 0x6d], edi
mov byte [eax + 0x71], bh
mov bh, byte [esp + 8]
mov edx, dword [esp + 0x24]
mov byte [eax + 0x72], bh
mov dword [edx], esi
mov byte [edx + 8], bl
mov dword [edx + 4], eax
jne 0x100ceffa
mov eax, dword [0x1019913c]
test eax, 0x7fffffff
jne 0x100cf260
mov ecx, dword [esp + 0x18]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
je 0x100cf189
jmp 0x100cf190
push dword [esp + 0x80]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x88], 0x7fffffff
je 0x100cee90
push dword [esp + 0x8c]
push 0
push dword [0x101990e0]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp]
lock inc dword [ebx]
jle 0x100cf291
movzx eax, byte [ebp + 8]
movsd xmm0, qword [esp + 0x40]
xor ecx, ecx
mov edx, 0x74
mov byte [esp + 3], al
mov eax, dword [esp + 0x48]
movsd qword [esp + 0x72], xmm0
mov dword [esp + 0x7a], eax
movzx eax, byte [0x10199148]
call fcn.100ea7d0
test eax, eax
je 0x100cf293
mov dword [eax], 1
mov dword [eax + 4], 1
mov word [eax + 8], 0
mov ecx, dword [esp + 0x110]
mov ebp, dword [esp + 0x18]
movzx edx, byte [esp + 0xc]
cmp byte [esp + 0x20], 0
mov dh, byte [esp + 0x14]
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x76]
movsd qword [eax + 0xa], xmm0
movsd qword [eax + 0x10], xmm1
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x1c]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x118]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0xd8]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x30], ecx
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
movsd qword [eax + 0x38], xmm0
movups xmm0, xmmword [esp + 0xe8]
movsd qword [eax + 0x40], xmm1
movlps qword [eax + 0x48], xmm0
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x58], ecx
movsd xmm0, qword [esp + 0x34]
movsd qword [eax + 0x50], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [eax + 0x5c], xmm0
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x64], ecx
mov byte [eax + 0x68], 1
mov dword [eax + 0x69], edi
mov dword [eax + 0x6d], ebp
mov byte [eax + 0x71], dl
mov edi, dword [esp + 0x24]
mov dl, byte [esp + 3]
mov byte [eax + 0x72], dh
mov dword [edi], ebx
mov byte [edi + 8], dl
mov dword [edi + 4], eax
jne 0x100cf17d
mov eax, dword [0x1019913c]
test eax, 0x7fffffff
jne 0x100cf276
mov ecx, dword [esp + 4]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x100cf190
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
add esp, 0xf8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebp
call fcn.101149f0
mov edx, dword [esp + 0x110]
mov eax, dword [0x1019913c]
test eax, 0x7fffffff
je 0x100ceb2f
call fcn.10114a90
mov edx, dword [esp + 0x110]
xor al, 1
movzx ecx, byte [esi + 9]
test cl, cl
je 0x100ceb3d
mov dword [esp + 0x70], ebp
mov byte [esp + 0x74], al
lea eax, [esp + 0x70]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x1018a7ec
push 0x1018a554
push eax
call fcn.1010d2e0
mov ecx, dword [esp + 4]
call fcn.101149f0
mov edx, dword [esp + 0x110]
mov eax, dword [0x1019913c]
test eax, 0x7fffffff
je 0x100cebcc
call fcn.10114a90
mov edx, dword [esp + 0x110]
mov ecx, eax
xor cl, 1
movzx eax, byte [esi + 9]
test al, al
je 0x100cebda
mov eax, dword [esp + 4]
mov edx, 0x2b
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], cl
lea eax, [esp + 0x70]
mov ecx, str.called__Result::unwrap____on_an__Err__value
push 0x1018a83c
push 0x1018a5b4
push eax
call fcn.1010d2e0
call fcn.10114a90
test al, al
jne 0x100ceffa
mov byte [esi + 9], 1
jmp 0x100ceffa
call fcn.10114a90
test al, al
jne 0x100cf17d
mov byte [esi + 9], 1
jmp 0x100cf17d
call fcn.10001070
ud2
mov ecx, 4
mov edx, 0x74
call fcn.1010cb80
mov edx, dword [esp + 0x110]
mov ecx, 1
call fcn.1010cb60
mov ecx, 1
mov edx, ebx
call fcn.1010cb60
int3