Function at 0x1005a620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100df320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
lea ebx, [esi + 0x6c]
mov dword [ebp - 0x24], ebx
call fcn.1008e950
mov dword [ebx], eax
add eax, 0xffc
mov dword [esi + 0x70], eax
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x74], 0x400
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
or dword [esi + 0x30], 0x8000
test dword [esi + 0x30], 0x40000
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x34], 0
jne 0x1005a6ab
mov eax, dword [esi + 0x24]
mov edx, dword [eax]
test edx, edx
je 0x1005a6ab
mov edx, dword [edx + 0x24]
jmp 0x1005a6b0
mov edx, 1
push dword [esi + 0x10]
mov ecx, dword [esi + 8]
push dword [esi + 0x1c]
call fcn.10094c80
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x24]
mov edi, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1005a6e5
mov ecx, 1
lea eax, [edi + 4]
lock xadd dword [eax], ecx
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x1c
call fcn.10094c80
test edi, edi
je 0x1005a724
or ecx, 0xffffffff
lea eax, [edi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x1005a724
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x1005a724
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test dword [esi + 0x30], 0x20000
je 0x1005a782
mov eax, dword [esi]
mov edi, dword [esi + 8]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1005a748
push dword [ebp - 0x24]
mov ecx, eax
push dword [edi + 4]
push dword [edi]
call fcn.10094c80
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x1c]
push eax
add ecx, 0x1c
call fcn.10094c80
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x24]
mov dword [ecx + 0x24], eax
mov al, byte [edi + 0x28]
mov byte [ecx + 0x28], al
test al, al
jne 0x1005a782
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ecx + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [ecx + 0x18], al
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x1005a790
mov ecx, dword [ecx + 0x14]
jmp 0x1005a792
xor ecx, ecx
mov edx, dword [esi + 0x30]
call fcn.10094c80
mov ecx, esi
call fcn.1005abf0
test al, al
jne 0x1005a7cd
mov ecx, dword [ebx]
mov dword [ebp - 4], 2
call fcn.1008e9a0
mov dword [ebx], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
push 0
call fcn.10094c80
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x10]
jne 0x1005a7f2
mov ecx, dword [esi]
push 0
call fcn.10094c80
mov byte [ebp - 0x11], 1
mov eax, dword [eax]
cmp eax, dword [esi + 0xc]
je 0x1005a7f6
mov byte [ebp - 0x11], 0
mov ecx, dword [ebx]
mov dword [ebp - 4], 3
call fcn.1008e9a0
mov al, byte [ebp - 0x11]
mov dword [ebx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret