Function at 0xa5ae60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xbe0f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0xc416ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xc416ec]
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 0xa5aedd
push 5
push ebp
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00a5bdc0
jmp 0xa5b120
or eax, 0x40
mov dword [esi + 0x28], eax
cmp dword [esi + 0x20], ebx
jne 0xa5af13
push 0x130
call fcn.00b68a50
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x64], 1
cmp eax, ebx
je 0xa5af0a
push eax
call fcn.00a53050
jmp 0xa5af0c
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 0xa5af38
mov edx, dword [esp + 0x30]
push 5
push edx
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.00a5bdc0
jmp 0xa5b120
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.00a5cda0
xor esi, esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x64], 2
mov dword [esp + 0x20], esi
cmp dword [esp + 0x28], esi
jle 0xa5afe8
jmp 0xa5af76
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.00a5b150
xor ecx, ecx
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0x38]
test esi, esi
je 0xa5afc5
jns 0xa5afb8
mov ecx, esi
neg ecx
je 0xa5afb8
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xa5afc0
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.00a35170
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jl 0xa5af72
cmp byte [esp + 0x1b], 0
je 0xa5b0ee
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0xc], 1
jne 0xa5b014
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 0xa5b0db
test esi, esi
jns 0xa5b04b
mov ecx, esi
neg ecx
je 0xa5b04b
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
sub edx, esi
shr edx, 5
lea ecx, [edx*4 + 4]
sub eax, ecx
jmp 0xa5b057
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 0xa5b0c4
mov ecx, dword [ebp + 0x20]
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, eax
jge 0xa5b0c4
mov edi, dword [ebp + 0x18]
add ecx, ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x1c]
jl 0xa5b091
lea eax, [esp + 0x34]
mov eax, dword [eax]
push eax
mov dword [ebp + 0x20], eax
call fcn.00b67a7c
mov ecx, dword [ebp + 0x1c]
add esp, 4
push ecx
push edi
push eax
mov dword [ebp + 0x18], eax
call fcn.00b6c600
lea eax, [ebp + 0x24]
add esp, 0xc
cmp edi, eax
je 0xa5b0c0
push edi
call fcn.00b69081
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 0xa5b02a
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 0xa5b0f2
mov esi, dword [esp + 0x24]
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0xa5b108
push eax
call fcn.00b68a36
add esp, 4
mov dword [esp + 0x64], 0xffffffff
test esi, esi
je 0xa5b11e
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.00b68a41
add esp, 0x54
ret 4