Function at 0x401b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREShilingtongGnet_pppoe2_systemset_
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c12
mov ecx, 0xc
lea edi, [ebp - 0x63]
mov byte [ebp - 0x64], bl
mov byte [ebp - 0xcc], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0xcb]
mov byte [ebp - 0x98], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x97]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, 0x32
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push eax
push ebx
push str.zString3
push ecx
mov dword [ebp - 0x1c], 1
call esi
cmp eax, ebx
je 0x401c25
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0x18]
mov edi, 0x411204
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ecx - 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
lea ecx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
call sub.MFC42.DLL_CString::Right
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push ebx
push str.VERSION
push eax
call esi
cmp eax, ebx
jne 0x401cbf
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x98]
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push ebx
push str.zString2
push eax
call esi
cmp eax, ebx
je 0x401ce7
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x20]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x4111f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebx
jl 0x401d1e
mov ecx, dword [ebp + 8]
mov dword [ecx], 2
push 0x4111e4
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Find_2
cmp eax, ebx
jl 0x401d38
mov edx, dword [ebp + 8]
mov dword [edx], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret