Function at 0x432510
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x477cff
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00472040
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x104c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x105c]
xor edi, edi
push 0x1000
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], edi
push edi
push eax
mov dword [esp + 0x1060], edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x1000
call sub.MSVCR90.dll_memset
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x49f4e4
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov ebx, 1
push str.SYSTEMCurrentControlSetServicesModemEnum
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1058], ebx
call fcn.00406330
push 0x47dd5c
mov ecx, ebp
mov byte [esp + 0x1058], 2
call fcn.00406330
push 0x47dd5c
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], ebx
call fcn.00406330
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x1068], 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x43282a
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
push 0x48424c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x43281b
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
call fcn.00406330
mov eax, dword [esp + 0x34]
cmp dword [eax - 0xc], edi
mov byte [esp + 0x1054], 4
jge 0x432659
push 0x80070057
call fcn.00401120
mov edx, dword [0x49f4e4]
movzx ebx, word [eax]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f4e4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
movsx ecx, bl
push ecx
lea edx, [esp + 0x18]
push 0x482a00
push edx
mov byte [esp + 0x1060], 5
call fcn.00402eb0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 0x10
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x44], eax
jl 0x4327cb
push 0x1000
lea ecx, [esp + 0x4c]
push edi
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x1000
call sub.MSVCR90.dll_memset
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x49f4e4
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
push ebx
lea ecx, [esp + 0x30]
push 0x482a00
push ecx
mov byte [esp + 0x1060], 6
call fcn.00402eb0
mov ebp, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x432798
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432726
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004028e0
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], edi
jl 0x432798
push str.VID_04E8
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, edi
je 0x432798
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x432798
cmp dword [esi - 0xc], edi
jl 0x432798
push str.PID_6651
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, edi
je 0x432798
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x432798
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404480
lea eax, [ebp - 0x10]
mov byte [esp + 0x1054], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4327bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, dword [esp + 0x44]
jle 0x4326aa
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1054], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4327f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x1054], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43281b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x43282a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], edi
je 0x432904
push str.SYSTEMCurrentControlSetEnum_
lea ecx, [esp + 0x18]
call fcn.00406330
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x105c], 7
call fcn.00404500
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4328dc
push 0x1000
lea ecx, [esp + 0x4c]
push edi
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x1000
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push str.FriendlyName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4328cd
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
call fcn.004034b0
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4328dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1054], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1054], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43292c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x1054], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432954
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1054], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x104c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.00471f66
add esp, 0x1044
ret