Function at 0x432c46
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x67c
call fcn.0042c2d3
cmp dword [0x50e620], 0x10
je 0x432eb2
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x50e06c], edi
je 0x432c74
push edi
call fcn.00429468
push dword [0x50e6e0]
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.00449e38
mov ebx, eax
mov eax, esi
shl eax, 2
push eax
push edi
push ebx
mov dword [ebp - 8], ebx
call fcn.00449f2b
add esp, 0x10
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], edi
push edi
jmp 0x432e87
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4a5af8
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageIndex]
test eax, eax
je 0x432e7c
mov eax, dword [ebp - 4]
add eax, dword [0x4a5b20]
mov dword [ebp - 4], eax
cmp dword [ebx + eax*4], 2
je 0x432e7c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00428835
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.00428e72
test eax, eax
je 0x432e1a
push 0x2c
push edi
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
cmp esi, edi
je 0x432e1a
lea eax, [esi + 2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
push eax
call fcn.00449f47
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 0x432e15
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 0x432e0e
cmp dword [0x51adac], 5
jl 0x432dea
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.0044fe2e
add esp, 0x18
push esi
push dword [ebp - 4]
push dword [0x50e6e0]
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 0x432e7c
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 0x432e7c
cmp dword [0x51adac], 5
jl 0x432e57
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 4]
push str.replace_clsicon__i__s_with_SetupDiLoadClassIcon
push 5
call fcn.0044fe2e
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [0x50e6e0]
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 0x432cc1
cmp dword [0x50e06c], edi
je 0x432ea3
push edi
call fcn.00429468
push ebx
call fcn.00449e73
pop ecx
call fcn.0042c2d3
pop edi
pop esi
pop ebx
leave
ret 4