Function at 0x40fb40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cf760
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, ecx
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelRepositoryPackages
lea ecx, [esp + 0x1c]
call fcn.00404030
push 1
push 0x4e0c60
lea ecx, [esp + 0x20]
mov dword [esp + 0xf4], 0
call fcn.004057c0
test esi, esi
jne 0x40fba0
xor eax, eax
jmp 0x40fbb4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fba5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004057c0
push 1
push 0x4e0c60
lea ecx, [esp + 0x20]
call fcn.004057c0
mov eax, str.MicrosoftEdgeCapabilities
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40fbd7
sub eax, ecx
sar eax, 1
push eax
push str.MicrosoftEdgeCapabilities
lea ecx, [esp + 0x20]
call fcn.004057c0
lea ecx, [esp + 0x30]
call fcn.0040b990
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov byte [esp + 0xf8], 1
mov ecx, esp
mov dword [esp + 0x34], esp
push str.URLAssociations
call fcn.00404030
push ecx
mov byte [esp + 0xfc], 2
mov edx, dword [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00404030
push SysReAllocString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x100], 1
call fcn.0040f060
push eax
mov byte [esp + 0xf4], 3
call fcn.0040f150
mov esi, eax
mov byte [esp + 0xf4], 1
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fca8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40ff61
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edi, ecx
cmp ecx, eax
jbe 0x40fccb
call fcn.004a0da7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
cmp ecx, eax
jbe 0x40fce4
call fcn.004a0da7
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
lea esp, [esp]
test esi, esi
je 0x40fcfa
cmp esi, dword [esp + 0x48]
je 0x40fcff
call fcn.004a0da7
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x20], edx
je 0x40ff29
lea esi, [esp + 0x1c]
call fcn.00432a90
mov esi, eax
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xec], 4
mov eax, dword [esp + 0x18]
push str.URLAssociations
push eax
lea ecx, [esp + 0x34]
push 0x4e0d80
push ecx
call fcn.00404ba0
mov edx, dword [0x50739c]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x50739c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
push ecx
mov bl, 5
mov byte [esp + 0xf0], bl
mov eax, dword [esi]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x64], esp
mov edi, esp
push eax
call fcn.00404cb0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0xfc], 6
mov ebp, dword [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0xa4], esp
push ebp
call fcn.00404030
push SysReAllocString
lea ecx, [esp + 0xac]
mov byte [esp + 0x100], bl
call fcn.0040f060
push eax
mov byte [esp + 0xf4], 7
call fcn.0040f4b0
add esp, 8
lea ecx, [esp + 0x98]
mov edi, eax
mov byte [esp + 0xec], bl
call fcn.0040faf0
test edi, edi
mov edi, dword [esp + 0x24]
je 0x40feb1
push edi
lea ecx, [esp + 0x7c]
call fcn.00406560
mov byte [esp + 0xec], 8
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x60]
call fcn.00406560
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xf4], 9
call fcn.00413a60
mov ebx, dword [esp + 0xf4]
push eax
mov byte [esp + 0xf0], 0xa
call fcn.004139c0
lea esi, [esp + 0xa8]
call fcn.0040ffc0
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x40fe6a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0049c830
add esp, 4
xor edx, edx
mov ebx, 7
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], 0
mov word [esp + 0x60], dx
cmp dword [esp + 0x90], esi
jb 0x40fe98
mov eax, dword [esp + 0x7c]
push eax
call fcn.0049c830
add esp, 4
xor ecx, ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], cx
lea eax, [edi - 0x10]
mov byte [esp + 0xec], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0xec], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fefa
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40ff25
call fcn.004a0da7
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x40ff17
call fcn.004a0da7
add dword [esp + 0x20], 4
mov esi, dword [esp + 0x1c]
jmp 0x40fcf0
mov eax, dword [eax]
jmp 0x40ff09
lea ecx, [esp + 0x30]
call fcn.00413830
mov dword [esp + 0xec], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ff5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40ff97
lea ecx, [esp + 0x30]
call fcn.00413830
mov dword [esp + 0xec], 0xffffffff
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 0x40ff95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret