Function at 0x501bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e74d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x5f5614]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [ebp + 4], eax
mov ecx, dword [0x5f5614]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [ebp + 8], ecx
mov eax, 0x5ef1e0
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.005ba763
lea ecx, [ebp + 0x58]
mov byte [esp + 0x38], 4
call fcn.005ba763
mov edx, dword [0x5f5614]
mov dword [ebp + 0x6c], edx
mov eax, dword [0x5f5614]
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 0x501c94
cmp eax, ebx
je 0x501c89
push eax
call fcn.005bc175
add esp, 4
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
jmp 0x501daa
cmp eax, ebx
jne 0x501cca
mov edi, esi
shl edi, 4
push edi
call fcn.005bc14c
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 0x501da6
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jg 0x501cff
cmp esi, edx
jle 0x501cf7
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 0x501daa
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
jne 0x501d29
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x501d1d
mov eax, 4
jmp 0x501d29
cmp eax, 0x400
jle 0x501d29
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x14], eax
jl 0x501d37
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
shl eax, 4
push eax
call fcn.005bc14c
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.005bc175
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
mov eax, 1
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xc], edx
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], eax
or eax, 0xffffffff
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