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

Disassembly:
push 0xffffffffffffffff
push 0x4c57e0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4de0]
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.00404050
push 1
push 0x4d689c
lea ecx, [esp + 0x20]
mov dword [esp + 0xf4], 0
call fcn.004062f0
test esi, esi
jne 0x40c4c0
xor eax, eax
jmp 0x40c4d4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c4c5
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004062f0
push 1
push 0x4d689c
lea ecx, [esp + 0x20]
call fcn.004062f0
mov eax, str.MicrosoftEdgeCapabilities
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40c4f7
sub eax, ecx
sar eax, 1
push eax
push str.MicrosoftEdgeCapabilities
lea ecx, [esp + 0x20]
call fcn.004062f0
lea ecx, [esp + 0x30]
call fcn.00410520
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.00404050
push ecx
mov byte [esp + 0xfc], 2
mov edx, dword [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00404050
push SysReAllocStringLen
lea ecx, [esp + 0x5c]
mov byte [esp + 0x100], 1
call fcn.0040b9b0
push eax
mov byte [esp + 0xf4], 3
call fcn.0040baa0
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 0x40c5a8
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 0x40c5c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40c881
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edi, ecx
cmp ecx, eax
jbe 0x40c5eb
call fcn.00497857
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 0x40c604
call fcn.00497857
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
lea esp, [esp]
test esi, esi
je 0x40c61a
cmp esi, dword [esp + 0x48]
je 0x40c61f
call fcn.00497857
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x20], edx
je 0x40c849
lea esi, [esp + 0x1c]
call fcn.00413ea0
mov esi, eax
mov eax, dword [0x4fc0d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc0d8
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 str._s_s
push ecx
call fcn.004048a0
mov edx, dword [0x4fc0d8]
mov eax, dword [edx + 0xc]
add esp, 0x10
mov ecx, 0x4fc0d8
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.00404760
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.00404050
push SysReAllocStringLen
lea ecx, [esp + 0xac]
mov byte [esp + 0x100], bl
call fcn.0040b9b0
push eax
mov byte [esp + 0xf4], 7
call fcn.0040be00
add esp, 8
lea ecx, [esp + 0x98]
mov edi, eax
mov byte [esp + 0xec], bl
call fcn.0040c410
test edi, edi
mov edi, dword [esp + 0x24]
je 0x40c7d1
push edi
lea ecx, [esp + 0x7c]
call fcn.004068d0
mov byte [esp + 0xec], 8
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x60]
call fcn.004068d0
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xf4], 9
call fcn.00412600
mov ebx, dword [esp + 0xf4]
push eax
mov byte [esp + 0xf0], 0xa
call fcn.004106c0
lea esi, [esp + 0xa8]
call fcn.004116a0
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x40c78a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00493cb0
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 0x40c7b8
mov eax, dword [esp + 0x7c]
push eax
call fcn.00493cb0
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 0x40c7f5
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 0x40c81a
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 0x40c845
call fcn.00497857
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x40c837
call fcn.00497857
add dword [esp + 0x20], 4
mov esi, dword [esp + 0x1c]
jmp 0x40c610
mov eax, dword [eax]
jmp 0x40c829
lea ecx, [esp + 0x30]
call fcn.00410580
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 0x40c87d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40c8b7
lea ecx, [esp + 0x30]
call fcn.00410580
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 0x40c8b5
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