Function at 0x48b180
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d04f7
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
mov ecx, dword [ebp + 8]
call fcn.0040188e
mov ecx, dword [ebp + 0xc]
call fcn.00402d0b
push str.SETUPAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x48b1e2
xor eax, eax
jmp 0x48b5be
push str.SetupDiOpenDevRegKey
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x274], eax
push str.SetupDiGetClassDevsA
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x270], eax
push str.SetupDiGetDeviceRegistryPropertyA
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x260], eax
push str.SetupDiDestroyDeviceInfoList
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x25c], eax
push str.SetupDiEnumDeviceInfo
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x274], 0
je 0x48b287
cmp dword [ebp - 0x25c], 0
je 0x48b287
cmp dword [ebp - 0x26c], 0
je 0x48b287
cmp dword [ebp - 0x270], 0
je 0x48b287
cmp dword [ebp - 0x260], 0
jne 0x48b2a3
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48b5be
mov eax, dword [0x4f2648]
mov dword [ebp - 0x220], eax
mov ecx, dword [0x4f264c]
mov dword [ebp - 0x21c], ecx
mov edx, dword [0x4f2650]
mov dword [ebp - 0x218], edx
mov eax, dword [0x4f2654]
mov dword [ebp - 0x214], eax
push 0x12
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
call dword [ebp - 0x270]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x48b320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48b5be
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x248], 0
cmp dword [ebp - 0x250], 0
je 0x48b59f
mov dword [ebp - 0x23c], 0x1c
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [ebp - 0x26c]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x48b58b
mov dword [ebp - 0x278], 0
push 1
push 1
push 0
push 1
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [ebp - 0x274]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x48b4b3
mov dword [ebp - 0x280], 0x100
mov dword [ebp - 0x27c], 0
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x27c]
push edx
push 0
push str.PortName
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48b4a6
cmp dword [ebp - 0x27c], 1
jne 0x48b4a6
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCR110.dll_strlen
add esp, 4
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 3
jbe 0x48b4a6
push 3
push 0x4f0810
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x48b4a6
push 0
mov eax, 1
imul eax, eax, 3
lea ecx, [ebp + eax - 0x110]
push ecx
mov ecx, dword [ebp - 0x28c]
call fcn.00403e31
test eax, eax
je 0x48b4a6
mov edx, 1
imul edx, edx, 3
lea eax, [ebp + edx - 0x110]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x288], ecx
lea edx, [ebp - 0x288]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401244
mov dword [ebp - 0x278], 1
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x278], 0
je 0x48b58b
mov dword [ebp - 0x264], 0x100
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x264]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x254]
push ecx
push 0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [ebp - 0x260]
test eax, eax
je 0x48b551
cmp dword [ebp - 0x254], 1
jne 0x48b551
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x268]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004013f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
jmp 0x48b58b
push 0x4f012a
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004013f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov ecx, dword [ebp - 0x248]
add ecx, 1
mov dword [ebp - 0x248], ecx
jmp 0x48b334
mov edx, dword [ebp - 0x244]
push edx
call dword [ebp - 0x25c]
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5ffc
mov esp, ebp
pop ebp
ret 8