Function at 0x4020a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c61e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
mov edi, 0x100
lea ecx, [esp + 0x38]
mov dword [esp + 0x44c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], edi
call fcn.00414e40
push str.Bios
mov ecx, ebp
mov byte [esp + 0x450], 1
call fcn.00402930
push str.Root
mov ecx, ebp
call fcn.00402930
lea eax, [esp + 0x40]
push eax
push 8
push esi
push str.EnumPcmcia
push 0x80000002
call dword [0x42b564]
mov ebx, dword [0x42b568]
test eax, eax
jne 0x4022df
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x2c]
mov esi, dword [0x42b56c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x154]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
mov dword [esp + 0x40], edi
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
je 0x4022e5
lea eax, [esp + 0x144]
lea ecx, [esp + 0x244]
push eax
push str.EnumPCMCIA_s0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x244]
push edx
push 0
push 0x20019
push eax
push 0x80000002
call dword [0x42b564]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 0
push str.Class
push eax
mov dword [esp + 0x28], edi
call ebx
mov esi, str.Modem
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4021ef
test cl, cl
je 0x4021eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4021ef
add eax, 2
add esi, 2
test cl, cl
jne 0x4021cb
xor eax, eax
jmp 0x4021f4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022c1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push 0
mov esi, 0x100
push str.PortName
push edx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x4022c1
mov edx, dword [ebp + 0x34]
lea ecx, [ebp + 0x2c]
lea eax, [esp + 0x44]
push eax
push edx
call fcn.0041090a
lea ecx, [esp + 0x454]
call fcn.0041532e
mov eax, dword [esp + 0x454]
lea ecx, [esp + 0x144]
push eax
push ecx
call fcn.0040ca00
add esp, 4
push eax
call fcn.00404ff0
add esp, 8
test eax, eax
je 0x4022c1
mov eax, dword [ebp + 0x20]
lea ecx, [ebp + 0x18]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0041090a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 0
push str.DeviceDesc
push eax
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x4022ad
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 4]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0041090a
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
lea edx, [esp + 0x244]
push edx
push eax
call fcn.0041090a
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x42b558]
mov eax, dword [esp + 0x18]
mov edi, 0x100
inc eax
mov dword [esp + 0x18], eax
jmp 0x40212a
mov esi, dword [0x42b56c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push str.EnumMF
push 0x80000002
call dword [0x42b564]
test eax, eax
jne 0x4025c0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x154]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x40], edi
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
je 0x4025c0
lea ecx, [esp + 0x144]
lea edx, [esp + 0x244]
push ecx
push str.EnumMF_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x244]
push eax
push 0
push 0x20019
push ecx
push 0x80000002
call dword [0x42b564]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x154]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], edi
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
je 0x40257d
lea eax, [esp + 0x144]
lea ecx, [esp + 0x244]
push eax
push ecx
lea edx, [esp + 0x34c]
push 0x423160
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x344]
push eax
push 0
push 0x20019
push ecx
push 0x80000002
call dword [0x42b564]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
push 0
push 0
push str.PortName
push ecx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x40253a
mov eax, dword [ebp + 0x34]
lea edi, [ebp + 0x2c]
lea edx, [esp + 0x44]
mov ecx, edi
push edx
push eax
call fcn.0041090a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 0
push 0x42315c
push eax
mov dword [esp + 0x28], 0x100
call ebx
lea ecx, [esp + 0x454]
call fcn.0041532e
mov esi, dword [esp + 0x454]
lea ecx, [esp + 0x44]
push ecx
call fcn.0040ca00
add esp, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40249e
test cl, cl
je 0x40249a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40249e
add eax, 2
add esi, 2
test cl, cl
jne 0x40247a
xor eax, eax
jmp 0x4024a3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40252f
mov eax, dword [ebp + 0x34]
lea ecx, [esp + 0x3c]
dec eax
push eax
push ecx
mov ecx, edi
call fcn.00401390
mov edx, dword [eax]
mov eax, dword [ebp + 0x20]
lea ecx, [ebp + 0x18]
push edx
push eax
mov byte [esp + 0x454], 2
call fcn.0041090a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x44c], 1
call fcn.00414f8b
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 0
push str.DeviceDesc
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x40251b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 4]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0041090a
mov eax, dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
lea edx, [esp + 0x344]
push edx
push eax
call fcn.0041090a
mov esi, dword [0x42b56c]
mov edi, 0x100
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x42b558]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x154]
inc eax
push ecx
push edx
mov dword [esp + 0x40], eax
push eax
mov eax, dword [esp + 0x30]
push eax
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
jne 0x4023ba
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x42b558]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x154]
inc eax
push ecx
push edx
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x30]
push eax
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
jne 0x402341
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.EnumPCI
push 0x80000002
call dword [0x42b564]
test eax, eax
jne 0x40287a
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], eax
push edx
mov edx, dword [esp + 0x18]
push eax
push eax
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x154]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x40], edi
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
je 0x40287a
lea eax, [esp + 0x144]
lea ecx, [esp + 0x244]
push eax
push str.EnumPCI_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x34]
lea eax, [esp + 0x244]
push edx
push 0
push 0x20019
push eax
push 0x80000002
call dword [0x42b564]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x38]
push 0
push 0
push 0
lea eax, [esp + 0x154]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], edi
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
je 0x402833
lea edx, [esp + 0x144]
lea eax, [esp + 0x244]
push edx
push eax
lea ecx, [esp + 0x34c]
push 0x423160
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x1c]
lea eax, [esp + 0x344]
push edx
push 0
push 0x20019
push eax
push 0x80000002
call dword [0x42b564]
test eax, eax
jne 0x4027fb
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x2c]
push str.PORTNAME
push eax
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x4027f0
mov eax, dword [ebp + 0x34]
lea ecx, [ebp + 0x2c]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0041090a
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041508e
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
push 0
push 0
push 0x42315c
push ecx
mov dword [esp + 0x28], edi
call ebx
lea ecx, [esp + 0x454]
call fcn.0041532e
mov esi, dword [esp + 0x454]
lea edx, [esp + 0x44]
push edx
call fcn.0040ca00
add esp, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402784
test cl, cl
je 0x402780
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402784
add eax, 2
add esi, 2
test cl, cl
jne 0x402760
xor eax, eax
jmp 0x402789
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4027e5
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push 0
push str.DeviceDesc
push edx
mov dword [esp + 0x28], 0x100
call ebx
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0x20]
lea ecx, [ebp + 0x18]
push eax
push edx
call fcn.0041090a
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 4]
lea eax, [esp + 0x44]
push eax
push edx
call fcn.0041090a
mov edx, dword [ebp + 0x5c]
lea ecx, [ebp + 0x54]
lea eax, [esp + 0x344]
push eax
push edx
call fcn.0041090a
mov esi, dword [0x42b56c]
mov edi, 0x100
mov eax, dword [esp + 0x1c]
push eax
call dword [0x42b558]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x154]
inc eax
push edx
mov edx, dword [esp + 0x48]
push ecx
push eax
push edx
mov dword [esp + 0x48], eax
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
jne 0x402692
mov eax, dword [esp + 0x34]
push eax
call dword [0x42b558]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
lea edx, [esp + 0x2c]
push 0
lea ecx, [esp + 0x154]
inc eax
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edi
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x24], eax
jne 0x402619
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.EnumRootinfrared0000
push 0x80000002
call dword [0x42b564]
test eax, eax
jne 0x4028d2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.VirtualComPortName
push eax
mov dword [esp + 0x28], edi
call ebx
mov eax, dword [ebp + 0x34]
lea ecx, [ebp + 0x2c]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0041090a
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x42b558]
mov ecx, ebp
call fcn.00402e00
lea ecx, [esp + 0x38]
mov byte [esp + 0x44c], 0
call fcn.00414f8b
lea ecx, [esp + 0x454]
mov dword [esp + 0x44c], 0xffffffff
call fcn.00414f8b
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x440
ret 4