Function at 0x10028d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004a28a
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 0x10028f20
lea ebx, [edi + 1]
test ebx, ebx
jne 0x10028d9b
mov esi, dword [ebp + 4]
test esi, esi
je 0x10028d8e
mov ecx, eax
dec eax
test ecx, ecx
je 0x10028d7b
lea ebx, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebx
jne 0x10028d6d
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 0x10028f20
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x10028dfd
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 0x10028de3
mov ecx, esi
call fcn.1001b8f0
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x10028dcf
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x10028f1c
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x10028e83
cmp eax, ebx
jge 0x10028e69
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 0x10028e5d
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 2
je 0x10028e4e
mov ecx, esi
call fcn.1001b8f0
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x10028e3a
mov edi, dword [esp + 0x28]
mov dword [ebp + 8], ebx
jmp 0x10028f20
jle 0x10028e61
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 0x10028f20
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x10028eae
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x10028ea1
mov ecx, 4
jmp 0x10028eae
cmp ecx, 0x400
jle 0x10028eae
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x10028ebd
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.1001b150
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.1001b930
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14