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

Disassembly:
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp dword [ebx + 0x2dc], 0
je 0x100a73dc
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x100a73dc
mov ecx, dword [ebp]
test ecx, ecx
je 0x100a73dc
mov eax, dword [ebp + 4]
mov ecx, dword [ecx + 0x8c]
mov esi, dword [esp + 0x7c]
shr ecx, 1
mov eax, dword [eax + 0x21c]
cmp ecx, eax
mov edx, dword [esi + 0x20]
cmovae ecx, eax
cmp byte [esi + 0x61], 1
mov dword [esp + 0x10], edx
je 0x100a705e
cmp edx, ecx
jb 0x100a73dc
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x100a73dc
cmp dword [esp + 0x80], 0
jne 0x100a708b
lea ecx, [ebx + 0x298]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0x34]
mov eax, dword [ebp]
mov dword [esp + 0x24], eax
test edx, edx
je 0x100a712d
lea ebx, [eax + 0x88]
lea edi, [eax + 0x90]
nop dword [eax]
mov eax, dword [edx + 0xc]
neg eax
lock xadd dword [ebx], eax
test eax, eax
jns 0x100a70c3
mov dword [ebx], 0
mov eax, 0xffffff00
lock xadd dword [edi], eax
test eax, eax
jns 0x100a70d6
mov dword [edi], 0
cmp byte [esi + 0x60], 0
jne 0x100a7124
mov eax, dword [esi + 0x40]
test eax, eax
je 0x100a7124
mov ecx, dword [edx + 0xc]
add eax, 0x35c
neg ecx
lock xadd dword [eax], ecx
test ecx, ecx
jns 0x100a7102
mov eax, dword [esi + 0x40]
mov dword [eax + 0x35c], 0
mov eax, dword [esi + 0x40]
mov ecx, 0xffffff00
add eax, 0x364
lock xadd dword [eax], ecx
test ecx, ecx
jns 0x100a7124
mov eax, dword [esi + 0x40]
mov dword [eax + 0x364], 0
mov edx, dword [edx]
test edx, edx
jne 0x100a70b0
mov edx, dword [esi + 0x34]
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push edx
call fcn.10092aa0
mov ecx, dword [esi + 0x30]
xor eax, eax
mov word [esp + 0x4e], ax
xorps xmm0, xmm0
movzx eax, word [esi]
add esp, 0x10
mov word [esp + 0x38], ax
movzx eax, word [esi + 0x1c]
mov word [esp + 0x3a], ax
movzx eax, word [esi + 2]
mov word [esp + 0x3c], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], eax
movzx eax, word [ecx + 0x74]
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x18], 0
sub eax, 2
je 0x100a71e9
sub eax, 0x15
je 0x100a71c6
sub eax, 0x64
jne 0x100a71e9
mov eax, dword [ecx + 0x74]
mov ecx, dword [ecx + 0x78]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
movups xmm0, xmmword [esp + 0x54]
jmp 0x100a71ed
movups xmm0, xmmword [ecx + 0x74]
mov eax, dword [ecx + 0x8c]
mov dword [esp + 0x18], eax
movups xmmword [esp + 0x28], xmm0
movq xmm0, qword [ecx + 0x84]
movq qword [esp + 0x64], xmm0
jmp 0x100a71f2
movups xmm0, xmmword [ecx + 0x74]
movups xmmword [esp + 0x28], xmm0
push dword [esi + 0x34]
xor eax, eax
mov ecx, 8
cmp byte [esi + 0x61], 1
mov edx, 0x100
cmovne ecx, eax
mov ax, word [esi + 0x5e]
and ax, dx
mov edx, ecx
or edx, 0x2000
test ax, ax
cmove edx, ecx
mov dword [esp + 0x20], edx
call fcn.10092e80
add esp, 4
mov dword [esi + 0x34], 0
or edi, 0xffffffff
mov dword [esi + 0x38], 0
cmp byte [esi + 0x61], 0
mov dword [esi + 0x20], 0
je 0x100a7331
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
test ecx, ecx
je 0x100a725a
mov dword [ecx + 0x48], eax
jmp 0x100a7263
mov ecx, dword [ebp + 4]
mov dword [ecx + 0xa4], eax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov byte [esi + 0x67], 0
test eax, eax
je 0x100a7319
mov ecx, edi
add eax, 0x150
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x100a7319
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x100a72c9
mov eax, dword [ecx + 0xc]
lea edx, [eax - 1]
mov dword [ecx + 0xc], edx
cmp eax, 1
jg 0x100a72b2
push ecx
call ebx
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [eax + 0x70], 0
mov eax, dword [esi + 0x30]
mov dword [eax + 0x70], 0
mov eax, dword [esi + 0x30]
cmp byte [eax + 0x1b7], 0
je 0x100a72f0
push dword [eax + 0x90]
call fcn.100b3b00
mov eax, dword [esi + 0x30]
add esp, 4
mov dword [eax + 0x90], 0
mov eax, dword [esi + 0x30]
mov byte [eax + 0x1b7], 0
mov ecx, 0xfffe
mov eax, dword [esi + 0x30]
and word [eax + 0x1a8], cx
push dword [esi + 0x30]
call ebx
add esp, 4
mov eax, edi
mov ecx, 0x1014b634
lock xadd dword [ecx], eax
push esi
mov dword [esi + 0x30], 0
call ebx
add esp, 4
mov eax, edi
mov ecx, 0x1014b63c
lock xadd dword [ecx], eax
add ebp, 0x468
mov eax, 1
lock xadd dword [ebp], eax
mov ebx, dword [esp + 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebx, 0x584
push ebx
call esi
cmp dword [esp + 0x80], 0
jne 0x100a736a
mov eax, dword [esp + 0x74]
add eax, 0x298
push eax
call esi
mov edx, dword [esp + 0x74]
movups xmm0, xmmword [esp + 0x38]
mov ecx, dword [esp + 0x20]
push dword [edx + 0x2d8]
push dword [esp + 0x20]
sub esp, 0x1c
mov eax, esp
push dword [esp + 0x34]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x70]
push dword [esp + 0x3c]
movq qword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x54]
mov dword [eax + 0x18], ecx
sub esp, 0x1c
mov ecx, dword [esp + 0x60]
mov eax, esp
push dword [esp + 0x6c]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0xb0]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
mov eax, dword [edx + 0x2dc]
call eax
add esp, 0x4c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lock xadd dword [ebp], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret