Function at 0x10004f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100116b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x2c]
push ebx
xor ebx, ebx
push esi
test al, al
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
je 0x1000504f
mov al, byte [esp + 0x38]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.10001420
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], ebx
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x10004f99
mov ecx, dword [0x100121cc]
add eax, 0xc
push ecx
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.100069e0
mov edi, 0x1001485c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1001485c
lea ecx, [esp + 0x18]
call fcn.100057a0
lea ecx, [esp + 0x38]
call fcn.10006f50
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x10004f52
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp ecx, ebx
mov edi, ecx
jbe 0x10005000
mov edx, dword [esp + 0x14]
cmp ecx, esi
jb 0x10004fc7
cmp edx, ebx
je 0x10004fc7
lea ecx, [esp + 0x10]
call fcn.10005550
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx + esi]
jmp 0x10004fcc
mov eax, 0x100121c8
cmp byte [eax], 0xa
jne 0x10004ffb
cmp ecx, esi
jb 0x10004feb
cmp edx, ebx
je 0x10004feb
lea ecx, [esp + 0x10]
call fcn.10005550
mov edx, dword [esp + 0x14]
lea eax, [edx + esi]
jmp 0x10004ff0
mov eax, 0x100121c8
mov byte [eax], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, edi
jb 0x10004fa9
mov esi, dword [esp + 0x30]
mov al, byte [esp + 0x10]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.10001420
mov ecx, dword [0x100121cc]
lea edx, [esp + 0x10]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.10005860
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10001420
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.100066b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x100050a6
mov esi, dword [esp + 0x30]
mov dl, byte [eax + 0x1c]
add eax, 0x1c
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x100121cc]
push ecx
push ebx
push eax
mov ecx, esi
call fcn.10005860
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
mov dl, byte [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x34]
mov edi, 0x100175a0
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], dl
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.10005c70
test al, al
je 0x100050fc
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, 0x100175a0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov ecx, dword [esp + 0x24]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc