Function at 0x100507f0
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 edi, dword [ebp + 0xc]
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [esp + 0x148], eax
mov dword [esp + 0x1c], edx
xor ebx, ebx
cmp byte [edi + 8], 0
jne 0x10050834
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.100468e0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ecx
call fcn.10050b30
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
lea esi, [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_InitializeSRWLock]
mov byte [esi + 0x38], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x3c], xmm0
movaps xmm1, xmmword [0x10088270]
movups xmmword [esi + 0x4c], xmm1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x60], 1
movups xmmword [esi + 0x68], xmm0
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov ecx, esi
push dword [esp + 8]
call fcn.10061dd0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x18], 1
mov ebx, dword [eax]
mov dword [esp + 0xb8], edi
lea eax, [esp + 0x1c]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], esi
mov eax, dword [ebp + 8]
mov dword [esp + 0xc4], eax
mov ecx, ebx
call fcn.1005b7c0
mov dword [esp + 8], ebx
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
je 0x10050a92
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x44]
lea edx, [esp + 0x20]
mov dword [edx], esi
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
lea ecx, [esp + 0xb8]
call fcn.100622a0
mov byte [esp + 7], al
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
mov eax, dword [esp + 8]
cmp byte [eax + 0x38], 0
je 0x10050932
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 7], 0
je 0x10050a79
lea ecx, [esp + 0x38]
lea esi, [esp + 0xb8]
mov edx, esi
call fcn.10050b90
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x10050a6f
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 ebx, [esp + 0x20]
mov ecx, ebx
push esi
call fcn.1004ead0
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov dword [edi], eax
mov byte [edi + 8], 1
lea esi, [esp + 0x38]
mov ecx, esi
call fcn.1005b7c0
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x10050aa9
mov eax, dword [ebx]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp + 8], ebx
mov ecx, ebx
call edi
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x20]
mov dword [edx], esi
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.1005e0c0
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 0x10050a3d
lea edi, [esp + 0xc8]
mov edx, dword [esi]
lea ecx, [esp + 0x30]
push ebx
call fcn.1004ead0
add esp, 4
mov ecx, edi
call fcn.1005ee10
mov ecx, ebx
call fcn.1005e3d0
test al, al
je 0x10050a0b
mov eax, dword [esp + 0xdc]
xor eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0xd8]
xor ecx, dword [esp + 0x118]
or ecx, eax
jne 0x100509fc
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 0x10050a7b
lea eax, [esp + 0x50]
mov dword [eax + 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x10050a7b
cmp byte [edi + 8], 0
je 0x10050a79
mov byte [edi + 8], 0
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.1006b720
lea ecx, [esp + 0x38]
call fcn.10050c20
jmp 0x1005081c
lea ecx, [esp + 0xb8]
xor edx, edx
call fcn.100622a0
mov byte [esp + 7], al
jmp 0x10050917
xor eax, eax
lea edi, [esp + 0xb8]
mov ecx, edi
xor edx, edx
push eax
push eax
call fcn.1005e0c0
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 0x10050a52
lea ebx, [esp + 0xc8]
lea esi, [esp + 0x20]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
mov ecx, esi
push edi
call fcn.1004ead0
add esp, 4
mov ecx, ebx
call fcn.1005ee10
mov ecx, edi
call fcn.1005e3d0
test al, al
je 0x10050aec
mov eax, dword [esp + 0xdc]
xor eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0xd8]
xor ecx, dword [esp + 0x118]
or ecx, eax
jne 0x10050adb
jmp 0x10050a52