Function at 0x405c80
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 0x425d72
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.00406da0
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00404f50
test eax, eax
je 0x405ea8
mov ecx, dword [0x42f390]
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 0x405e6a
lea edx, [esp + 0x28]
push str.SystemCurrentControlSetControlClass
push edx
call fcn.0041e21c
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 0x405e9b
mov edx, dword [0x42f390]
mov dword [esp + 0x34], edx
mov ebx, 0x105
lea ecx, [esp + 0x34]
push ebx
mov byte [esp + 0x70], 1
call fcn.0041f1b6
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 0x405e38
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 0x405e21
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 0x405e0e
mov ecx, dword [0x42f390]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x70], 2
call fcn.0041f1b6
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.0041f205
mov ecx, dword [esp + 0x2c]
push str.Modem
push ecx
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x405df8
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 1
call fcn.0041edd2
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x405e38
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 0x405d59
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.0041f205
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.0041edd2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x406463
jmp 0x405eb4
lea edx, [esp + 0x28]
push str.SystemCurrentControlSetServicesClassModem
push edx
call fcn.0041e21c
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 0x405eaf
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], ebx
call fcn.0041edd2
xor eax, eax
jmp 0x406479
mov ebx, 0x105
mov edx, dword [0x42f390]
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edx
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 3
call fcn.0041f1b6
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 0x40644a
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 0x40642b
mov ecx, dword [0x42f390]
xor esi, esi
mov dword [esp + 0x14], ecx
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 4
call fcn.0041f1b6
mov ecx, dword [0x42f390]
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 0x406184
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041f205
mov ecx, dword [esp + 0x14]
push str.DeviceType
push ecx
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x405fe6
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f1b6
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 0x406151
mov dword [esp + 0x38], 1
jmp 0x406151
mov eax, dword [esp + 0x14]
push str.DriverDesc
push eax
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x406045
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f1b6
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1c], ebx
call fcn.0041f1b6
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.0041f205
jmp 0x406151
mov eax, dword [esp + 0x14]
push str.Manufacturer
push eax
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x4060a4
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f1b6
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x1c], ebx
call fcn.0041f1b6
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.0041f205
jmp 0x406151
mov eax, dword [esp + 0x14]
push str.Model
push eax
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x406100
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f1b6
mov ecx, dword [esp + 0x20]
mov ebp, eax
push ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x1c], ebx
call fcn.0041f1b6
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.0041f205
jmp 0x406151
mov eax, dword [esp + 0x14]
push str.PortSubClass
push eax
call fcn.004117d4
add esp, 8
test eax, eax
jne 0x406151
push ebx
lea ecx, [esp + 0x18]
call fcn.0041f1b6
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.0041f1b6
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 0x405f80
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041f205
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4063ef
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 0x4061fa
mov ebp, edx
mov esi, dword [ebp + 4]
test esi, esi
je 0x4061ed
mov ecx, eax
dec eax
test ecx, ecx
je 0x4061da
lea edi, [eax + 1]
mov ecx, esi
call fcn.004064b0
add esi, 0x10
dec edi
jne 0x4061cd
mov eax, dword [ebp + 4]
push eax
call fcn.0041eb3c
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x4063ab
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x406269
mov esi, ebp
shl esi, 4
push esi
call fcn.0041eb13
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 0x40624b
mov ecx, ebx
call fcn.00406490
add ebx, 0x10
dec esi
mov byte [esp + 0x6c], 5
mov dword [esp + 0x38], ebx
jne 0x406237
mov eax, dword [esp + 0x74]
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
jmp 0x4063a3
mov esi, dword [edx + 0xc]
cmp ebp, esi
jg 0x40630b
cmp eax, ebp
jge 0x4062db
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 0x4062cb
lea edi, [edx + 1]
mov dword [esp + 0x50], esi
test esi, esi
mov byte [esp + 0x6c], 7
je 0x4062bc
mov ecx, esi
call fcn.00406490
add esi, 0x10
dec edi
mov byte [esp + 0x6c], 5
mov dword [esp + 0x38], esi
jne 0x4062a8
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
mov dword [edx + 8], ebp
jmp 0x4063a7
jle 0x4062cf
mov esi, ebp
sub eax, ebp
shl esi, 4
add esi, ecx
mov ecx, eax
dec eax
test ecx, ecx
je 0x4062cf
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.00406f50
add esi, 0x10
dec edi
jne 0x4062f0
mov edx, dword [esp + 0x74]
mov dword [edx + 8], ebp
jmp 0x4063a7
mov ecx, dword [edx + 0x10]
test ecx, ecx
jne 0x406336
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x406329
mov ecx, 4
jmp 0x406336
cmp ecx, 0x400
jle 0x406336
mov ecx, 0x400
add ecx, esi
cmp ebp, ecx
mov dword [esp + 0x38], ecx
jl 0x406344
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x38]
shl eax, 4
push eax
call fcn.0041eb13
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.00406f70
mov esi, dword [esp + 0x74]
mov eax, dword [esi + 4]
push eax
call fcn.0041eb3c
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 0x4063ea
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x58]
mov dword [esi], ecx
push edx
lea ecx, [esi + 4]
call fcn.0041eebf
lea eax, [esp + 0x5c]
lea ecx, [esi + 8]
push eax
call fcn.0041eebf
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esi + 0xc]
call fcn.0041eebf
mov ebx, 0x105
lea ecx, [esp + 0x60]
mov byte [esp + 0x6c], 9
call fcn.0041edd2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x6c], 8
call fcn.0041edd2
lea ecx, [esp + 0x58]
mov byte [esp + 0x6c], 4
call fcn.0041edd2
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 3
call fcn.0041edd2
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 0x405ef2
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.0041edd2
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0041edd2
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