Function at 0x40f6e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cf7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], esi
call fcn.0040b990
mov dword [esp + 0x84], esi
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push str.Microsoft.MicrosoftEdge_8wekyb3d8bbwe
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryFamilies
lea eax, [esp + 0x28]
push 0x4e0d80
push eax
mov byte [esp + 0x94], 1
call fcn.00404ba0
add esp, 0x10
lea ecx, [esp + 0x60]
push ecx
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4e0c80
call fcn.00404030
push ecx
mov byte [esp + 0x94], 2
mov esi, dword [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push esi
call fcn.00404030
push SysReAllocString
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 1
call fcn.0040f060
push eax
mov byte [esp + 0x8c], 3
call fcn.0040f150
add esp, 8
test eax, eax
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x48]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40f80f
mov byte [esp + 0x84], 0
lea eax, [esi - 0x10]
jmp 0x40faae
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryFamilies
lea ecx, [esp + 0x1c]
call fcn.00404030
mov ebx, 1
push ebx
push 0x4e0c60
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 4
call fcn.004057c0
push 0x25
push str.Microsoft.MicrosoftEdge_8wekyb3d8bbwe
lea ecx, [esp + 0x20]
call fcn.004057c0
push ebx
push 0x4e0c60
lea ecx, [esp + 0x20]
call fcn.004057c0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov esi, eax
cmp eax, ecx
jbe 0x40f873
call fcn.004a0da7
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ecx
cmp eax, ecx
jbe 0x40f88c
call fcn.004a0da7
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
test ebp, ebp
je 0x40f89e
cmp ebp, dword [esp + 0x40]
je 0x40f8a3
call fcn.004a0da7
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x3c], edx
je 0x40fa77
lea esi, [esp + 0x38]
call fcn.00432a90
mov edi, eax
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00413670
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push ecx
mov byte [esp + 0x90], 5
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Flags
mov dword [esp + 0x38], 0
call fcn.00404030
mov byte [esp + 0x90], 6
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov esi, esp
push eax
call fcn.00404cb0
add esp, 4
add eax, 0x10
mov dword [esi], eax
push SysReAllocString
lea ecx, [esp + 0x64]
mov byte [esp + 0x98], 5
call fcn.0040f060
or dword [esp + 0x20], ebx
push eax
call fcn.0040f560
add esp, 8
test eax, eax
je 0x40f94c
cmp dword [esp + 0x28], ebx
jne 0x40f94c
mov bl, 1
jmp 0x40f94e
xor bl, bl
test byte [esp + 0x1c], 1
je 0x40f963
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x50]
call fcn.0040faf0
test bl, bl
jne 0x40f9bc
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40f9b7
call fcn.004a0da7
xor eax, eax
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [eax + 0x10]
jb 0x40f9a8
call fcn.004a0da7
add dword [esp + 0x3c], 4
mov ebx, 1
jmp 0x40f894
mov eax, dword [ebp]
jmp 0x40f99a
mov edi, dword [edi]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f9c3
mov ecx, dword [esp + 0x8c]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004069f0
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fa08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
call fcn.00413830
mov al, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fa9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
call fcn.00413830
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret