Function at 0xafae60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xc80f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xce16ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xce16ec]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov esi, edx
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x64], ebx
cmp dword [esi + 0xc], 1
mov eax, dword [esi + 0x28]
sete byte [esp + 0x1b]
mov ecx, eax
shr ecx, 6
test cl, 1
jne 0xafaedd
push 5
push ebp
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00afbdc0
jmp 0xafb120
or eax, 0x40
mov dword [esi + 0x28], eax
cmp dword [esi + 0x20], ebx
jne 0xafaf13
push 0x130
call fcn.00c08a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x64], 1
cmp eax, ebx
je 0xafaf0a
push eax
call fcn.00af3050
jmp 0xafaf0c
xor eax, eax
mov byte [esp + 0x64], bl
mov dword [esi + 0x20], eax
mov ebp, dword [esi + 0x20]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0xafaf38
mov edx, dword [esp + 0x30]
push 5
push edx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00afbdc0
jmp 0xafb120
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea ebx, [esp + 0x20]
xor edi, edi
lea esi, [esp + 0x38]
call fcn.00afcda0
xor esi, esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x64], 2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x28], esi
jle 0xafafe8
jmp 0xafaf76
mov esi, dword [esp + 0x48]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + ecx*4]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push edx
call fcn.00afb150
xor ecx, ecx
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x38]
test esi, esi
je 0xafafc5
jns 0xafafb8
mov ecx, esi
neg ecx
je 0xafafb8
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xafafc0
mov edx, esi
shr edx, 5
lea eax, [eax + edx*4]
and esi, 0x1f
mov ecx, esi
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
lea ebx, [esp + 0x58]
lea edi, [esp + 0x44]
call fcn.00ad5170
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jl 0xafaf72
cmp byte [esp + 0x1b], 0
je 0xafb0ee
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0xc], 1
jne 0xafb014
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
or dword [edi + 0x28], 0xe
mov dword [edi + 0xc], 2
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], eax
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
xor esi, esi
cmp dword [esp + 0x28], esi
jle 0xafb0db
test esi, esi
jns 0xafb04b
mov ecx, esi
neg ecx
je 0xafb04b
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xafb057
mov eax, dword [esp + 0x38]
mov edx, esi
shr edx, 5
lea eax, [eax + edx*4]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
test dword [eax], edx
mov eax, dword [ebp + 0x20]
setne bl
cmp dword [ebp + 0x1c], eax
jne 0xafb0c4
mov ecx, dword [ebp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
jge 0xafb0c4
mov edi, dword [ebp + 0x18]
add ecx, ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x1c]
jl 0xafb091
lea eax, [esp + 0x34]
mov eax, dword [eax]
push eax
mov dword [ebp + 0x20], eax
call fcn.00c07a7c
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
push edi
push eax
mov dword [ebp + 0x18], eax
call fcn.00c0c600
lea eax, [ebp + 0x24]
add esp, 0xc
cmp edi, eax
je 0xafb0c0
push edi
call fcn.00c09081
add esp, 4
mov edi, dword [esp + 0x2c]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov byte [ecx + edx], bl
inc dword [ebp + 0x1c]
inc esi
cmp esi, dword [esp + 0x28]
jl 0xafb02a
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax]
xor esi, esi
push edi
mov dword [esp + 0x28], esi
call edx
jmp 0xafb0f2
mov esi, dword [esp + 0x24]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0xafb108
push eax
call fcn.00c08a36
add esp, 4
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0xafb11e
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00c08a41
add esp, 0x54
ret 4