Function at 0x40b6a0
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 0x41eb35
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x54], edi
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x5c], edi
mov dword [edi], vtable.CAttrBase.0
mov dword [edi + 4], ecx
mov dword [edi + 0x18], edx
mov eax, dword [edx + 8]
mov dword [ebp - 0x4c], edx
mov ax, word [eax + 8]
mov word [edi + 8], ax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x20]
mov dword [edi + 0x14], eax
mov dword [edi], vtable.CAttrResident.0
mov dword [edi + 0x1c], ecx
movzx eax, word [ecx + 0x14]
add eax, ecx
mov dword [edi + 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x24], eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.CAttr_AttrList_class_CAttrResident_.0
mov dword [edi + 0x28], vtable.CSList_class_CFileRecord_.0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 1
mov eax, dword [edx + 0x10]
and eax, dword [edx + 0x14]
cmp eax, 0xffffffff
je 0x40b9a7
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
mov edx, dword [edi + 0x24]
mov dword [ebp - 0x48], esi
cmp esi, edx
jae 0x40b9a7
lea eax, [esi + 0x20]
mov ecx, edx
sub ecx, esi
cmp eax, edx
mov eax, dword [edi + 0x20]
mov esi, 0x20
cmova esi, ecx
add eax, dword [ebp - 0x48]
push esi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040dd80
add esp, 0xc
cmp esi, 0x20
jne 0x40b9a7
mov eax, dword [ebp - 0x38]
shr eax, 4
mov dword [ebp - 0x44], eax
lea edi, [eax - 1]
cmp edi, 0x10
ja 0x40b9a2
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
movzx eax, word [ebp - 0x24]
cmp ecx, dword [esi + 0x10]
jne 0x40b7f9
cmp eax, dword [esi + 0x14]
je 0x40b98d
mov eax, 1
mov ecx, edi
shl eax, cl
mov dword [ebp - 0x54], eax
test dword [esi + 0x58], eax
je 0x40b98d
push 0x1a0
call fcn.0040bc1d
add esp, 4
mov dword [ebp - 0x3c], eax
push 0x1a0
push 0
push eax
mov byte [ebp - 4], 2
call fcn.0040dbe0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
mov esi, dword [esi + 8]
push 0x40ae00
push 0x40ae10
push 0x10
mov dword [eax], vtable.CFileRecord.0
add eax, 0x5c
push 0x14
push eax
call fcn.0040c3c0
mov eax, dword [ebp - 0x3c]
xorps xmm0, xmm0
push 8
mov byte [ebp - 4], 1
mov dword [eax + 8], esi
mov esi, eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
movups xmmword [esi + 0x18], xmm0
movups xmmword [esi + 0x28], xmm0
movups xmmword [esi + 0x38], xmm0
movups xmmword [esi + 0x48], xmm0
mov dword [esi + 0x58], 0xffffffff
call fcn.0040bc1d
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [eax + 4], esi
mov dword [eax], 0
mov edx, dword [ecx + 0x34]
test edx, edx
jne 0x40b8b2
mov dword [ecx + 0x30], eax
jmp 0x40b8b4
mov dword [edx], eax
inc dword [ecx + 0x2c]
mov dword [ecx + 0x34], eax
mov ecx, esi
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x58], eax
movzx eax, word [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call fcn.004074f0
test eax, eax
je 0x40b9a2
mov ecx, esi
call fcn.004078c0
cmp edi, 0x10
jae 0x40b8f7
lea eax, [edi + edi*4]
mov ecx, dword [esi + eax*4 + 0x64]
mov dword [esi + eax*4 + 0x6c], ecx
test ecx, ecx
je 0x40b8f7
mov esi, dword [ecx + 4]
jmp 0x40b8f9
xor esi, esi
test esi, esi
je 0x40b964
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
lea eax, [eax + eax*4]
lea edi, [edx + eax*4]
nop dword [eax]
push 8
call fcn.0040bc1d
add esp, 4
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [edi + 0x54]
test ecx, ecx
jne 0x40b92f
mov dword [edi + 0x50], eax
jmp 0x40b931
mov dword [ecx], eax
inc dword [edi + 0x4c]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0x10
jae 0x40b95e
mov ecx, dword [ebp - 0x3c]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0x6c]
test eax, eax
je 0x40b95e
mov eax, dword [eax]
mov dword [ecx + 0x6c], eax
test eax, eax
je 0x40b95e
mov esi, dword [eax + 4]
jmp 0x40b960
xor esi, esi
test esi, esi
jne 0x40b910
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
lea eax, [eax + eax*4]
mov dword [ecx + eax*4 + 0x54], 0
mov dword [ecx + eax*4 + 0x50], 0
mov dword [ecx + eax*4 + 0x58], 0
mov dword [ecx + eax*4 + 0x4c], 0
movzx eax, word [ebp - 0x34]
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x40]
cdq
add esi, eax
adc dword [ebp - 0x50], edx
jmp 0x40b790
mov eax, dword [ebp - 0x40]
jmp 0x40b9a9
mov eax, edi
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.0040bc0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8