Function at 0x4f0a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c7b6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x5d44ec]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [ebp + 4], eax
mov ecx, dword [0x5d44ec]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [ebp + 8], ecx
mov eax, 0x5ce170
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 + 0x34]
mov byte [esp + 0x38], 3
call fcn.0059c86f
lea ecx, [ebp + 0x48]
mov byte [esp + 0x38], 4
call fcn.0059c86f
mov edx, dword [0x5d44ec]
mov dword [ebp + 0x5c], edx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, edx
mov byte [esp + 0x38], 6
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 0x4f0b1c
cmp eax, ebx
je 0x4f0b11
push eax
call fcn.0059e281
add esp, 4
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
jmp 0x4f0c32
cmp eax, ebx
jne 0x4f0b52
mov edi, esi
shl edi, 4
push edi
call fcn.0059e258
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 0x4f0c2e
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jg 0x4f0b87
cmp esi, edx
jle 0x4f0b7f
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 0x4f0c32
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
jne 0x4f0bb1
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4f0ba5
mov eax, 4
jmp 0x4f0bb1
cmp eax, 0x400
jle 0x4f0bb1
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x14], eax
jl 0x4f0bbf
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
shl eax, 4
push eax
call fcn.0059e258
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.0059e281
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, ebp
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xc], edx
pop edi
mov dword [ebp], ebx
mov dword [ebp + 0x60], ebx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret