Function at 0x431b7a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
call fcn.0042b4a5
cmp dword [0x50b1cc], 0x10
je 0x431de6
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x50ac1c], edi
je 0x431ba8
push edi
call fcn.0042883c
push dword [0x50b28c]
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov esi, eax
add esi, 0xf
and esi, 0xfffffff8
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004483d6
mov ebx, eax
mov eax, esi
shl eax, 2
push eax
push edi
push ebx
mov dword [ebp - 8], ebx
call fcn.004484c9
add esp, 0x10
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], edi
push edi
jmp 0x431dbb
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4a2ae0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
test eax, eax
je 0x431db0
mov eax, dword [ebp - 4]
add eax, dword [0x4a2b08]
mov dword [ebp - 4], eax
cmp dword [ebx + eax*4], 2
je 0x431db0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00427c08
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x67c]
push str.SYSTEMCurrentControlSetControlClass_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x100
lea eax, [ebp - 0x274]
push eax
push str.IconPath
lea eax, [ebp - 0x67c]
push eax
push 0x80000002
call fcn.00428246
test eax, eax
je 0x431d4e
push 0x2c
push edi
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
cmp esi, edi
je 0x431d4e
lea eax, [esi + 2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push eax
call fcn.004484e5
mov ebx, eax
xor eax, eax
mov word [esi], ax
mov dword [esp], 0x104
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push edi
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x431d49
push 0
push dword [ebp + 8]
movzx eax, bx
push dword [ebp + 8]
push 1
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
test esi, esi
je 0x431d42
cmp dword [0x517934], 5
jl 0x431d1e
push ebx
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 4]
push str.replace_clsicon__i__s_with__s__i
push 5
call fcn.0044def7
add esp, 0x18
push esi
push dword [ebp - 4]
push dword [0x50b28c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], 2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 8]
xor edi, edi
mov eax, dword [ebp - 4]
cmp dword [ebx + eax*4], edi
jne 0x431db0
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiLoadClassIcon]
test eax, eax
je 0x431db0
cmp dword [0x517934], 5
jl 0x431d8b
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 4]
push str.replace_clsicon__i__s_with_SetupDiLoadClassIcon
push 5
call fcn.0044def7
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [0x50b28c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 4]
mov dword [ebx + eax*4], 1
inc dword [ebp - 0x10]
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.CFGMGR32.dll_CM_Enumerate_Classes]
test eax, eax
je 0x431bf5
cmp dword [0x50ac1c], edi
je 0x431dd7
push edi
call fcn.0042883c
push ebx
call fcn.00448411
pop ecx
call fcn.0042b4a5
pop edi
pop esi
pop ebx
leave
ret 4