Function at 0x101c1c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, edx
push 0x10
push 0xd5c0
mov dword [esp + 0x14], ecx
mov dword [edi], 0
call fcn.10434a32
mov esi, eax
add esp, 8
test esi, esi
je 0x101c1f6e
push 0xd5c0
push 0
push esi
call fcn.10425c00
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi], ebx
mov dword [esi + 0x1528], 0
mov dword [esi + 0x152c], 0
mov byte [esi + 0x24ce], 0
mov dword [esi + 0x24d0], 0
mov word [esi + 0x24d4], 0
mov byte [esi + 0x24d6], 0
mov dword [esi + 0xd590], 0
mov dword [esi + 0xd5a8], 0x40
mov dword [esi + 0xd5ac], 0
mov byte [esi + 0xd5b0], 0
mov dword [esi + 0xd5b4], 0
mov dword [esi + 0xd5b8], 0
movq xmm0, qword [eax]
movq qword [esi + 8], xmm0
mov eax, dword [eax + 8]
push 0xf9e
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1530]
push 0
push eax
call fcn.10425c00
mov ecx, dword [0x11d0c5b8]
add esp, 0xc
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [eax + 0x10], 0
call fcn.101c1300
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
js 0x101c1d45
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x11d0d394]
test ecx, ecx
je 0x101c1d77
or eax, 0xffffffff
lock xadd dword [ecx + 0xe0], eax
dec eax
jne 0x101c1d77
mov ecx, dword [0x11d0d394]
test ecx, ecx
je 0x101c1d6d
push ecx
call fcn.101394f0
mov dword [0x11d0d394], 0
cmp byte [esi + 0xd5b0], 0
je 0x101c1e61
mov edi, dword [0x11d0c704]
test byte [edi + 0x20], 2
je 0x101c1d9d
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x101c1da4
cmp byte [eax + 4], 0
je 0x101c1da4
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x11d0c710]
test eax, eax
je 0x101c1e33
sub eax, 1
mov dword [0x11d0c710], eax
jne 0x101c1e33
mov eax, dword [0x11d0c714]
mov dword [esp + 0x10], eax
test eax, eax
je 0x101c1e33
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x101c1e0a
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [ebx]
mov eax, dword [esp + 0x1c]
sbb eax, dword [ebx + 4]
add dword [ebx + 8], ecx
adc dword [ebx + 0xc], eax
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
test eax, eax
je 0x101c1e03
push 0x10
push eax
call fcn.1045088a
add esp, 8
mov dword [ebx + 8], 0
push 0x11d0d968
call dword [sym.imp.KERNEL32.dll_WerUnregisterMemoryBlock]
mov ecx, dword [0x11d0c714]
test ecx, ecx
je 0x101c1e25
mov eax, dword [ecx]
push 1
call dword [eax]
mov ebx, dword [esp + 0x14]
mov dword [0x11d0c714], 0
test byte [edi + 0x20], 2
je 0x101c1e46
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x101c1e4d
cmp byte [eax + 4], 0
je 0x101c1e4d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call fcn.1043d144
add esp, 4
push 0
call fcn.1043d22a
add esp, 4
mov edi, dword [esi + 0xd590]
test edi, edi
je 0x101c1eb8
mov eax, dword [edi + 0x270]
test eax, eax
je 0x101c1e88
push eax
call fcn.10434a18
add esp, 4
mov dword [edi + 0x270], 0
mov eax, dword [edi + 0x268]
test eax, eax
je 0x101c1ea5
push eax
call fcn.10434a18
add esp, 4
mov dword [edi + 0x268], 0
push edi
call fcn.10434a18
add esp, 4
mov dword [esi + 0xd590], 0
mov ecx, dword [esi + 0x1528]
test ecx, ecx
je 0x101c1ed0
mov eax, dword [ecx]
call dword [eax]
mov dword [esi + 0x1528], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x101c1eee
push eax
call fcn.10434a18
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x26e0]
test eax, eax
je 0x101c1f09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x26e0], 0
mov eax, dword [esi + 0xd5ac]
test eax, eax
je 0x101c1f5a
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0xd5ac]
call fcn.101dc6c0
mov edi, dword [esi + 0xd5ac]
test edi, edi
je 0x101c1f42
mov ecx, edi
call fcn.101d9870
push edi
call fcn.10434a18
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esi + 0xd5ac], 0
mov dword [eax + 0x10], 0
push esi
call fcn.10434a18
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0xc