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

Disassembly:
push 0xffffffffffffffff
push 0x4ba6a6
mov eax, dword fs:[0]
push eax
mov eax, 0x1a98
call fcn.004a22b0
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x1a94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x1aac]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x64]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x34]
inc dword [0x4ee7c8]
xor ebp, ebp
cmp eax, ebp
jle 0x4838ea
lea esi, [ebx + 0x28]
call fcn.00432380
mov edi, eax
cmp edi, ebp
je 0x4838e5
mov eax, dword [edi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48389f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4838be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4838dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0049081d
add esp, 4
cmp dword [ebx + 0x34], ebp
jg 0x483875
push 0x12
push ebp
push ebp
push 0x4d26ec
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebp
jmp 0x483909
mov ebx, dword [esp + 0x1c]
push 0x14
call fcn.004907ee
add esp, 4
cmp eax, ebp
je 0x483924
mov esi, eax
call fcn.0047cc00
mov dword [esp + 0x18], eax
jmp 0x483928
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x64]
push ecx
push edx
xor eax, eax
push 0x4d26ec
push ebp
mov edi, 0x1c
push ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x5c], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push ebp
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
lea ecx, [esp + 0x74]
push ecx
push ebx
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebp
jbe 0x483d49
push eax
call fcn.00490828
mov edx, dword [esp + 0x24]
mov ebx, eax
add esp, 4
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x34], ebx
mov dword [ebx], edx
je 0x483b97
lea eax, [esp + 0x48]
push eax
push 0
mov dword [ebx], 6
mov ecx, dword [esp + 0x28]
push ecx
push ebx
lea edx, [esp + 0x74]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x2c]
push edx
push edi
call esi
push 0
push 0x800
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2b0]
push eax
push 0
push 9
lea ecx, [esp + 0x5c]
push ecx
push edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
call edi
mov ecx, dword [esp + 0x1c]
push 0
push 0x800
lea edx, [esp + 0x12b0]
push edx
push 0
push 1
lea eax, [esp + 0x5c]
push eax
push ecx
call edi
mov ebp, eax
test ebp, ebp
je 0x483b97
mov ecx, dword [esp + 0x18]
lea esi, [ebx + 4]
add ecx, 8
test esi, esi
jne 0x483a33
xor eax, eax
jmp 0x483a4f
mov eax, esi
lea ebp, [eax + 2]
jmp 0x483a40
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x483a40
sub eax, ebp
sar eax, 1
push eax
push esi
call fcn.00401fa0
mov ecx, dword [esp + 0x1c]
push 0
push 0x800
lea edx, [esp + 0xab0]
push edx
push 0
push 0xc
lea eax, [esp + 0x5c]
push eax
push ecx
call edi
mov ebp, eax
test ebp, ebp
je 0x483b97
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xaa8]
push edx
call fcn.00401a90
mov ecx, dword [esp + 0x1c]
push 0x20019
push 1
push 0
push 1
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
test edi, edi
je 0x483b97
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push str.PortName
push edi
mov dword [esp + 0x50], 1
mov dword [esp + 0x58], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0xa0]
lea esi, [ebx + 4]
push edx
mov ecx, esi
call fcn.00401a90
push 3
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.004082d0
mov eax, dword [eax]
push eax
call fcn.0049e31d
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x483b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.:____.
call fcn.00408160
mov ecx, dword [ebx + 0xc]
push ecx
lea edx, [esp + 0x84]
push str.COM_d_TYPE
push edx
mov edx, 0x10
call fcn.00481e50
add esp, 0xc
lea eax, [esp + 0x80]
push eax
xor ebx, ebx
call fcn.0046ccd0
mov esi, eax
test esi, esi
je 0x483b85
push esi
call fcn.0049e31d
push esi
mov ebx, eax
call fcn.0049081d
add esp, 8
mov ecx, dword [esp + 0x18]
push edi
mov dword [ecx + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x34]
push ebx
call fcn.0049081d
add esp, 4
lea edx, [esp + 0x2a8]
push edx
lea ecx, [esp + 0x2c]
call fcn.004019b0
lea eax, [esp + 0x12a8]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1ab8], 0
call fcn.004019b0
mov byte [esp + 0x1ab4], 1
test ebp, ebp
je 0x483cd8
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
jl 0x483c08
push str.NPTDRV
push eax
call fcn.0049ebec
add esp, 8
test eax, eax
je 0x483c08
sub eax, dword [esp + 0x28]
sar eax, 1
cmp eax, 0xffffffff
jne 0x483ca8
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x483cdc
push str.FTDI
push ecx
call fcn.0049ebec
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x483c35
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x483ca8
cmp dword [ecx - 0xc], 0
jl 0x483cdc
push str.NPTDRV
push ecx
call fcn.0049ebec
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x483c5e
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x483ca8
cmp dword [ecx - 0xc], 0
jl 0x483cdc
push str.NPORT
push ecx
call fcn.0049ebec
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x483c83
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x483ca8
cmp dword [ecx - 0xc], 0
jl 0x483cdc
push str.VID_10C4
push ecx
call fcn.0049ebec
add esp, 8
test eax, eax
je 0x483cd8
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x483cdc
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x2c]
add esi, 0x28
push ecx
push 0
call fcn.00481790
mov edx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x483cd0
mov dword [ecx + 4], eax
mov dword [esi + 4], eax
jmp 0x483cf4
mov dword [esi + 8], eax
mov dword [esi + 4], eax
jmp 0x483cf4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x483cf8
call fcn.0047a570
mov eax, esi
push eax
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
mov byte [esp + 0x1ab4], 0
lea edx, [ecx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x483d1e
mov eax, dword [ecx]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1ab4], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x483d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x24]
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
jne 0x483905
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], 1
jns 0x483d7a
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov ecx, dword [esp + 0x1aac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a94]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x1aa4
ret