Function at 0x402e90
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x4b8
push ebx
push esi
push edi
mov ecx, 0x13
mov esi, str.SystemCurrentControlSetControlClass4D36E978_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x74]
mov dx, word [0x40aae4]
mov eax, dword [str.DriverDesc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40aae0]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
mov word [esp + 0x28], dx
push ecx
push 0x20019
lea edx, [esp + 0x7c]
mov dword [esp + 0x28], eax
mov al, byte [0x40aae6]
push 0
push edx
push 0x80000002
mov byte [esp + 0x3e], al
movsw word es:[edi], word [esi]
mov dword [esp + 0x24], 0x40
call ebx
test eax, eax
jne 0x403089
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x403089
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or ecx, 0xffffffff
lea edi, [esp + 0x78]
xor eax, eax
lea edx, [esp + 0xc8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40aa58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0xd0]
push 0
push ecx
push 0x80000002
call ebx
push 0x20
call fcn.00405b70
mov ecx, dword [esp + 0x20]
add esp, 4
mov esi, eax
lea edx, [esp + 0x20]
mov eax, 0x40
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
push esi
push 0
lea eax, [esp + 0x30]
push 0
push eax
push ecx
call ebp
mov eax, str.Controllerless_Modem_Port
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x403034
test cl, cl
je 0x403030
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x403034
add esi, 2
add eax, 2
test cl, cl
jne 0x403010
xor eax, eax
jmp 0x403039
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403054
lea eax, [esp + 0xc8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402f3a
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4b8
ret