Function at 0x433a85
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
call fcn.0042cb52
cmp dword [0x510640], 0x10
je 0x433cf1
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x51008c], edi
je 0x433ab3
push edi
call fcn.00429cda
push dword [0x510700]
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.0044b31e
mov ebx, eax
mov eax, esi
shl eax, 2
push eax
push edi
push ebx
mov dword [ebp - 8], ebx
call fcn.0044b411
add esp, 0x10
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], edi
push edi
jmp 0x433cc6
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4a7b00
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
test eax, eax
je 0x433cbb
mov eax, dword [ebp - 4]
add eax, dword [0x4a7b28]
mov dword [ebp - 4], eax
cmp dword [ebx + eax*4], 2
je 0x433cbb
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042908b
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.004296c8
test eax, eax
je 0x433c59
push 0x2c
push edi
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
cmp esi, edi
je 0x433c59
lea eax, [esi + 2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push eax
call fcn.0044b42d
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 0x433c54
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 0x433c4d
cmp dword [0x51cdd4], 5
jl 0x433c29
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.00451479
add esp, 0x18
push esi
push dword [ebp - 4]
push dword [0x510700]
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 0x433cbb
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 0x433cbb
cmp dword [0x51cdd4], 5
jl 0x433c96
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 4]
push str.replace_clsicon__i__s_with_SetupDiLoadClassIcon
push 5
call fcn.00451479
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [0x510700]
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 0x433b00
cmp dword [0x51008c], edi
je 0x433ce2
push edi
call fcn.00429cda
push ebx
call fcn.0044b359
pop ecx
call fcn.0042cb52
pop edi
pop esi
pop ebx
leave
ret 4