Function at 0x580ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7600
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x284], esi
mov eax, dword [esi + 0xc]
push dword [esi + 0x28]
mov dword [esi + 0x30], 0
push dword [esi + 0x24]
lea ecx, [eax*8 + 8]
mov dword [ebp - 0x290], ecx
lea eax, [eax*4 + 4]
lea ecx, [ecx*2 + 4]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], ecx
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x288], eax
call fcn.0057e6c0
lea eax, [esi + 0x10]
mov dword [ebp - 0x28c], 1
mov dword [ebp - 0x29c], eax
nop word [eax + eax]
mov ecx, 0x40
lea esi, [ebp - 0x280]
lea edi, [ebp - 0x180]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x298]
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
call fcn.00464180
mov eax, dword [ebp - 0x28c]
add esp, 4
bswap eax
mov dword [ebp - 0x80], eax
push 4
lea edx, [ebp - 0x80]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x180]
call fcn.00464180
add esp, 4
lea edx, [ebp - 0x80]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x180]
call fcn.00464230
push 0x14
lea edx, [ebp - 0x80]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x100]
call fcn.00464180
add esp, 4
lea edx, [ebp - 0x80]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x100]
call fcn.00464230
mov ecx, 0x40
lea esi, [ebp - 0x280]
lea edi, [ebp - 0x180]
rep movsd dword es:[edi], dword [esi]
push ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x180]
call fcn.0057e8b0
mov edi, dword [ebp - 0x294]
lea eax, [ebp - 0x80]
mov esi, 0x14
cmp edi, esi
cmovb esi, edi
push esi
push eax
push dword [ebp - 0x288]
call fcn.0058aed0
add dword [ebp - 0x288], esi
sub edi, esi
inc dword [ebp - 0x28c]
add esp, 0xc
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x294], edi
test edi, edi
jne 0x580d50
mov esi, dword [ebp - 0x284]
lea eax, [ebp - 0x60]
mov edi, dword [ebp - 0x290]
add eax, edi
push edi
push eax
mov ecx, dword [esi + 0x2c]
call fcn.0057e6c0
mov ax, word [ebp + edi*2 - 0x60]
mov word [esi + 0x20], ax
mov eax, dword [esi + 0x34]
mov dword [eax + 0x14], edi
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x284], ecx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 5
cmp eax, 0x10
ja 0x580ebb
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x580e9e
cmp edi, eax
jne 0x580ebb
mov eax, dword [ecx + 0x20]
lea edx, [ebp - 0x60]
mov ecx, dword [ecx + 0x24]
push edi
add ecx, 0x10
call eax
mov eax, dword [ebp - 0x284]
mov byte [eax + 0x10], 1
xor eax, eax
jmp 0x580ec0
mov eax, 0x80070057
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x580ef6
mov eax, dword [esi + 0x34]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x580f11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x5f79a8
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 2
push eax
call fcn.0058acc1
push 0x5f79a8
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 3
push eax
call fcn.0058acc1
int3