Function at 0x5a65ca
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a6fa
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xd
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 4]
lea ebx, [esi + 0x3c]
push ecx
mov ecx, ebx
call fcn.005898ed
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov dword [ebx + 8], 0
mov edx, dword [esi + 0x144]
mov eax, dword [edx + 4]
lea edi, [esi + 0x140]
push eax
mov ecx, edi
call fcn.0043b5db
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], 0
mov edx, dword [esi + 0x30]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x2c]
push eax
call fcn.005b5d18
mov eax, dword [esi + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x30]
mov dword [eax], eax
mov eax, dword [esi + 0x30]
mov dword [eax + 8], eax
mov dword [esi + 0x34], 0
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 4]
lea ecx, [esi + 0x4c]
push eax
call fcn.005b5d18
mov eax, dword [esi + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x50]
mov dword [eax], eax
mov eax, dword [esi + 0x50]
mov dword [eax + 8], eax
mov al, 0xc
mov dword [esi + 0x54], 0
mov byte [ebp - 4], al
mov dword [ebp - 0x10], edi
push edi
mov byte [ebp - 4], al
call fcn.005b33ce
mov byte [ebp - 4], 0xb
mov eax, dword [esi + 0x13c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5a66d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi + 0xb4]
lea ecx, [eax + 4]
mov byte [ebp - 4], 0xa
cmp dword [eax], ecx
je 0x5a66ef
call fcn.0042da15
mov byte [ebp - 4], 9
mov eax, dword [esi + 0xb0]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5a6715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov cl, 8
lea eax, [esi + 0xa0]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.0057fea3
mov cl, 7
lea eax, [esi + 0x90]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005b332b
mov cl, 6
lea eax, [esi + 0x80]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005b332b
mov cl, 5
lea eax, [esi + 0x70]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.0045a024
mov cl, 4
lea eax, [esi + 0x60]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005b332b
mov cl, 3
lea eax, [esi + 0x4c]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005b2fad
mov al, 2
mov byte [ebp - 4], al
mov dword [ebp - 0x10], ebx
push ebx
mov byte [ebp - 4], al
call fcn.00580f9b
mov cl, 1
lea eax, [esi + 0x2c]
mov byte [ebp - 4], cl
mov dword [ebp - 0x10], eax
push eax
mov byte [ebp - 4], cl
call fcn.005b2fad
mov byte [ebp - 4], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x5a67ce
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
cmp byte [eax + 0x18], 0
je 0x5a67e9
push eax
mov byte [eax + 0x18], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4