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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10122eb3
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp byte [esi + 0x88], bl
je 0x100867dd
lea eax, [ebx + 0x3c]
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.MSVCR80.dll__time64]
mov edi, dword [esi + 0x1e8]
add edi, 0x368
add esp, 4
lea ebp, [edi + 0x14]
push ebp
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0x30]
push ebp
jb 0x1008681d
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100868a5
mov ebx, dword [edi + 0x2c]
shr ebx, 0xc
and bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x100868a3
mov dword [esp + 0x28], 0
call fcn.1010d600
push 0
mov dword [esp + 0x30], eax
lea eax, [esi + 0x90]
push eax
sub esp, 8
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ebx, esi
lea edi, [esp + 0x3c]
call fcn.10085d00
lea edx, [esp + 0x9c]
push edx
mov ebx, edi
call fcn.10084d30
mov dword [esp + 0xd8], 0
mov ecx, dword [esi + 0x1e8]
push eax
add ecx, 0x368
call fcn.1000dc40
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0xdc], 0xffffffff
call fcn.10084f60
xor ebx, ebx
push 0x430
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
cmp ebp, ebx
mov dword [esp + 0xd8], 1
je 0x1008696a
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x24], esp
sub esp, 8
mov dword [esp + 0x2c], esp
mov edi, esp
mov ebx, esi
mov dword [esp + 0x2c], eax
call fcn.100d2250
movzx ecx, byte [0x101555ae]
movzx edx, byte [0x101555af]
movzx eax, byte [0x101555a9]
push ecx
movzx ecx, byte [0x101555ad]
push edx
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
call fcn.100883a0
add esp, 0x1c
lea edi, [esp + 0x98]
call fcn.100884c0
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x50]
push ecx
push 1
mov dword [esp + 0xe4], 4
mov eax, dword [esi + 0x1e8]
mov edx, edi
push edx
lea ecx, [eax + 0x840]
push ecx
add eax, 0x35c
push eax
push ebp
mov dword [esp + 0x34], 7
call fcn.10041fe0
xor ebx, ebx
jmp 0x1008696c
xor eax, eax
lea edx, [esp + 0x20]
push edx
mov ecx, eax
mov dword [esp + 0xdc], 7
call fcn.10055ad0
mov dword [esp + 0xd8], 9
test byte [esp + 0x18], 4
je 0x100869c2
mov eax, dword [esp + 0x4c]
and dword [esp + 0x18], 0xfffffffb
cmp eax, ebx
je 0x100869c2
test al, 1
jne 0x100869be
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x100869be
lea ecx, [esp + 0x54]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x4c], ebx
mov byte [esp + 0xd8], 0xa
test byte [esp + 0x18], 2
je 0x100869fe
mov eax, dword [esp + 0x6c]
and dword [esp + 0x18], 0xfffffffd
cmp eax, ebx
je 0x100869fe
test al, 1
jne 0x100869fa
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x100869fa
lea ecx, [esp + 0x74]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x6c], ebx
mov byte [esp + 0xd8], 0xb
test byte [esp + 0x18], 1
je 0x10086a3e
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x10086a3e
test al, 1
jne 0x10086a37
and eax, 0xfffffffe
mov eax, dword [eax]
cmp eax, ebx
je 0x10086a37
lea ecx, [esp + 0x94]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x8c], ebx
xor eax, eax
push ebx
push 0x1c9c380
mov byte [esi + 0x88], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call fcn.100b5be0
mov ecx, dword [esi + 0x1e8]
add esp, 8
add ecx, 0x4c
push ecx
push 5
push ebx
push ebx
push edx
push eax
mov eax, dword [esp + 0x38]
lea edx, [esi + 0x90]
push edx
push eax
xor edx, edx
lea ecx, [esp + 0x50]
call fcn.100424c0
mov eax, dword [esi + 0x84]
imul eax, eax
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [esp + 0xd8], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, ebx
lea edi, [ecx*4 + 0x3c]
je 0x10086aee
mov esi, eax
add eax, 4
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10086aee
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10086aee
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret