Function at 0x4329b0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x477d93
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00472040
mov eax, dword [0x49ef38]
xor eax, esp
mov dword [esp + 0x103c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x1054]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1000
lea eax, [esp + 0x54]
push ebx
push eax
mov edi, ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x1000
call sub.MSVCR90.dll_memset
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x49f4e4
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x4c], ebp
push str.SYSTEMCurrentControlSetServicesModemEnum
lea ecx, [esp + 0x40]
mov dword [esp + 0x1060], ebx
call fcn.00406330
push str.ModemName
mov byte [esp + 0x1060], 1
mov dword [esp + 0x30], ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x48], esi
cmp esi, ebx
jne 0x432a6d
push 0x8007000e
call fcn.00401120
mov eax, dword [esp + 0x1064]
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x4c]
lea edx, [esp + 0x2c]
push edx
push esi
push eax
push edi
mov byte [esp + 0x106c], 2
call ecx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x1060], 1
call esi
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x48]
call fcn.00406330
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x1060], 3
call esi
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x432e2a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x48424c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x432e1b
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00406330
mov eax, dword [esp + 0x38]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x105c], 4
jge 0x432b2d
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 + 0x24], eax
movsx ecx, bl
push ecx
lea edx, [esp + 0x28]
push 0x482a00
push edx
mov byte [esp + 0x1068], 5
call fcn.00402eb0
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
xor esi, esi
add esp, 0x10
xor edi, edi
cmp eax, esi
mov dword [esp + 0x48], eax
jle 0x432dc9
mov ebx, 0x1000
push ebx
lea ecx, [esp + 0x54]
push esi
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
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 + 0x20], eax
push edi
lea ecx, [esp + 0x24]
push 0x482a00
push ecx
mov byte [esp + 0x1068], 6
call fcn.00402eb0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x432d62
lea eax, [esp + 0x50]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x432c00
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x54]
call fcn.004028e0
mov ebp, dword [esp + 0x4c]
cmp dword [ebp - 0xc], esi
jl 0x432d62
push str.VID_04E8
push ebp
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, esi
je 0x432d62
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jle 0x432d62
cmp dword [ebp - 0xc], esi
jl 0x432d62
push str.PID_6651
push ebp
call dword [sym.imp.MSVCR90.dll_wcsstr]
add esp, 8
cmp eax, esi
je 0x432d62
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jle 0x432d62
push str.SYSTEMCurrentControlSetEnum_
lea ecx, [esp + 0x20]
call fcn.00406330
mov eax, dword [ebp - 0xc]
push eax
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x1064], 7
call fcn.00404500
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x432d3a
push ebx
lea ecx, [esp + 0x54]
push esi
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push str.FriendlyName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x432d2b
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x2c]
call fcn.00406330
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1060], 8
call fcn.004040b0
test eax, eax
je 0x432d97
lea ecx, [esp + 0x28]
call fcn.00401e10
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x432d3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x105c], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x432d62
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 + 0x105c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, dword [esp + 0x48]
jl 0x432b80
jmp 0x432dc9
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], 1
cmp eax, esi
je 0x432dae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
call fcn.00401e10
lea ecx, [esp + 0x1c]
call fcn.00401e10
lea ecx, [esp + 0x20]
call fcn.00401e10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x105c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432df1
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 + 0x105c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x432e2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x105c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432e52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x105c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432e7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x105c], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x432ea2
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x103c]
xor ecx, esp
call fcn.00471f66
add esp, 0x104c
ret 4