Function at 0x1003c540
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 [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x148], eax
mov dword [esp + 0x1c], edx
xor ebx, ebx
cmp byte [esi + 8], 0
jne 0x1003c584
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.1002cad0
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 [0x1006ad30]
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.10033670
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 0x1003c623
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 0x1003c813
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.1003c8b0
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 0x1003c692
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 7], 0
jne 0x1003c6b0
xor ebx, ebx
cmp byte [esp + 0x18], 0
jne 0x1003c6d8
lea ecx, [esp + 0x38]
call fcn.1000fd90
jmp 0x1003c56c
lea ebx, [esp + 0x38]
lea edi, [esp + 0xb8]
mov ecx, ebx
mov edx, edi
call fcn.10037b70
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
je 0x1003c6e3
cmp byte [esi + 8], 0
je 0x1003c699
mov byte [esi + 8], 0
jmp 0x1003c699
lea ecx, [esp + 0x10]
call fcn.1003ce00
jmp 0x1003c6a2
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.100372a0
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 0x1003c738
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 0x1003c82a
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.1003cc90
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 0x1003c7da
lea edi, [esp + 0xc8]
mov edx, dword [esi]
lea ecx, [esp + 0x30]
push ebx
call fcn.100372a0
add esp, 4
mov ecx, edi
call fcn.1003ccf0
mov ecx, ebx
call fcn.1003cd60
test al, al
je 0x1003c7a8
mov eax, dword [esp + 0xdc]
xor eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0xd8]
xor ecx, dword [esp + 0x118]
or ecx, eax
jne 0x1003c799
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 0x1003c69b
lea eax, [esp + 0x50]
mov dword [eax + 0x18], 0
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1003c69b
lea ecx, [esp + 0xb8]
xor edx, edx
call fcn.1003c8b0
mov byte [esp + 7], al
jmp 0x1003c677
xor eax, eax
lea edi, [esp + 0xb8]
mov ecx, edi
xor edx, edx
push eax
push eax
call fcn.1003cc90
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 0x1003c7ef
lea ebx, [esp + 0xc8]
lea esi, [esp + 0x20]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov ecx, esi
push edi
call fcn.100372a0
add esp, 4
mov ecx, ebx
call fcn.1003ccf0
mov ecx, edi
call fcn.1003cd60
test al, al
je 0x1003c86d
mov eax, dword [esp + 0xdc]
xor eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0xd8]
xor ecx, dword [esp + 0x118]
or ecx, eax
jne 0x1003c85c
jmp 0x1003c7ef