Function at 0x4480d0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a214
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x23c], ebx
mov esi, ecx
mov edi, dword [ebp + 8]
push 0x5bf22c
mov dword [ebp - 0x238], edi
call fcn.0040a320
add esp, 4
test esi, esi
je 0x44898b
test ebx, ebx
je 0x44898b
test edi, edi
je 0x44898b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x4481e4
lea ecx, [ebp - 0x224]
call fcn.0040b840
mov dword [ebp - 4], 0
call fcn.0050acc0
cmp dword [0x6412b4], 0x400
lea ecx, [ebp - 0x224]
jl 0x448184
push str.imageres.dll
call fcn.0040c280
mov dword [ebp - 0x238], 0x89
jmp 0x448198
push str.Shell32.dll
call fcn.0040c280
mov dword [ebp - 0x238], 0x55
lea ecx, [ebp - 0x224]
call fcn.00447ae0
mov esi, dword [ebp - 0x224]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, dword [ebp - 0x238]
add esi, 0xfffffff0
mov dword [edi], eax
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4481da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x44898d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x44845c
push str._ParseAssociateIcon_1_n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x228]
call fcn.0040b840
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push 0
push str.DirectoryDefaultIcon
push SysReAllocString
mov dword [ebp - 0x234], 0
call edi
mov eax, dword [ebp - 0x220]
cmp eax, 2
je 0x44826e
cmp eax, 1
je 0x44826e
lea ecx, [ebp - 0x228]
xor esi, esi
call fcn.0040c450
mov eax, esi
jmp 0x44898d
mov eax, dword [ebp - 0x228]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x44829f
push 0x104
lea ecx, [ebp - 0x228]
call fcn.0040c110
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x234]
push ecx
push eax
push 0
push 0
push str.DirectoryDefaultIcon
push SysReAllocString
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.0040b920
lea ecx, [ebp - 0x21c]
call fcn.0040b840
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x228]
call fcn.00447c10
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4483e3
push esi
push str._ParseAssociateIcon_PathIsRoot__s_n
call fcn.0040a320
add esp, 8
mov edi, 8
call fcn.0050acc0
cmp dword [0x6412b4], 0x400
jl 0x4483e9
push str._ParseAssociateIcon_IsVistaOrLater__n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x21c]
push str.imageres.dll
call fcn.0040c280
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push str._systemroot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040c2d0
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jl 0x4483c4
push esi
push eax
call fcn.00552a08
add esp, 8
test eax, eax
je 0x4483c4
sub eax, dword [ebp - 0x224]
sar eax, 1
jne 0x4483c4
push str._ParseAssociateIcon_IsVistaOrLater__36_n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x224]
mov edi, 0xffffffdc
call fcn.0040c450
jmp 0x4483e9
push str._ParseAssociateIcon_IsVistaOrLater__32_n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x224]
mov edi, 0xffffffe0
call fcn.0040c450
jmp 0x4483e9
mov edi, dword [ebp - 0x23c]
lea ecx, [ebp - 0x21c]
call fcn.00447ae0
mov esi, dword [ebp - 0x21c]
push esi
push str._ParseAssociateIcon_checkpath__s_n
call fcn.0040a320
add esp, 8
cmp dword [esi - 0xc], 0
je 0x44843d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44843d
push str._ParseAssociateIcon_checkpath_ok__n
call fcn.0040a320
add esp, 4
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ecx, dword [ebp - 0x238]
mov esi, 1
mov dword [ecx], edi
jmp 0x44843f
xor esi, esi
lea ecx, [ebp - 0x21c]
call fcn.0040c450
lea ecx, [ebp - 0x228]
call fcn.0040c450
mov eax, esi
jmp 0x44898d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], 0
mov esi, eax
mov dword [ebp - 0x230], 0
call fcn.0040b840
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 3
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push SysReAllocString
call edi
cmp dword [ebp - 0x22c], 1
je 0x4484d5
push str._ParseAssociateIcon_SHGetValue_HKEY_CLASSES_ROOT__pExtName__NULL__dwType__NULL__dwSize__n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x228]
xor esi, esi
call fcn.0040c450
mov eax, esi
jmp 0x44898d
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
shr eax, 1
add eax, 8
push eax
call fcn.0040c180
push eax
push 0
push 0
push esi
push SysReAllocString
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.0040b920
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x22c], 0
call fcn.0040b840
mov byte [ebp - 4], 4
lea eax, [ebp - 0x224]
mov esi, dword [ebp - 0x228]
push esi
push str._sDefaultIcon
push eax
call fcn.00422de0
mov ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x230]
add esp, 0xc
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push ebx
push SysReAllocString
call edi
mov eax, dword [ebp - 0x22c]
cmp eax, 2
je 0x4487e5
cmp eax, 1
je 0x44866d
lea ecx, [ebp - 0x220]
call fcn.0040b840
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 5
push str._sCurVer
push eax
call fcn.00422de0
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x230]
add esp, 0xc
mov dword [ebp - 0x22c], 0
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push edi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x22c]
cmp eax, 2
je 0x4485db
cmp eax, 1
jne 0x448656
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
shr eax, 1
add eax, 8
push eax
call fcn.0040c180
push eax
push 0
push 0
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push SysReAllocString
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.0040b920
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x224]
push esi
push str._sDefaultIcon
push eax
call fcn.00422de0
mov ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x230]
add esp, 0xc
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push ebx
push SysReAllocString
call edi
jmp 0x44865c
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x220]
call fcn.0040c450
mov eax, dword [ebp - 0x22c]
cmp eax, 2
je 0x4487e5
cmp eax, 1
je 0x4487e5
push str._ParseAssociateIcon____dwType__REG_EXPAND_SZ__dwType__REG_SZ__n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.0040b840
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 9
push str._s_shellopencommand
push eax
call fcn.00422de0
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x230]
add esp, 0xc
mov dword [ebp - 0x22c], 0
push eax
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push SysReAllocString
call edi
mov eax, dword [ebp - 0x22c]
cmp eax, 2
je 0x4486fd
cmp eax, 1
je 0x4486fd
push esi
push str._ParseAssociateIcon_command__s_n
call fcn.0040a320
add esp, 8
jmp 0x448964
lea ecx, [ebp - 0x21c]
call fcn.0040b840
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xa
push eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x21c]
shr eax, 1
add eax, 8
push eax
call fcn.0040c180
push eax
push 0
push 0
push esi
push SysReAllocString
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040b920
push 0x5bd554
push 0x5bd554
lea ecx, [ebp - 0x21c]
call fcn.004474b0
mov ecx, eax
call fcn.00448ac0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jl 0x4487c6
push str..exe
push eax
call fcn.00552a08
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
test ecx, ecx
je 0x4487c6
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4487c6
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004120e0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xb
call fcn.0040b7d0
lea ecx, [ebp - 0x234]
call fcn.0040c450
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ecx, dword [ebp - 0x238]
mov dword [ecx], 0
jmp 0x448923
push str._ParseAssociateIcon_dwType__REG_EXPAND_SZ__dwType__REG_SZ_n
call fcn.0040a320
add esp, 4
lea ecx, [ebp - 0x220]
call fcn.0040b840
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
shr eax, 1
add eax, 8
push eax
call fcn.0040c180
push eax
push 0
push 0
push ebx
push SysReAllocString
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b920
lea ecx, [ebp - 0x21c]
call fcn.0040b840
mov byte [ebp - 4], 7
mov edx, 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x448879
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.0040c110
mov eax, dword [ebp - 0x21c]
push 0x104
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040b920
lea ecx, [ebp - 0x234]
call fcn.0040b840
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x21c]
call fcn.00447c10
lea ecx, [ebp - 0x234]
call fcn.00447ae0
mov esi, dword [ebp - 0x234]
push esi
push str._ParseAssociateIcon_checkpath__s_n
call fcn.0040a320
add esp, 0xc
cmp dword [esi - 0xc], 0
je 0x44894e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44894e
push str._ParseAssociateIcon_checkpath_ok_n
call fcn.0040a320
add esp, 4
push esi
mov esi, dword [ebp - 0x23c]
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x240]
mov dword [ecx], eax
lea ecx, [ebp - 0x234]
call fcn.0040c450
lea ecx, [ebp - 0x21c]
call fcn.0040c450
lea ecx, [ebp - 0x220]
call fcn.0040c450
push esi
push str._ParseAssociateIcon_return__s_n
call fcn.0040a320
add esp, 8
mov esi, 1
jmp 0x448971
lea ecx, [ebp - 0x234]
call fcn.0040c450
lea ecx, [ebp - 0x21c]
call fcn.0040c450
lea ecx, [ebp - 0x220]
call fcn.0040c450
xor esi, esi
lea ecx, [ebp - 0x224]
call fcn.0040c450
lea ecx, [ebp - 0x228]
call fcn.0040c450
mov eax, esi
jmp 0x44898d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret