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

Disassembly:
sub esp, 0x5b4
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
mov esi, str.SystemCurrentControlSetControlClass4D36E978_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x74]
mov dx, word [0x410a40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x410a3c]
mov eax, dword [str.DriverDesc]
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 [0x410a42]
push 0
push edx
push 0x80000002
movsw word es:[edi], word [esi]
mov byte [esp + 0x3e], al
mov dword [esp + 0x24], 0x40
call ebx
test eax, eax
je 0x403bda
push 0
push str.Debug
jmp 0x403d85
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 ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x403da1
or ecx, 0xffffffff
lea edi, [esp + 0x74]
xor eax, eax
lea edx, [esp + 0x1c4]
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 + 0x1c4]
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, 0x410350
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 + 0x1c4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x34]
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 + 0x1cc]
push 0
push ecx
push 0x80000002
call ebx
test eax, eax
jne 0x403d75
lea edx, [esp + 0x18]
lea eax, [esp + 0xc4]
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d7e
mov esi, str.Controllerless_Modem_Port
lea eax, [esp + 0xc4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403d1c
test cl, cl
je 0x403d18
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403d1c
add eax, 2
add esi, 2
test cl, cl
jne 0x403cf8
xor eax, eax
jmp 0x403d21
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403d39
lea eax, [esp + 0x1c4]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
dec ebp
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x44]
mov eax, ebp
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x403c09
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5b4
ret
push 0
push str.Error:_2
jmp 0x403d85
push 0
push str.Error:_3
push str.DeleteLTPort_failed
push 0
call fcn.00404fa0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5b4
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5b4
ret