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

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1a0]
push edi
push esi
call fcn.0040ae2c
lea ecx, [eax + eax + 2]
add esp, 4
mov eax, ecx
cdq
sub eax, edx
push 0
sar eax, 1
inc eax
push 0
push eax
lea eax, [esp + 0x12c]
push eax
push ecx
push esi
push 0x240
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x10
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlPrintProvidersInternet_Print_ProviderPorts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0x100
test eax, eax
jne 0x401f29
mov ecx, dword [esp + 0x10]
xor edi, edi
push edi
push edi
push edi
lea edx, [esp + 0x20]
push edi
lea eax, [esp + 0x30]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x34], ebx
call ebp
cmp eax, 0x103
je 0x401f1e
lea esi, [esp + 0x120]
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401eeb
test cl, cl
je 0x401ee7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401eeb
add eax, 2
add esi, 2
test cl, cl
jne 0x401ec7
xor eax, eax
jmp 0x401ef0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fcc
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x30]
inc edi
push eax
push ecx
push edi
push edx
mov dword [esp + 0x34], ebx
call ebp
cmp eax, 0x103
jne 0x401ebc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlPrintMonitorsStandard_TCP_IP_PortPorts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40206b
mov eax, dword [esp + 0x10]
xor esi, esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push esi
lea edx, [esp + 0x30]
push ecx
push edx
push esi
push eax
call ebp
cmp eax, 0x103
je 0x402060
lea ecx, [esp + 0x20]
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.0040a6b0
add esp, 8
test eax, eax
jne 0x402008
mov edx, dword [esp + 0x10]
push eax
mov ecx, 0x40
lea edi, [esp + 0x24]
push eax
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x34], ebx
call ebp
cmp eax, 0x103
jne 0x401f81
jmp 0x402060
lea eax, [esp + 0x20]
push 0x42d124
push eax
call fcn.0040a6b0
mov esi, eax
push 0x2f
add esi, 2
push esi
call fcn.0040ad70
add esp, 0x10
test eax, eax
je 0x401ff8
lea ecx, [eax + eax]
sub ecx, esi
mov byte [ecx + 1], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x190
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x1a8]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push str.IPAddress
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x190
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x190
ret