Function at 0x582570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64e7de
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6ae654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 3
mov dword [edi + 8], 0
call fcn.005a2f20
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
lea eax, [ebp - 0x3c]
movups xmmword [edi + 0x18], xmm0
push eax
movq qword [edi + 0x28], xmm1
call fcn.00581560
add esp, 8
lea ecx, [edi + 0x30]
push eax
call fcn.00580f20
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x58266b
or ecx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x58266b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
or edx, 0xffffffff
lea eax, [esi + 8]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x58266b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edx, dword [edi + 0x44]
lea esi, [edi + 0x40]
mov eax, dword [esi]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x14], edx
sub edx, eax
sar edx, 3
cmp ecx, edx
jae 0x582699
push dword [ebp - 0x14]
lea esi, [eax + ecx*8]
push esi
lea ecx, [edi + 0x40]
call fcn.0047e670
mov dword [edi + 0x44], esi
lea esi, [edi + 0x40]
jmp 0x5826c8
jbe 0x5826c8
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 3
cmp ecx, eax
jbe 0x5826b5
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00582400
jmp 0x5826c8
push dword [ebp - 0x18]
sub ecx, edx
push ecx
push dword [ebp - 0x14]
mov ecx, esi
call fcn.005835b0
mov dword [esi + 4], eax
mov eax, dword [edi + 0x44]
mov esi, dword [esi]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
cmp esi, eax
je 0x582712
nop word [eax + eax]
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x58270b
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x582701
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], 0
add esi, 8
cmp esi, eax
jne 0x5826e0
mov ecx, dword [edi + 0x10]
lea esi, [edi + 0x4c]
mov edx, dword [esi + 4]
mov edi, edx
sub edi, dword [esi]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
sar edi, 2
and ecx, 0x1f
mov dword [ebp - 0x1c], ecx
mov ecx, 0
setne cl
mov dword [ebp - 0x20], 0
shr eax, 5
add ecx, eax
cmp ecx, edi
je 0x582784
jae 0x58274f
mov edx, dword [esi]
lea edx, [edx + ecx*4]
jmp 0x582781
jbe 0x582784
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 2
cmp ecx, eax
jbe 0x58276e
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call fcn.005822d0
mov edx, dword [esi + 4]
jmp 0x582784
sub ecx, edi
mov dword [ebp - 0x14], ecx
je 0x582781
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
lea edx, [edx + eax*4]
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x1c]
mov edi, 1
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x5827a1
mov eax, edi
shl eax, cl
dec eax
and dword [edx - 4], eax
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x1c], 0
add ecx, 3
mov dword [ebp - 0x18], edx
shr ecx, 2
cmp eax, edx
mov dword [ebp - 0x14], eax
cmova ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x5827d0
mov edi, dword [esi]
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, 1
mov ecx, dword [esi + 0xc]
and ecx, 0x1f
je 0x5827e1
mov eax, dword [esi + 4]
shl edi, cl
dec edi
and dword [eax - 4], edi
mov esi, dword [ebp - 0x24]
push 1
mov eax, dword [esi + 0x10]
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x80]
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
push eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.0052bab0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a4e1e
mov esp, ebp
pop ebp
ret 8