Function at 0x4af150
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b42fb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x6360e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xbc], eax
mov edi, dword [ebx + 8]
mov edx, dword [eax]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 4], 0
mov eax, dword [edx + 4]
mov esi, dword [eax + 0x80]
mov eax, 1
add esi, dword [edx + 0x10]
cmp esi, eax
cmovb esi, eax
mov eax, dword [edx + 0xd4]
push esi
mov dword [ebp - 0xcc], esi
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx + 0xd0]
add ecx, 0xd0
call dword [eax + 0x20]
mov eax, dword [ebp - 0xbc]
xorps xmm0, xmm0
mov dword [ebp - 0x30], esi
movups xmmword [ebp - 0x160], xmm0
mov ecx, dword [eax]
movups xmmword [ebp - 0x150], xmm0
movups xmmword [ebp - 0x140], xmm0
mov eax, dword [ecx + 0x58]
add eax, dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xb0], eax
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], eax
mov al, byte [ebp - 0x110]
and al, 0xfc
movups xmmword [ebp - 0x130], xmm0
mov byte [ebp - 0x99], al
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
add eax, ecx
mov dword [ebp - 0xa8], eax
cmp ecx, eax
je 0x4af2ab
mov edx, dword [edi + 0x2c]
mov esi, dword [edi + 0x28]
nop dword [eax]
lea eax, [edx - 1]
and eax, ecx
mov eax, dword [esi + eax*4]
test byte [eax + 0x58], 1
je 0x4af392
inc ecx
cmp ecx, dword [ebp - 0xa8]
jne 0x4af290
cmp dword [edi + 0x34], 0
setne al
mov cl, byte [ebp - 0x99]
xorps xmm0, xmm0
and cl, 0xfe
mov esi, dword [ebp - 0xbc]
or cl, al
lea eax, [ebp - 0x168]
push eax
push dword [ebx + 0x1c]
mov byte [ebp - 0x99], cl
sub esp, 0x20
mov byte [ebp - 0x110], cl
mov eax, esp
mov ecx, esi
sub esp, 0x20
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov eax, esp
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [eax + 0x10], xmm0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.004af8d0
mov esi, dword [esi]
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [esi + 4]
add ecx, 0x24
call fcn.004c4be0
mov eax, dword [ebx + 0xc]
add eax, 5
mov dword [ebp - 0xe0], 0x10
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xcc]
add eax, 0xfffffff0
mov dword [ebp - 0xdc], 0x10
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xe4], eax
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x4af399
mov al, byte [edi + 0x3c]
lea edx, [ebp - 0xa0]
mov esi, dword [ebp - 0xb0]
push edx
mov byte [ebp - 0xa0], al
lea edx, [ebp - 0xe8]
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 8]
jmp 0x4af3f2
xor al, al
jmp 0x4af2b2
push str.double
lea ecx, [ebp - 0xc8]
call fcn.004d4fc0
mov esi, dword [ebp - 0xb0]
lea ecx, [ebp - 0xc8]
xor eax, eax
xorps xmm0, xmm0
cmp byte [edi + 0x3c], al
push 0
sete al
inc eax
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x88], xmm0
call fcn.004d5180
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4af3fc
mov ecx, dword [edi]
mov eax, dword [ebx + 0xc]
add eax, 0x14
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x108]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0xac]
push ecx
push eax
mov ecx, esi
call fcn.0046ef10
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4af440
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0046de10
cmp byte [edi + 0x3d], 0
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
je 0x4af798
mov ecx, dword [edi + 0x34]
lea esi, [ebp - 0x17]
mov dword [ebp - 0xa4], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa4]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x4af470
lea eax, [ebp - 0x17]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
cmp esi, eax
jne 0x4af4cf
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
jmp 0x4af4de
lea eax, [ebp - 0x17]
sub eax, esi
lea ecx, [ebp - 0x74]
push eax
push esi
call fcn.0040496b
push 0x28
push 1
push 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.0040f0a2
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0xb8], ecx
cmp edi, ecx
jae 0x4af541
lea eax, [edi + 1]
cmp ecx, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov word [eax + edi], 0x29
jmp 0x4af64e
mov edx, SysReAllocString
mov eax, edx
sub eax, edi
cmp eax, 1
jb 0x4af8b6
lea esi, [edi + 1]
or esi, 0xf
cmp esi, edx
jbe 0x4af561
mov esi, edx
jmp 0x4af579
mov eax, ecx
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4af572
mov esi, SysReAllocString
jmp 0x4af579
add eax, ecx
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov dword [ebp - 0xa4], esi
add esi, 1
setb cl
neg ecx
or ecx, esi
cmp ecx, 0x1000
jb 0x4af5ba
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x4af8bb
push eax
call fcn.00577033
add esp, 4
test eax, eax
je 0x4af8c0
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4af5cd
test ecx, ecx
je 0x4af5cb
push ecx
call fcn.00577033
add esp, 4
mov esi, eax
jmp 0x4af5cd
xor esi, esi
cmp dword [ebp - 0xb8], 0x10
lea eax, [edi + 1]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x30], eax
push edi
jb 0x4af638
push dword [ebp - 0x44]
push esi
call fcn.00578ab0
mov edx, dword [ebp - 0xb8]
add esp, 0xc
mov eax, dword [ebp - 0x44]
inc edx
mov word [edi + esi], 0x29
mov ecx, eax
cmp edx, 0x1000
jb 0x4af62c
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0xb8], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4af8c0
mov eax, dword [ebp - 0xb8]
push edx
push eax
call fcn.005772b4
add esp, 8
jmp 0x4af64b
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.00578ab0
add esp, 0xc
mov word [edi + esi], 0x29
mov dword [ebp - 0x44], esi
movups xmm0, xmmword [ebp - 0x44]
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x80], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.004c4810
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x4af6c2
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4af6b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af8c0
push ecx
push edx
call fcn.005772b4
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
cmp ecx, 0x10
jb 0x4af6fa
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4af6f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af8c0
push ecx
push edx
call fcn.005772b4
add esp, 8
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx + 0xc]
cmovae ecx, dword [ebp - 0x5c]
add eax, 0x19
mov edi, dword [ebp - 0xa8]
add eax, edi
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push ecx
push eax
mov ecx, esi
call fcn.0046edf0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
mov ecx, esi
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0046de10
mov ecx, dword [ebp - 0x48]
add edi, dword [eax]
cmp ecx, 8
jb 0x4af79e
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4af78c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af8c5
push ecx
push edx
call fcn.005772b4
add esp, 8
jmp 0x4af79e
mov edi, dword [ebp - 0xa8]
lea ecx, [edi + 0x23]
cmp ecx, dword [ebp - 0xd0]
jae 0x4af863
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp - 0xcc]
add ecx, 0x1e
add ecx, edi
cdq
sub eax, edx
mov dword [ebp - 0xac], ecx
mov ecx, dword [ebx + 0xc]
sar eax, 1
add ecx, 0xfffffffb
add eax, dword [ebp - 0xb4]
add ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xd0], eax
mov eax, dword [esi]
mov dword [ebp - 0xd4], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x4af84e
movsd xmm0, qword [ebp - 0x108]
call fcn.005a08e0
movsd xmm0, qword [ebp - 0x100]
movzx edi, al
call fcn.005a08e0
movsd xmm0, qword [ebp - 0xf8]
movzx esi, al
shl esi, 8
call fcn.005a08e0
mov ecx, dword [ebp - 0xc0]
movzx edx, al
mov eax, edi
shl eax, 0x10
or eax, edx
shl edx, 0x10
or eax, esi
or edx, esi
mov esi, dword [ebp - 0xb0]
or edx, edi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x30], edx
lea eax, [ebp - 0xd4]
mov ecx, esi
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0046ef50
test byte [ebp - 0x99], 1
je 0x4af889
mov eax, dword [ebp - 0xd8]
cmp byte [eax + 0x3c], 0
jne 0x4af889
push dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xbc]
call fcn.004b0ee0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
xor edi, edi
xor esi, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00577025
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x38
call fcn.004015dd
call fcn.00401539
call fcn.0057c388
call fcn.0057c388
int3