Function at 0x10020c50
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 eax, dword [0x1007a00c]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, ebp
mov dword [esp + 0x148], eax
mov dword [esp + 0x1c], edx
cmp byte [esi + 8], 0
jne 0x10020c94
mov ecx, dword [esp + 0x148]
xor ecx, ebp
call fcn.10069260
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ecx + 8]
lea edi, [esp + 0x38]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
push edi
call dword [sym.imp.kernel32.dll_InitializeSRWLock]
xor eax, eax
mov byte [edi + 0x38], 0
mov dword [edi + 0x40], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x54], ebx
mov ecx, edi
inc eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], eax
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], eax
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x78], ebx
push dword [esp + 0xc]
call fcn.100197a0
mov eax, dword [esp + 8]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x18], 1
mov ebx, dword [eax]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ecx
cmp byte [ebx + 0x38], 0
je 0x10020d40
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]
mov dword [esp + 0xc], ebx
test edi, edi
je 0x10020ede
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 + 0xc]
lea edx, [esp + 0x20]
mov ecx, dword [ebx + 0x44]
mov dword [edx], ebx
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
lea ecx, [esp + 0xb8]
call fcn.100311e0
mov ecx, dword [edi]
mov byte [esp + 7], al
mov ebx, dword [ecx + 0x30]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x38], 0
je 0x10020daf
mov dword [eax + 0x30], 0
add eax, 0x18
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 7], 0
jne 0x10020dcd
xor ebx, ebx
cmp byte [esp + 0x18], 0
jne 0x10020df5
lea ecx, [esp + 0x38]
call fcn.10018c30
jmp 0x10020c7c
lea ebx, [esp + 0x38]
lea edi, [esp + 0xb8]
mov ecx, ebx
mov edx, edi
call fcn.10020fd0
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
je 0x10020e00
cmp byte [esi + 8], 0
je 0x10020db6
mov byte [esi + 8], 0
jmp 0x10020db6
lea ecx, [esp + 0x10]
call fcn.1003b940
jmp 0x10020dbf
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov byte [esp + 0xb8], 0x11
mov dword [esp + 0xb9], eax
lea ecx, [esp + 0x20]
push edi
call fcn.1001ee50
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 0x10020e55
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
lea esi, [esp + 0x50]
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [esi + 0x18], edi
mov esi, dword [esp + 0x74]
test esi, esi
je 0x10020f47
mov eax, dword [esi]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x20]
mov dword [edx], ebx
mov dword [edx + 4], eax
xor eax, eax
lea ebx, [esp + 0xb8]
mov dword [edx + 8], ecx
mov ecx, ebx
push eax
push eax
call fcn.1002daf0
add esp, 8
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
xor ecx, dword [ebx + 0x64]
xor eax, dword [ebx + 0x60]
or eax, ecx
jne 0x10020ef5
mov eax, dword [esi]
mov edi, esi
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
cmp byte [esp + 0x70], 0
mov bl, 1
je 0x10020db8
lea eax, [esp + 0x50]
mov dword [eax + 0x18], 0
push eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x10020db8
lea ecx, [esp + 0xb8]
xor edx, edx
call fcn.100311e0
mov byte [esp + 7], al
jmp 0x10020d94
lea edi, [esp + 0xc8]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x30]
mov edx, dword [eax]
push ebx
call fcn.1001ee50
add esp, 4
mov ecx, edi
call fcn.1002e690
mov ecx, ebx
call fcn.1002de60
test al, al
je 0x10020f0f
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
xor ecx, dword [esp + 0x11c]
xor eax, dword [esp + 0x118]
or eax, ecx
je 0x10020ea7
jmp 0x10020efc
lea edi, [esp + 0xb8]
xor eax, eax
xor edx, edx
mov ecx, edi
push eax
push eax
call fcn.1002daf0
add esp, 8
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
xor ecx, dword [edi + 0x64]
xor eax, dword [edi + 0x60]
or eax, ecx
je 0x10020eba
lea ebx, [esp + 0xc8]
lea esi, [esp + 0x20]
mov eax, dword [esp + 8]
mov ecx, esi
mov edx, dword [eax]
push edi
call fcn.1001ee50
add esp, 4
mov ecx, ebx
call fcn.1002e690
mov ecx, edi
call fcn.1002de60
test al, al
je 0x10020f8e
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
xor ecx, dword [esp + 0x11c]
xor eax, dword [esp + 0x118]
or eax, ecx
je 0x10020eba
jmp 0x10020f7d