Function at 0x1003eb30
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10159deb
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x101b0cd0]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b0cd0]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a0]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameA]
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
push ebx
push ebx
push str.Ports
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
call esi
mov eax, dword [esp + 0x18]
cmp eax, 1
jb 0x1003ebc9
shl eax, 4
push eax
call fcn.10054f2b
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
shl eax, 4
push eax
push edi
push str.Ports
call esi
cmp eax, ebx
jne 0x1003ebd1
push edi
call fcn.10054ff5
add esp, 4
or eax, 0xffffffff
jmp 0x1003ee6e
push 2
push ebx
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
push edi
mov esi, eax
call fcn.10054ff5
add esp, 4
cmp esi, 0xffffffff
je 0x1003ebc9
lea ecx, [esp + 0x6c]
push ecx
push ebx
mov edi, 0x104
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x78], 0x1c
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1003ecd7
push edi
lea edx, [esp + 0x8c]
push ebx
push edx
mov dword [esp + 0x28], edi
call fcn.10057070
add esp, 0xc
push 0xf003f
push 1
push ebx
push 1
lea eax, [esp + 0x7c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebp, eax
cmp ebp, ebx
je 0x1003ecb9
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
push ebx
push str.PortName
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003ecb2
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003ec75
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x24]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1003ec87
sub eax, edi
cmp edx, eax
jne 0x1003ecad
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.100565c4
add esp, 8
test eax, eax
je 0x1003ecde
mov edi, 0x104
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x6c]
inc eax
push edx
push eax
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1003ec16
xor eax, eax
jmp 0x1003ee6e
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push 0xc
lea ecx, [esp + 0x80]
push ecx
push esi
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
jne 0x1003ed07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
cmp eax, 1
ja 0x1003ed15
mov eax, 1
push eax
call fcn.10046982
mov edx, dword [esp + 0x18]
add esp, 4
push ebx
push edx
mov edi, eax
push edi
push ebx
push 0xc
lea eax, [esp + 0x80]
push eax
push esi
call ebp
test eax, eax
jne 0x1003ed52
mov eax, dword [esp + 0x14]
cmp eax, 1
ja 0x1003ed47
mov eax, 1
push eax
push ebx
push edi
call fcn.10057070
add esp, 0xc
push edi
call fcn.1004698d
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
xor eax, eax
add esp, 4
xor ecx, ecx
cmp byte [esp + 0x1a4], bl
push 0x14
sete cl
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x74]
push eax
inc ecx
mov ebp, 8
push esi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], 4
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], ebx
call edi
xor eax, eax
xor ecx, ecx
cmp byte [esp + 0x1a4], bl
push 0x14
sete cl
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x74]
push eax
inc ecx
push esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0x12
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], ebx
call edi
lea ecx, [esp + 0x6c]
push ecx
push esi
push 0x12
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
test eax, eax
jne 0x1003ee57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push str.CDevManHelper::SetUsage
lea eax, [esp + 0x54]
call fcn.10018050
push edi
push str.SetupDiCallClassInstaller_:_GetLastError___d
lea edx, [esp + 0x58]
push 0xdd
push edx
mov ecx, 0x3e8
mov dword [esp + 0x1a8], ebx
call fcn.1001d480
add esp, 0x10
lea ecx, [esp + 0x50]
call fcn.10018140
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.1005392f
add esp, 0x188
ret