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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425f32
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
or ebx, 0xffffffff
mov esi, ecx
mov ecx, dword [esp + 0x74]
xor edi, edi
push ebx
push edi
call fcn.00406ee0
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00405090
test eax, eax
je 0x405fe8
mov ecx, dword [0x42f3b0]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x6c], edi
cmp eax, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
je 0x405faa
lea edx, [esp + 0x28]
push str.SystemCurrentControlSetControlClass
push edx
call fcn.0041e3cc
mov ecx, dword [esp + 0x30]
add esp, 8
lea eax, [esp + 0x30]
push eax
push 0x20019
push edi
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fdb
mov edx, dword [0x42f3b0]
mov dword [esp + 0x34], edx
mov ebx, 0x105
lea ecx, [esp + 0x34]
push ebx
mov byte [esp + 0x70], 1
call fcn.0041f366
mov ebp, eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x405f78
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f61
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
push eax
mov eax, dword [esp + 0x2c]
push str.Class
push eax
call esi
test eax, eax
jne 0x405f4e
mov ecx, dword [0x42f3b0]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x70], 2
call fcn.0041f366
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x24]
push edx
push 0
push str.Class
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call fcn.0041f3b5
mov ecx, dword [esp + 0x2c]
push str.Modem
push ecx
call fcn.00411964
add esp, 8
test eax, eax
jne 0x405f38
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call fcn.0041ef82
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x405f78
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x30]
inc edi
push ebx
push ebp
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x405e99
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.0041f3b5
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0
call fcn.0041ef82
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4065a3
jmp 0x405ff4
lea edx, [esp + 0x28]
push str.SystemCurrentControlSetServicesClassModem
push edx
call fcn.0041e3cc
mov ecx, dword [esp + 0x30]
add esp, 8
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405fef
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], ebx
call fcn.0041ef82
xor eax, eax
jmp 0x4065b9
mov ebx, 0x105
mov edx, dword [0x42f3b0]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edx
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 3
call fcn.0041f366
mov esi, eax
mov eax, dword [esp + 0x1c]
push ebx
push esi
push 0
push eax
mov dword [esp + 0x5c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40658a
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40656b
mov ecx, dword [0x42f3b0]
xor esi, esi
mov dword [esp + 0x14], ecx
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 4
call fcn.0041f366
mov ecx, dword [0x42f3b0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push ecx
lea edx, [esp + 0x24]
push esi
push edx
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
mov byte [esp + 0x8c], 5
mov dword [esp + 0x58], esi
call edi
test eax, eax
jne 0x4062c4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041f3b5
mov ecx, dword [esp + 0x14]
push str.DeviceType
push ecx
call fcn.00411964
add esp, 8
test eax, eax
jne 0x406126
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f366
lea edx, [esp + 0x20]
lea ecx, [esp + 0x13]
push edx
lea edx, [esp + 0x30]
push ecx
push edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push esi
push edx
mov dword [esp + 0x38], ebx
call edi
cmp byte [esp + 0x13], 2
jne 0x406291
mov dword [esp + 0x38], 1
jmp 0x406291
mov eax, dword [esp + 0x14]
push str.DriverDesc
push eax
call fcn.00411964
add esp, 8
test eax, eax
jne 0x406185
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f366
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ebx
call fcn.0041f366
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push ecx
push ebp
push esi
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
call fcn.0041f3b5
jmp 0x406291
mov eax, dword [esp + 0x14]
push str.Manufacturer
push eax
call fcn.00411964
add esp, 8
test eax, eax
jne 0x4061e4
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f366
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], ebx
call fcn.0041f366
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push ecx
push ebp
push esi
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.0041f3b5
jmp 0x406291
mov eax, dword [esp + 0x14]
push str.Model
push eax
call fcn.00411964
add esp, 8
test eax, eax
jne 0x406240
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f366
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.0041f366
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push ecx
push ebp
push esi
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x64]
call fcn.0041f3b5
jmp 0x406291
mov eax, dword [esp + 0x14]
push str.PortSubClass
push eax
call fcn.00411964
add esp, 8
test eax, eax
jne 0x406291
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f366
lea ecx, [esp + 0x20]
lea edx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
mov dword [esp + 0x38], ebx
call edi
mov ecx, dword [esp + 0x48]
and ecx, 0xff
mov dword [esp + 0x54], ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f366
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push edx
push 0
push ecx
lea edx, [esp + 0x24]
push 0
push edx
inc esi
push eax
mov eax, dword [esp + 0x3c]
push esi
push eax
mov dword [esp + 0x38], ebx
call edi
test eax, eax
je 0x4060c0
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041f3b5
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40652f
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 8]
mov ebx, eax
mov dword [esp + 0x34], ebx
lea ebp, [ebx + 1]
test ebp, ebp
jne 0x40633a
mov ebp, edx
mov esi, dword [ebp + 4]
test esi, esi
je 0x40632d
mov ecx, eax
dec eax
test ecx, ecx
je 0x40631a
lea edi, [eax + 1]
mov ecx, esi
call fcn.004065f0
add esi, 0x10
dec edi
jne 0x40630d
mov eax, dword [ebp + 4]
push eax
call fcn.0041ecec
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x4064eb
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x4063a9
mov esi, ebp
shl esi, 4
push esi
call fcn.0041ecc3
mov edx, dword [esp + 0x78]
mov edi, eax
mov ecx, esi
xor eax, eax
mov dword [edx + 4], edi
mov edx, ecx
shr ecx, 2
mov ebx, edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x38], ebx
and ecx, 3
lea esi, [ebp]
rep stosb byte es:[edi], al
mov dword [esp + 0x50], ebx
test ebx, ebx
mov byte [esp + 0x6c], 6
je 0x40638b
mov ecx, ebx
call fcn.004065d0
add ebx, 0x10
dec esi
mov byte [esp + 0x6c], 5
mov dword [esp + 0x38], ebx
jne 0x406377
mov eax, dword [esp + 0x74]
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
jmp 0x4064e3
mov esi, dword [edx + 0xc]
cmp ebp, esi
jg 0x40644b
cmp eax, ebp
jge 0x40641b
mov edx, ebp
sub edx, eax
shl eax, 4
add eax, ecx
mov ecx, edx
shl ecx, 4
mov esi, eax
mov ebx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov dword [esp + 0x38], esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x40640b
lea edi, [edx + 1]
mov dword [esp + 0x50], esi
test esi, esi
mov byte [esp + 0x6c], 7
je 0x4063fc
mov ecx, esi
call fcn.004065d0
add esi, 0x10
dec edi
mov byte [esp + 0x6c], 5
mov dword [esp + 0x38], esi
jne 0x4063e8
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
mov dword [edx + 8], ebp
jmp 0x4064e7
jle 0x40640f
mov esi, ebp
sub eax, ebp
shl esi, 4
add esi, ecx
mov ecx, eax
dec eax
test ecx, ecx
je 0x40640f
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.00407090
add esi, 0x10
dec edi
jne 0x406430
mov edx, dword [esp + 0x74]
mov dword [edx + 8], ebp
jmp 0x4064e7
mov ecx, dword [edx + 0x10]
test ecx, ecx
jne 0x406476
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x406469
mov ecx, 4
jmp 0x406476
cmp ecx, 0x400
jle 0x406476
mov ecx, 0x400
add ecx, esi
cmp ebp, ecx
mov dword [esp + 0x38], ecx
jl 0x406484
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x38]
shl eax, 4
push eax
call fcn.0041ecc3
mov ebx, eax
mov eax, dword [esp + 0x78]
mov edi, ebx
add esp, 4
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 8]
mov ecx, ebp
sub ecx, eax
shl eax, 4
add eax, ebx
push ecx
push eax
call fcn.004070b0
mov esi, dword [esp + 0x74]
mov eax, dword [esi + 4]
push eax
call fcn.0041ecec
mov edx, dword [esp + 0x3c]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edx
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x74]
mov edx, dword [ebp + 4]
lea eax, [esp + 0x54]
shl ebx, 4
add ebx, edx
mov esi, ebx
cmp esi, eax
je 0x40652a
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x58]
mov dword [esi], ecx
push edx
lea ecx, [esi + 4]
call fcn.0041f06f
lea eax, [esp + 0x5c]
lea ecx, [esi + 8]
push eax
call fcn.0041f06f
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esi + 0xc]
call fcn.0041f06f
mov ebx, 0x105
lea ecx, [esp + 0x60]
mov byte [esp + 0x6c], 9
call fcn.0041ef82
lea ecx, [esp + 0x5c]
mov byte [esp + 0x6c], 8
call fcn.0041ef82
lea ecx, [esp + 0x58]
mov byte [esp + 0x6c], 4
call fcn.0041ef82
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 3
call fcn.0041ef82
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
inc eax
push ebx
push esi
push eax
push edx
mov dword [esp + 0x50], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x406032
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0
call fcn.0041ef82
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041ef82
mov eax, 1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4