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

Disassembly:
sub esp, 0x42c
mov eax, dword [esp + 0x430]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push eax
lea ecx, [esp + 0x24]
mov edi, 0x100
xor esi, esi
push str._04d
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], esi
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [0x821f6c]
add esp, 0xc
test al, al
je 0x599a54
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 0x20019
push esi
push str.SystemCurrentControlSetServicesClassModem
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x59a177
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push esi
push ecx
push edx
call ebx
test eax, eax
je 0x599cc5
push str.Unable_to_find_SystemCurrentControlSetServicesClassModem_in_registry_n
call fcn.004068f0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlClass
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x599a91
push str.Unable_to_find_SystemCurrentControlSetControlClass_in_registry_n
call fcn.004068f0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x340]
push edx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x24c]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x59a177
mov edi, str.SystemCurrentControlSetControlClass_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x23c]
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 + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x144]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
mov esi, 0x100
jne 0x599b8d
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push 0
push str.Class
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x599b8d
lea edx, [esp + 0x3c]
push str.Modem
push edx
call fcn.0076d4b0
add esp, 8
test eax, eax
je 0x599be2
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x340]
push edx
push ecx
lea edx, [esp + 0x24]
push 0
lea ecx, [esp + 0x24c]
inc eax
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x599ad1
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4
or ecx, 0xffffffff
mov edi, str.SystemCurrentControlSetControlClass_
xor eax, eax
lea edx, [esp + 0x13c]
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 + 0x13c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x23c]
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 + 0x13c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x7b78d4
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 + 0x13c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x144]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x59a177
xor esi, esi
mov edi, 0x100
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push eax
push esi
push esi
push str.Model
push ecx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x59a16c
mov eax, dword [esp + 0x10]
inc eax
push eax
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
push str.Modem_name_is__s_n
call fcn.004068f0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
mov esi, 0x100
push str.AttachedTo
push eax
mov dword [esp + 0x28], esi
call ebx
test eax, eax
je 0x599db7
mov al, byte [0x821f6c]
mov dword [esp + 0x10], esi
test al, al
jne 0x599d78
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push str.PnPAttachedTo
push eax
call ebx
test eax, eax
je 0x599db7
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x2c], 1
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0076d5a7
mov edi, dword [ebp]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp + 4], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x599ddb
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, ecx
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [ebp + 4], eax
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 [ebp + 4]
push eax
push str.Modem_attached_to__s_n
call fcn.004068f0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, str.Settings
push 1
call fcn.00728c20
test eax, eax
mov dword [esp + 0x14], eax
je 0x59a177
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push str.ErrorControl_On
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x599e66
mov eax, dword [esp + 0x10]
inc eax
push eax
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 8], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
push eax
push str.Modem_error_control_enable_string:__s_n
call fcn.004068f0
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push str.ErrorControl_Off
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x599ec3
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0xc], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
push eax
push str.Modem_error_control_disable_string:__s_n
call fcn.004068f0
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push str.Compression_On
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x599f20
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
push eax
push str.Modem_compression_enable_string:__s_n
call fcn.004068f0
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push str.Compression_Off
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x599f7d
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x14]
push eax
push str.Modem_compression_disable_string:__s_n
call fcn.004068f0
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0
push str.FlowControl_Hard
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x599fda
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x40]
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 0x18], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
push eax
push str.Modem_hardware_flow_control_enable_string:__s_n
call fcn.004068f0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x59a177
mov ax, word [0x7cd2dc]
mov cl, byte [0x7cd2de]
mov edx, dword [str.Modem_]
mov word [esp + 0x140], ax
mov byte [esp + 0x142], cl
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x143]
mov dword [esp + 0x13c], edx
lea edx, [esp + 0x13c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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
mov edx, str.Enum
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00728c20
test eax, eax
mov dword [esp + 0x14], eax
je 0x59a177
lea ecx, [esp + 0x13c]
mov edx, str.Driver
push ecx
mov ecx, eax
call fcn.00599840
test eax, eax
je 0x59a0fd
lea edx, [esp + 0x10]
lea ecx, [esp + 0x3c]
push edx
push ecx
push 0
push 0
push str.PORTNAME
push eax
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x59a16c
mov eax, dword [ebp + 4]
test eax, eax
je 0x59a0c4
push eax
call fcn.0076d2d5
add esp, 4
mov edx, dword [esp + 0x10]
inc edx
push edx
call fcn.0076d5a7
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], eax
mov edi, eax
mov eax, ecx
lea esi, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
push ecx
push str.PNP_Modem_attached_to__s_n
call fcn.004068f0
add esp, 0xc
jmp 0x59a16c
mov esi, dword [ebp + 4]
test esi, esi
je 0x59a16c
mov edi, dword [ebp]
test edi, edi
je 0x59a16c
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x59a135
test cl, cl
je 0x59a131
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x59a135
add eax, 2
add esi, 2
test cl, cl
jne 0x59a10d
xor eax, eax
jmp 0x59a13a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x59a16c
push edi
push str.Failed_to_find_port_for_device__s_n
call fcn.004068f0
mov eax, dword [ebp]
push eax
call fcn.0076d2d5
mov ecx, dword [ebp + 4]
mov dword [ebp], 0
push ecx
call fcn.0076d2d5
add esp, 0x10
mov dword [ebp + 4], 0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4