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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov esi, dword [ebp + 0xc]
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [esp + 0x148], eax
mov dword [esp + 0x1c], edx
xor ebx, ebx
cmp byte [esi + 8], 0
jne 0x1003bec4
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.1002f5c0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ecx + 8]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x38]
push edi
call dword [sym.imp.kernel32.dll_InitializeSRWLock]
mov byte [edi + 0x38], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x3c], xmm0
movaps xmm1, xmmword [0x1006d2f0]
movups xmmword [edi + 0x4c], xmm1
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], 1
movups xmmword [edi + 0x68], xmm0
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x78], ebx
mov ecx, edi
push dword [esp + 8]
call fcn.1003c1f0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x18], 1
mov ebx, dword [eax]
mov dword [esp + 0xb8], esi
lea eax, [esp + 0x1c]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0xc4], eax
cmp byte [ebx + 0x38], 0
je 0x1003bf63
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [ebx + 0x30], edi
mov edi, dword [ebx + 0x3c]
test edi, edi
mov dword [esp + 8], ebx
je 0x1003c153
mov eax, dword [edi]
mov ebx, dword [eax + 0x2c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebx + 0x44]
lea edx, [esp + 0x20]
mov dword [edx], ebx
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
lea ecx, [esp + 0xb8]
call fcn.1003c290
mov byte [esp + 7], al
mov eax, dword [edi]
mov ebx, dword [eax + 0x30]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov eax, dword [esp + 8]
cmp byte [eax + 0x38], 0
je 0x1003bfd2
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 7], 0
jne 0x1003bff0
xor ebx, ebx
cmp byte [esp + 0x18], 0
jne 0x1003c018
lea ecx, [esp + 0x38]
call fcn.10011840
jmp 0x1003beac
lea ebx, [esp + 0x38]
lea edi, [esp + 0xb8]
mov ecx, ebx
mov edx, edi
call fcn.100370b0
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
je 0x1003c023
cmp byte [esi + 8], 0
je 0x1003bfd9
mov byte [esi + 8], 0
jmp 0x1003bfd9
lea ecx, [esp + 0x10]
call fcn.1003c7e0
jmp 0x1003bfe2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov byte [esp + 0xb8], 0x11
mov dword [esp + 0xb9], eax
lea ecx, [esp + 0x20]
push edi
call fcn.100366f0
add esp, 4
lea ecx, [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov byte [esi + 8], 1
cmp byte [esp + 0x70], 0
je 0x1003c078
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
lea esi, [esp + 0x50]
push esi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [esi + 0x18], edi
mov esi, dword [esp + 0x74]
test esi, esi
je 0x1003c16a
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp + 8], esi
mov ecx, esi
call edi
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x20]
mov dword [edx], ebx
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
xor eax, eax
lea ebx, [esp + 0xb8]
mov ecx, ebx
push eax
push eax
call fcn.1003c670
add esp, 8
mov eax, dword [ebx + 0x24]
xor eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x20]
xor ecx, dword [ebx + 0x60]
or ecx, eax
mov esi, dword [esp + 0xc]
je 0x1003c11a
lea edi, [esp + 0xc8]
mov edx, dword [esi]
lea ecx, [esp + 0x30]
push ebx
call fcn.100366f0
add esp, 4
mov ecx, edi
call fcn.1003c6d0
mov ecx, ebx
call fcn.1003c740
test al, al
je 0x1003c0e8
mov eax, dword [esp + 0xdc]
xor eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0xd8]
xor ecx, dword [esp + 0x118]
or ecx, eax
jne 0x1003c0d9
mov edi, dword [esp + 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov bl, 1
cmp byte [esp + 0x70], 0
je 0x1003bfdb
lea eax, [esp + 0x50]
mov dword [eax + 0x18], 0
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1003bfdb
lea ecx, [esp + 0xb8]
xor edx, edx
call fcn.1003c290
mov byte [esp + 7], al
jmp 0x1003bfb7
xor eax, eax
lea edi, [esp + 0xb8]
mov ecx, edi
xor edx, edx
push eax
push eax
call fcn.1003c670
add esp, 8
mov eax, dword [edi + 0x24]
xor eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x20]
xor ecx, dword [edi + 0x60]
or ecx, eax
je 0x1003c12f
lea ebx, [esp + 0xc8]
lea esi, [esp + 0x20]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov ecx, esi
push edi
call fcn.100366f0
add esp, 4
mov ecx, ebx
call fcn.1003c6d0
mov ecx, edi
call fcn.1003c740
test al, al
je 0x1003c1ad
mov eax, dword [esp + 0xdc]
xor eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0xd8]
xor ecx, dword [esp + 0x118]
or ecx, eax
jne 0x1003c19c
jmp 0x1003c12f