Function at 0x100108a0
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], 0x10016d30
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 0x100108e7
mov byte [esi + 2], 3
jmp 0x10010909
xor ecx, ecx
call fcn.10016510
test eax, eax
je 0x10010c62
cmp dword [eax], 1
jbe 0x10010901
mov byte [esi + 2], 1
jmp 0x10010909
call fcn.1000de90
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, 0xb98b1b71
mov ecx, 0x57a64178
xor eax, dword [esi + 0x5c]
xor ecx, dword [esi + 0x58]
or ecx, eax
jne 0x10010950
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov eax, 4
xor ecx, 0xd6cb5d6d
xor edx, 0x63eb502c
or edx, ecx
mov ecx, edi
je 0x10010997
lea eax, [esi + 0x48]
push edi
push eax
call dword [ebx + 0xc]
add esp, 8
mov eax, 0x2fc2f0dc
mov ecx, 0xbc75aad8
xor eax, dword [esi + 0x4c]
xor ecx, dword [esi + 0x48]
or ecx, eax
mov eax, 0xc
mov ecx, 0x10053f28
jne 0x1001099c
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
xor edx, 0x7aecffb2
xor ebx, 0xb2e3aa26
or ebx, edx
jne 0x1001099c
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.100168f0
test eax, eax
je 0x100109de
mov ecx, dword [eax]
test ecx, ecx
je 0x10010be3
lock inc dword [ecx]
jle 0x10010bf9
test ecx, ecx
je 0x100109de
mov dword [esi + 0x10], ecx
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x100109f1
cmp eax, 1
jne 0x100109fd
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x14]
dec eax
jmp 0x10010a07
mov dword [esi + 0x10], 0
mov eax, 9
mov edx, 0x10053f34
jmp 0x10010a09
mov eax, 4
mov edx, str.main
jmp 0x10010a07
mov eax, 9
mov edx, 0x10053f34
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 [0x100609e8]
mov dword [esi + 4], edi
test al, al
je 0x10010aa2
xor ecx, ecx
mov byte [0x100609e8], 1
mov dword [esi + 0x78], 0
call fcn.10016730
test eax, eax
je 0x10010c09
mov ebx, dword [eax]
mov dword [eax], 0
test ebx, ebx
mov dword [esi + 0x14], ebx
je 0x10010aa9
mov dword [esi + 0x1c], ebx
mov cl, 1
xor eax, eax
lea edi, [ebx + 8]
lock cmpxchg byte [ebx + 8], cl
jne 0x10010bfb
mov dword [esi + 4], edi
mov eax, dword [0x10060a48]
mov dword [esi + 0x20], ebx
test eax, 0x7fffffff
je 0x10010ae4
mov byte [esi + 1], 1
mov dword [esi + 0x78], 2
call fcn.10048ca0
mov ebx, dword [esi + 0x20]
xor al, 1
mov dword [esi + 0x18], eax
jmp 0x10010aeb
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 0x10053f68
call fcn.10010d80
add esp, 4
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jne 0x10010b76
jmp 0x10010b83
mov dword [esi + 0x18], 0
movzx eax, byte [ebx + 9]
lea edx, [ebx + 0xc]
mov dword [esi + 0x78], 4
lea ecx, [esi + 0x38]
push 0x10053f40
call fcn.10010d80
add esp, 4
cmp byte [esi + 0x18], 0
je 0x10010baf
mov ecx, dword [esi + 4]
xor eax, eax
xchg byte [ecx], al
cmp al, 2
jne 0x10010b2c
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 [0x100609e8], 1
mov dword [esi + 0x78], 3
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.10016730
test eax, eax
je 0x10010c28
mov ecx, dword [eax]
mov edx, dword [esi + 4]
test ecx, ecx
mov dword [eax], edx
mov dword [esi + 8], ecx
je 0x10010b6d
lock dec dword [ecx]
jne 0x10010b6d
lea ecx, [esi + 8]
call fcn.1000a040
mov eax, dword [esi + 0x10]
mov bl, 1
test eax, eax
je 0x10010b83
lock dec dword [eax]
jne 0x10010b83
lea ecx, [esi + 0x10]
call fcn.1000a0a0
mov eax, dword [esi + 0x14]
not bl
test eax, eax
setne cl
test bl, cl
je 0x10010b9e
lock dec dword [eax]
jne 0x10010b9e
lea ecx, [esi + 0x14]
call fcn.1000a040
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 [0x10060a48]
test eax, 0x7fffffff
je 0x10010b13
mov byte [esi + 1], 1
mov dword [esi + 0x78], 2
call fcn.10048ca0
test al, al
jne 0x10010b13
mov eax, dword [esi + 0x20]
mov byte [eax + 9], 1
jmp 0x10010b13
mov ecx, eax
mov edi, eax
call fcn.100488a0
mov ecx, dword [edi]
xor edi, edi
lock inc dword [ecx]
jg 0x100109c2
ud2
push edi
call fcn.10048f10
add esp, 4
jmp 0x10010a76
lea eax, [esi + 8]
push 0x100533fc
push 0x100530b8
push eax
push 0x46
push 0x10053394
call fcn.100498c0
add esp, 0x14
jmp 0x10010bf9
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x10010c38
lea ecx, [esi + 8]
call fcn.1000a040
mov byte [esi + 1], 0
mov dword [esi + 0x78], 2
lea eax, [esi + 8]
push 0x100533fc
push 0x100530b8
push eax
push 0x46
push 0x10053394
call fcn.100498c0
add esp, 0x14
jmp 0x10010bf9
lea eax, [esi + 8]
push 0x100533fc
push 0x100530b8
push eax
push 0x46
push 0x10053394
call fcn.100498c0
nop dword [eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0x7c]
mov ebp, dword [esi + 0x68]
cmp dword [esi + 4], 0
je 0x10010ca0
mov eax, dword [esi + 4]
lock dec dword [eax]
jne 0x10010ca0
lea ecx, [esi + 0x10]
call fcn.1000a0a0
add esp, 0x14
pop ebp
ret