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

Disassembly:
push 0xffffffffffffffff
push 0x417631
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x421850
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], 4
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x1c]
mov dword [esp + 0x188], ebx
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 1
call fcn.0041119c
mov ecx, dword [0x4183bc]
mov eax, dword [0x4183b8]
mov edx, dword [0x4183c0]
mov dword [esp + 0x4c], ecx
push 0x12
push ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [0x4183c4]
push ebx
push ecx
mov ecx, dword [esi + 0x18]
mov byte [esp + 0x194], 2
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.00401320
mov ebp, eax
or edi, 0xffffffff
cmp ebp, edi
mov dword [esp + 0x30], ebp
jne 0x401c41
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.MyReadDeviceID_MySetupDiGetClassDevs
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
add esp, 8
jmp 0x4020c0
mov dword [esp + 0x5c], 0x1c
mov dword [esp + 0x28], ebx
jmp 0x401c54
or edi, 0xffffffff
xor ebx, ebx
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esi + 0x18]
push ebx
push ebp
call fcn.00401350
test eax, eax
je 0x402089
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x20]
push ebx
push edx
push ebx
lea eax, [esp + 0x68]
push ebx
push eax
push ebp
call fcn.00401380
test eax, eax
jne 0x401ca0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x402041
mov ecx, dword [esp + 0x20]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea edx, [esp + 0x20]
push 0
push edx
mov dword [ebx], 5
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push ebx
push ecx
mov ecx, dword [esi + 0x18]
push ebp
mov dword [esp + 0x50], ebx
call fcn.00401380
test eax, eax
je 0x402057
push 0x421850
lea ecx, [esp + 0x14]
call fcn.0041126b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x78]
lea edx, [esp + 0x78]
rep stosd dword es:[edi], eax
push edx
push 0x16000c
push ecx
lea eax, [ebx + 4]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041119c
mov ecx, esi
call fcn.00402100
test eax, eax
jne 0x401fca
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041126b
lea ecx, [esp + 0x10]
call fcn.00411420
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jle 0x401fca
push 0x410
call fcn.0041144c
lea ecx, [esi + 4]
add esp, 4
mov ebp, eax
mov eax, dword [ecx + 8]
push ebp
push eax
call fcn.00410b5c
push 0
push str.MFG:
lea ecx, [esp + 0x18]
call fcn.004103f2
mov esi, eax
lea ecx, [esp + 0x10]
lea eax, [esi + 1]
push eax
push 0x3b
call fcn.004113f3
sub eax, esi
add esi, 4
sub eax, 4
lea ecx, [esp + 0x3c]
push eax
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.004102b4
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.0041112e
push 0
push str.MDL:
lea ecx, [esp + 0x18]
call fcn.004103f2
mov esi, eax
lea ecx, [esp + 0x10]
lea eax, [esi + 1]
push eax
push 0x3b
call fcn.004113f3
sub eax, esi
add esi, 4
sub eax, 4
lea ecx, [esp + 0x40]
push eax
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.004102b4
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp + 0x104]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call fcn.0041112e
push 0x421850
lea ecx, [esp + 0x18]
call fcn.0041126b
push ebx
push ebp
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0041076a
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00411420
push 0x5f
push 0x20
lea ecx, [esp + 0x1c]
call fcn.00410277
mov edi, dword [esp + 0x14]
cmp dword [edi - 8], 0x12
jle 0x401eb0
lea ecx, [esp + 0x44]
push 0x12
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041034a
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x208]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
call fcn.0041112e
jmp 0x401ed3
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x208]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push 0x20019
lea ecx, [esp + 0x60]
push 0
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 4
call fcn.004013d0
mov esi, eax
cmp esi, 0xffffffff
jne 0x401f27
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MyReadDeviceID_SetupDiOpenDeviceInterfaceRegKey
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
add esp, 8
lea ecx, [esp + 0x34]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push 0
push str.Port_Number
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401f72
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MyReadDeviceID_RegQueryValueEx
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
add esp, 8
jmp 0x401fd1
push 0x421850
lea ecx, [esp + 0x1c]
call fcn.0041126b
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push str.USB_03d
push edx
call fcn.0041076a
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x30c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x30]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0x100
mov dword [esp + 0x28], eax
jb 0x401c4f
or edi, 0xffffffff
mov ecx, dword [esi + 0x18]
push ebp
call fcn.004013b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 1
call fcn.0041112e
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 0
call fcn.0041112e
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], edi
call fcn.0041112e
mov eax, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x178
ret
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MyReadDeviceID_MySetupDiGetDeviceInterfaceDetail
call fcn.0041119c
call ebx
push eax
jmp 0x4020af
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MyReadDeviceID_MySetupDiGetDeviceInterfaceDetail
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
mov ecx, dword [esi + 0x18]
add esp, 8
push ebp
call fcn.004013b0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4020c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x103
je 0x401fe8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.MyReadDeviceID_SetupDiEnumDeviceInterfaces
call fcn.0041119c
push ebx
call fcn.00405530
mov ecx, dword [esi + 0x18]
add esp, 8
push ebp
call fcn.004013b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 1
call fcn.0041112e
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 0
call fcn.0041112e
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], edi
call fcn.0041112e
xor eax, eax
jmp 0x402028