Function at 0x403db0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x426ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0x421
mov dword [esp + 0x40], esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
push 0
push 0x422
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
push 0
push 0x424
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
push 5
push 0x3fe
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
push 0
push 0x40d
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
mov eax, dword [0x432c88]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc], eax
push 0x12
push 0
push 0
push 0x428ac0
mov byte [esp + 0x8c], 4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x34], edi
je 0x403ff6
push ebp
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [esp + 0x40], ebx
mov dword [ebx], 5
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
push ecx
push 0x428ac0
push 0
push edi
mov dword [esp + 0x70], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x403fe7
push 0
push 0
push 0x400
lea edx, [esp + 0x68]
push ebx
push edx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x403fe7
add ebx, 4
lea ecx, [esp + 0x14]
push ebx
call fcn.0041ee66
push str.vid_8866pid_0100
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 5
call fcn.00419f0a
push str.vid_0471pid_0055
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00419f0a
push str.vid_6868pid_0200
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00419f0a
push str.vid_6868pid_0500
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00419f0a
push str.vid_07070pid_3323
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.00419f0a
push str.vid_0500pid_0200
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
call fcn.00419f0a
cmp esi, 0xffffffff
jne 0x403f81
cmp edi, esi
jne 0x403f81
cmp ebp, esi
jne 0x403f81
cmp ebx, esi
jne 0x403f81
cmp dword [esp + 0x30], esi
jne 0x403f81
cmp eax, esi
je 0x403fbc
lea eax, [esp + 0x14]
push 0x4329f4
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0041f08d
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 6
call fcn.0041f210
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 5
call fcn.0041edf8
inc dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
inc eax
mov byte [esp + 0x80], 4
mov dword [esp + 0x1c], eax
call fcn.0041edf8
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
jmp 0x403eab
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebp
mov edx, dword [esp + 0x20]
push 0x7b
push 0
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0041fb3f
push str._
push 0x4329e4
lea ecx, [esp + 0x1c]
call fcn.00419c72
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
push ecx
push str.SYSTEMCurrentControlSetControlDeviceClasses28d78fad_5a12_11d1_ae5b_0000f803a8c2_
push edx
call fcn.0041f101
push str.28d78fad_5a12_11d1_ae5b_0000f803a8c2Device_Parameters
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x84], 7
push eax
call fcn.0041f08d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 9
call fcn.0041edf8
mov ecx, dword [0x432c88]
mov dword [esp + 0x40], 0xff
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
push 0x20019
push 0
mov bl, 0xa
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x90], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040d8
lea ecx, [esp + 0x40]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push edx
push eax
push 0
push str.Port_Number
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4040d8
mov edx, dword [esp + 0x44]
lea eax, [esp + 0xc]
push edx
push 0x432678
push eax
call fcn.0041a24b
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4041d8
mov edx, dword [esp + 0xc]
push 0x43225c
push edx
call fcn.0040d4b6
add esp, 8
test eax, eax
je 0x4041d8
push 5
push 0x423
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], 1
jne 0x40414d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x38]
push ecx
push str.USB00
push edx
call fcn.0041f101
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0xb
call fcn.0041ef31
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x38]
jmp 0x40417b
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push str.USB0
push ecx
call fcn.0041f101
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 0xc
call fcn.0041ef31
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x34]
call fcn.0041edf8
push 0x423
mov ecx, esi
call fcn.0041e31c
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
push 0
push 0
mov edx, dword [esi + 0x1c]
push 0x184
push edx
call edi
mov eax, dword [esi + 0x1c]
push str.Please_select_the_following_port
push 0
push 0x180
push eax
call edi
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x1c]
push ecx
push 0
push 0x180
push edx
call edi
mov eax, dword [esi + 0x1c]
push 0
push 1
push 0x186
push eax
call edi
jmp 0x404217
push 5
push 0x420
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
push 0
push 0x423
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
push 0
push 0x3fe
mov ecx, esi
call fcn.0041e31c
mov ecx, eax
call fcn.0041e50b
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 9
call fcn.0041edf8
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 4
call fcn.0041edf8
lea ecx, [esp + 0xc]
mov byte [esp + 0x7c], 3
call fcn.0041edf8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 2
call fcn.0041edf8
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 1
call fcn.0041edf8
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 0
call fcn.0041edf8
lea ecx, [esp + 0x20]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0041edf8
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret