Function at 0x4afa00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10147aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x101d74a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ebx, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x6c], ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0xc]
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
call dword [0x101526bc]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
add esi, 0x34
mov ecx, 0xa
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x4afa97
mov esi, dword [ebx + 0xc]
sub esi, ecx
mov eax, 0xb21642c9
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4afd16
test ecx, ecx
jne 0x4afaaa
xor eax, eax
jmp 0x4afac3
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, 0x2c8590b
sub ecx, eax
cmp ecx, edi
jae 0x4afad3
call fcn.004be080
cmp dword [ebx + 4], 0
jne 0x4afadd
xor eax, eax
jmp 0x4afaf6
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
cmp esi, eax
jae 0x4afc2e
mov eax, esi
shr eax, 1
mov edx, 0x2c8590b
sub edx, eax
cmp edx, esi
jae 0x4afb13
xor esi, esi
jmp 0x4afb15
add esi, eax
cmp dword [ebx + 4], 0
jne 0x4afb1f
xor eax, eax
jmp 0x4afb38
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx + 4]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
cmp esi, eax
jae 0x4afb49
mov ecx, ebx
call fcn.004ae0b0
mov esi, eax
add esi, edi
push 0
push esi
call fcn.004ae130
mov ecx, dword [ebx + 4]
mov byte [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x74]
push edx
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.004ae8a0
add esp, 0x20
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov ecx, ebx
mov dword [ebp - 0x7c], eax
call fcn.004af5c0
mov ecx, dword [ebx + 8]
mov byte [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
push edx
mov edx, dword [ebp - 0x74]
push edx
push ebx
push eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call fcn.004ae8a0
mov eax, dword [ebx + 4]
add esp, 0x18
test eax, eax
mov dword [ebp - 4], 0
je 0x4afbd0
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add edi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4afbf1
mov ecx, dword [ebx + 8]
push ecx
push eax
mov ecx, ebx
call fcn.004af600
mov eax, dword [ebx + 4]
push eax
call fcn.004e34ac
add esp, 4
mov eax, dword [ebp - 0x78]
imul esi, esi, 0x5c
imul edi, edi, 0x5c
add esi, eax
add edi, eax
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], edi
mov dword [ebx + 4], eax
jmp 0x4afd16
mov ecx, dword [ebx + 8]
mov esi, dword [ebp + 0xc]
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x74], edx
mov eax, 0xb21642c9
imul edx
add edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jae 0x4afce1
mov eax, edi
imul eax, eax, 0x5c
mov dword [ebp - 0x74], eax
add eax, esi
push eax
push ecx
push esi
mov ecx, ebx
call fcn.004af9d0
mov ecx, dword [ebx + 8]
sub ecx, esi
lea edx, [ebp - 0x70]
push edx
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004af5c0
mov eax, dword [ebp - 0x74]
add dword [ebx + 8], eax
mov ebx, dword [ebx + 8]
lea ecx, [ebp - 0x70]
push ecx
sub ebx, eax
push ebx
push esi
mov dword [ebp - 4], 0
call fcn.004ae390
add esp, 0xc
jmp 0x4afd16
imul edi, edi, 0x5c
push ecx
mov eax, ecx
sub eax, edi
push ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x74], eax
call fcn.004af9d0
mov ecx, dword [ebp - 0x74]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x78]
push eax
push ecx
push esi
call fcn.004aec70
lea edx, [ebp - 0x70]
push edx
add edi, esi
push edi
push esi
call fcn.004ae390
add esp, 0x18
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call dword [0x10152680]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e35fa
mov esp, ebp
pop ebp
ret 0x10