Function at 0x432540
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x477e0f
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00472150
mov eax, dword [0x49eef8]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eef8]
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 [0x49f474]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x49f474
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.004062a0
push 0x47dd68
mov ecx, ebp
mov byte [esp + 0x1058], 2
call fcn.004062a0
push 0x47dd68
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], ebx
call fcn.004062a0
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 0x43285a
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 0x48447c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x43284b
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x38]
call fcn.004062a0
mov eax, dword [esp + 0x34]
cmp dword [eax - 0xc], edi
mov byte [esp + 0x1054], 4
jge 0x432689
push 0x80070057
call fcn.00401120
mov edx, dword [0x49f474]
movzx ebx, word [eax]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
movsx ecx, bl
push ecx
lea edx, [esp + 0x18]
push 0x482c88
push edx
mov byte [esp + 0x1060], 5
call fcn.00402e10
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 0x4327fb
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 [0x49f474]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x49f474
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
push ebx
lea ecx, [esp + 0x30]
push 0x482c88
push ecx
mov byte [esp + 0x1060], 6
call fcn.00402e10
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 0x4327c8
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x432756
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402840
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], edi
jl 0x4327c8
push str.VID_04E8
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, edi
je 0x4327c8
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x4327c8
cmp dword [esi - 0xc], edi
jl 0x4327c8
push str.PID_6651
push esi
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, edi
je 0x4327c8
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x4327c8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.004043f0
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 0x4327ec
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 0x4326da
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 0x432823
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 0x43284b
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 0x43285a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], edi
je 0x432934
push str.SYSTEMCurrentControlSetEnum_
lea ecx, [esp + 0x18]
call fcn.004062a0
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.00404470
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 0x43290c
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 0x4328fd
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
call fcn.00403410
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x43290c
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 0x432934
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 0x43295c
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 0x432984
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 0x4329a8
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.00472076
add esp, 0x1044
ret