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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x1001a6e0
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x70]
mov ecx, dword fs:[0]
mov dword [esi + 0x70], ecx
mov dword fs:[0], eax
cmp byte [ebx + 0x11], 0
je 0x10014107
mov byte [esi + 2], 3
jmp 0x10014129
xor ecx, ecx
call fcn.10019eb0
test eax, eax
je 0x10014482
cmp dword [eax], 1
jbe 0x10014121
mov byte [esi + 2], 1
jmp 0x10014129
call fcn.10011bc0
mov byte [esi + 2], al
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x58]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0xfdbc1681
mov ecx, 0xb1ef64
xor eax, dword [esi + 0x5c]
xor ecx, dword [esi + 0x58]
or ecx, eax
jne 0x10014170
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov eax, 4
xor ecx, 0xcd1e7bc1
xor edx, 0xc1a2c89c
or edx, ecx
mov ecx, edi
je 0x100141b7
lea eax, [esi + 0x48]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0xcb4abd3b
mov ecx, 0x45835fa7
xor eax, dword [esi + 0x4c]
xor ecx, dword [esi + 0x48]
or ecx, eax
mov eax, 0xc
mov ecx, 0x1003fecc
jne 0x100141bc
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
xor edx, 0xf3553a36
xor ebx, 0xf6c7b16a
or ebx, edx
jne 0x100141bc
lea ecx, [edi + 4]
mov eax, 8
mov ecx, dword [ecx]
mov eax, dword [edi + eax]
mov dword [esi + 0x28], ecx
xor ecx, ecx
mov dword [esi + 0x2c], eax
xor edi, edi
call fcn.1001a290
test eax, eax
je 0x100141fe
mov ecx, dword [eax]
test ecx, ecx
je 0x10014403
lock inc dword [ecx]
jle 0x10014419
test ecx, ecx
je 0x100141fe
mov dword [esi + 0x10], ecx
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x10014211
cmp eax, 1
jne 0x1001421d
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x14]
dec eax
jmp 0x10014227
mov dword [esi + 0x10], 0
mov eax, 9
mov edx, 0x1003fed8
jmp 0x10014229
mov eax, 4
mov edx, str.main
jmp 0x10014227
mov eax, 9
mov edx, 0x1003fed8
mov edi, ecx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x3c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x40], eax
lea eax, [esi + 2]
mov dword [esi + 0x44], eax
movzx eax, byte [0x1006008c]
mov dword [esi + 4], edi
test al, al
je 0x100142c2
xor ecx, ecx
mov byte [0x1006008c], 1
mov dword [esi + 0x78], 0
call fcn.1001a0d0
test eax, eax
je 0x10014429
mov ebx, dword [eax]
mov dword [eax], 0
test ebx, ebx
mov dword [esi + 0x14], ebx
je 0x100142c9
mov dword [esi + 0x1c], ebx
mov cl, 1
xor eax, eax
lea edi, [ebx + 8]
lock cmpxchg byte [ebx + 8], cl
jne 0x1001441b
mov dword [esi + 4], edi
mov eax, dword [0x100600d8]
mov dword [esi + 0x20], ebx
test eax, 0x7fffffff
je 0x10014304
mov byte [esi + 1], 1
mov dword [esi + 0x78], 2
call fcn.100378f0
mov ebx, dword [esi + 0x20]
xor al, 1
mov dword [esi + 0x18], eax
jmp 0x1001430b
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov byte [esi + 3], 0
mov dword [esi + 0x78], 1
lea ecx, [esi + 0x38]
lea edx, [esi + 8]
push 0x1003ff0c
call fcn.100145a0
add esp, 4
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jne 0x10014396
jmp 0x100143a3
mov dword [esi + 0x18], 0
movzx eax, byte [ebx + 9]
lea edx, [ebx + 0xc]
mov dword [esi + 0x78], 4
lea ecx, [esi + 0x38]
push 0x1003fee4
call fcn.100145a0
add esp, 4
cmp byte [esi + 0x18], 0
je 0x100143cf
mov ecx, dword [esi + 4]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x1001434c
push ecx
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
mov dword [esi + 0x78], 3
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov byte [0x1006008c], 1
mov dword [esi + 0x78], 3
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.1001a0d0
test eax, eax
je 0x10014448
mov ecx, dword [eax]
mov edx, dword [esi + 4]
test ecx, ecx
mov dword [eax], edx
mov dword [esi + 8], ecx
je 0x1001438d
lock dec dword [ecx]
jne 0x1001438d
lea ecx, [esi + 8]
call fcn.1000d880
mov eax, dword [esi + 0x10]
mov bl, 1
test eax, eax
je 0x100143a3
lock dec dword [eax]
jne 0x100143a3
lea ecx, [esi + 0x10]
call fcn.1000d840
mov eax, dword [esi + 0x14]
not bl
test eax, eax
setne cl
test bl, cl
je 0x100143be
lock dec dword [eax]
jne 0x100143be
lea ecx, [esi + 0x14]
call fcn.1000d880
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x100600d8]
test eax, 0x7fffffff
je 0x10014333
mov byte [esi + 1], 1
mov dword [esi + 0x78], 2
call fcn.100378f0
test al, al
jne 0x10014333
mov eax, dword [esi + 0x20]
mov byte [eax + 9], 1
jmp 0x10014333
mov ecx, eax
mov edi, eax
call fcn.10037370
mov ecx, dword [edi]
xor edi, edi
lock inc dword [ecx]
jg 0x100141e2
ud2
push edi
call fcn.10037b60
add esp, 4
jmp 0x10014296
lea eax, [esi + 8]
push 0x1003f32c
push 0x1003ef98
push eax
push 0x46
push 0x1003f2c4
call fcn.100384f0
add esp, 0x14
jmp 0x10014419
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x10014458
lea ecx, [esi + 8]
call fcn.1000d880
mov byte [esi + 1], 0
mov dword [esi + 0x78], 2
lea eax, [esi + 8]
push 0x1003f32c
push 0x1003ef98
push eax
push 0x46
push 0x1003f2c4
call fcn.100384f0
add esp, 0x14
jmp 0x10014419
lea eax, [esi + 8]
push 0x1003f32c
push 0x1003ef98
push eax
push 0x46
push 0x1003f2c4
call fcn.100384f0
nop dword [eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0x7c]
mov ebp, dword [esi + 0x68]
cmp dword [esi + 4], 0
je 0x100144c0
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x100144c0
lea ecx, [esi + 0x10]
call fcn.1000d840
add esp, 0x14
pop ebp
ret