Function at 0x520780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ed4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x5fac04]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [ebp + 4], eax
mov ecx, dword [0x5fac04]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [ebp + 8], ecx
mov eax, 0x602ff0
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x28], ebx
lea ecx, [ebp + 0x44]
mov byte [esp + 0x38], 3
call fcn.005cf746
lea ecx, [ebp + 0x58]
mov byte [esp + 0x38], 4
call fcn.005cf746
mov edx, dword [0x5fac04]
mov dword [ebp + 0x6c], edx
mov eax, dword [0x5fac04]
mov dword [ebp + 0x70], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, edx
mov byte [esp + 0x38], 7
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
lea esi, [edi + 1]
mov byte [esp + 0x28], bl
cmp esi, ebx
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov dword [esp + 0x10], edi
jne 0x520864
cmp eax, ebx
je 0x520859
push eax
call fcn.005d14a1
add esp, 4
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
jmp 0x52097a
cmp eax, ebx
jne 0x52089a
mov edi, esi
shl edi, 4
push edi
call fcn.005d1478
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x10], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], esi
jmp 0x520976
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jg 0x5208cf
cmp esi, edx
jle 0x5208c7
mov ecx, esi
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov dword [ebp + 0x14], esi
jmp 0x52097a
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
jne 0x5208f9
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5208ed
mov eax, 4
jmp 0x5208f9
cmp eax, 0x400
jle 0x5208f9
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x14], eax
jl 0x520907
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
shl eax, 4
push eax
call fcn.005d1478
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
shl ecx, 4
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
lea esi, [ecx + 1]
mov ecx, esi
sub ecx, edx
shl edx, 4
add edx, eax
xor eax, eax
shl ecx, 4
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
push eax
call fcn.005d14a1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 8
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], edx
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x28]
shl edi, 4
add edi, eax
xor eax, eax
mov edx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
or eax, 0xffffffff
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xc], edx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x40], eax
pop edi
mov dword [ebp], ebx
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x3c], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret