Function at 0x10029120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004a2ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov dword [esp + 0x20], 0
jl 0x10029320
lea ebx, [edi + 1]
test ebx, ebx
jne 0x1002919b
mov esi, dword [ebp + 4]
test esi, esi
je 0x1002918e
mov ecx, eax
dec eax
test ecx, ecx
je 0x1002917b
lea ebx, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebx
jne 0x1002916d
mov eax, dword [ebp + 4]
push eax
call fcn.10035c00
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x10029320
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x100291fd
mov edi, ebx
shl edi, 4
push edi
call fcn.10035bd7
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x100291e3
mov ecx, esi
call fcn.1001b820
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x100291cf
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x1002931c
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x10029283
cmp eax, ebx
jge 0x10029269
mov edx, ebx
sub edx, eax
shl eax, 4
add eax, ecx
mov ecx, edx
shl ecx, 4
mov esi, ecx
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x1002925d
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 2
je 0x1002924e
mov ecx, esi
call fcn.1001b820
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x1002923a
mov edi, dword [esp + 0x28]
mov dword [ebp + 8], ebx
jmp 0x10029320
jle 0x10029261
mov edx, ebx
sub eax, ebx
shl edx, 4
add edx, ecx
push eax
push edx
call fcn.10028f70
mov dword [ebp + 8], ebx
jmp 0x10029320
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x100292ae
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x100292a1
mov ecx, 4
jmp 0x100292ae
cmp ecx, 0x400
jle 0x100292ae
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x100292bd
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
shl eax, 4
push eax
call fcn.10035bd7
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 4
mov edx, eax
mov eax, ecx
mov edi, edx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov ecx, ebx
sub ecx, eax
shl eax, 4
add eax, edx
push ecx
push eax
call fcn.1001b1d0
mov eax, dword [ebp + 4]
push eax
call fcn.10035c00
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], edx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
shl edi, 4
add edi, ecx
lea ecx, [esp + 0x30]
mov esi, edi
push ecx
lea ecx, [esi + 4]
call fcn.10036dda
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x38]
mov dword [esi + 0xc], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.1001b860
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14