Function at 0x10004ef0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x6fdceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
mov ebx, dword [esp + 0xbc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc0]
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + 2]
mov dh, byte [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 1]
xor eax, eax
push ecx
mov ah, byte [ebx + 0x10]
xor ecx, ecx
mov al, byte [ebx + 0x11]
mov cl, byte [ebx + 0x12]
shl eax, 8
push edx
or eax, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [ebx + 0x13]
mov cl, byte [ebx + 0xe]
shl eax, 8
or eax, edx
xor edx, edx
push eax
xor eax, eax
mov ah, byte [ebx + 0xc]
mov dl, byte [ebx + 0xf]
mov al, byte [ebx + 0xd]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
push eax
lea eax, [esp + 0x3c]
push 0x705ec4
push eax
call fcn.1000b4e9
mov cl, byte [esp + 0x2b]
lea edi, [esp + 0x44]
mov byte [esp + 0x30], cl
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.10006470
test al, al
je 0x10004fed
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.10006450
xor esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xb4], esi
lea esi, [eax + 0x608]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000507a
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1000507a
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x1000507a
mov edx, dword [esp + 0x20]
test edx, edx
je 0x1000507a
lea edx, [esp + 0x18]
push eax
push edx
call ecx
add esp, 8
test eax, eax
jl 0x1000507a
cmp eax, dword [esi + 0xc]
jge 0x1000507a
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + eax*4]
test ebp, ebp
je 0x1000507a
mov eax, dword [ebp + 4]
mov edi, dword [eax]
cmp edi, eax
je 0x1000507a
mov esi, dword [edi + 8]
test esi, esi
je 0x10005071
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1000505a
mov eax, 0x6ff3c8
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
push eax
mov eax, dword [esi + 8]
push eax
push 0
call fcn.10006930
test eax, eax
je 0x100050a3
mov edi, dword [edi]
mov eax, dword [ebp + 4]
cmp edi, eax
jne 0x10005046
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb4], 0xffffffff
test eax, eax
je 0x100050b1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x100050a8
cmp al, 0xff
je 0x100050a8
dec al
mov byte [ecx], al
jmp 0x100050b1
mov esi, dword [esi + 0x10]
jmp 0x1000507c
push ecx
call fcn.100168d7
add esp, 4
test esi, esi
jne 0x1000516f
push 0x438
call fcn.100168ae
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1000516b
mov edx, dword [esp + 0xc4]
mov ecx, 0x10e
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [edx]
lea ecx, [ebp + 4]
mov dword [ebp + 4], eax
mov dx, word [edx + 4]
mov word [ecx + 4], dx
call dword [0x6ff204]
lea edi, [ebp + 0xa]
mov ecx, 5
mov esi, ebx
mov dword [ebp + 0x434], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc0]
lea edi, [ebp + 0x1e]
mov ecx, 5
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xc8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x32]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
sub esp, 0x10
and ecx, 3
lea edx, [esp + 0x27]
rep movsb byte es:[edi], byte [esi]
mov ecx, esp
mov dword [esp + 0x3c], esp
lea eax, [esp + 0x40]
push edx
push eax
mov dword [ebp], 1
call fcn.10005a90
mov ecx, dword [esp + 0x28]
call fcn.10005ca0
mov eax, ebp
jmp 0x10005171
mov eax, esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8
ret 0x10