Function at 0x10005350
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x1000990b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x1000c224
mov dword [esp + 0x14], 0x4d36e96e
mov word [esp + 0x18], 0xe325
mov word [esp + 0x1a], 0x11ce
mov byte [esp + 0x1c], 0xbf
mov byte [esp + 0x1d], 0xc1
mov byte [esp + 0x1e], 8
mov byte [esp + 0x1f], 0
mov byte [esp + 0x20], 0x2b
mov byte [esp + 0x21], 0xe1
mov byte [esp + 0x22], 3
mov byte [esp + 0x23], 0x18
mov dword [esp + 0x10], ebx
call edi
cmp eax, ebx
je 0x100053da
push str.Wow64DisableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x100053da
lea ecx, [esp + 0xc]
push ecx
call eax
lea edx, [esp + 0x148]
push 0x104
push edx
push str._SystemRoot_System32drivers_rsmd5.sys
mov dword [esp + 0x260], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x50
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x20], eax
push 2
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000548d
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviSrnBlocker.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x348
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000c158
push esi
call fcn.100014b0
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x254], 0xffffffff
je 0x10005486
push 0x1000c224
call edi
cmp eax, ebx
je 0x10005486
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10005486
mov ecx, dword [esp + 0xc]
push ecx
call eax
xor eax, eax
jmp 0x100055b3
lea edx, [esp + 0x28]
push ebp
xor eax, eax
mov ecx, 7
lea edi, [esp + 0x2c]
push edx
push eax
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x38], 0x1c
mov ebp, 1
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10005550
push 0
lea eax, [esp + 0x4c]
push 0x103
push eax
push 0
lea ecx, [esp + 0x3c]
push 4
push ecx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov edi, eax
test edi, edi
je 0x1000550c
lea edx, [esp + 0x48]
push str.rsmd5
push edx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x10005554
lea ecx, [esp + 0x2c]
mov eax, ebp
push ecx
push eax
inc ebx
push esi
inc ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x100054bd
jmp 0x10005554
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviSrnBlocker.cpp
mov dword [esp + 0x30], eax
call sub.MSVCRT.dll_strrchr
mov edx, eax
mov eax, dword [esp + 0x30]
add esp, 8
inc edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0x35e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x2c]
push 0x1000c158
push eax
call fcn.100014b0
add esp, 0xc
jmp 0x10005554
mov edi, dword [esp + 0x24]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test edi, edi
je 0x10005575
test ebx, ebx
jbe 0x10005575
dec ebp
cmp ebx, ebp
jne 0x10005575
cmp ebx, dword [esp + 0x24]
jb 0x10005575
mov esi, 1
jmp 0x10005577
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x258], 0xffffffff
test eax, eax
pop ebp
je 0x100055b1
push 0x1000c224
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100055b1
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100055b1
mov ecx, dword [esp + 0xc]
push ecx
call eax
mov eax, esi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c
ret