Function at 0x412c00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419fb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x758
mov eax, dword [0x422538]
push ebx
push ebp
push esi
mov dword [esp + 0x760], eax
mov eax, dword [0x4776f8]
xor esi, esi
push edi
mov ecx, 0x4776f8
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov edx, dword [0x4776f8]
mov ecx, 0x4776f8
mov dword [esp + 0x770], esi
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push str.SYSTEMCurrentControlSetServicesModemEnum
lea ecx, [esp + 0x2c]
mov byte [esp + 0x774], 1
call fcn.00406d10
mov eax, dword [0x4776f8]
mov ecx, 0x4776f8
mov byte [esp + 0x770], 2
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [0x4776f8]
mov ecx, 0x4776f8
mov byte [esp + 0x770], 3
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x28]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x164]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x400
or eax, ecx
mov byte [esp + 0x770], 4
jge 0x412d0f
push 0x400
lea ecx, [esp + 0x2c]
call fcn.00401650
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
push 0x20019
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x412d52
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [esp + 0x770], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413373
mov eax, 0x104
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x30]
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x178]
push ecx
push esi
push edx
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, esi
jne 0x413342
jmp 0x412da0
xor esi, esi
jmp 0x412da0
cmp eax, 0x103
je 0x41343b
lea eax, [esp + 0x60]
push eax
push str._____ScanEnumTree_sValue_is__s__r_n
call fcn.00401a00
lea eax, [esp + 0x68]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412dc4
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404d10
push 0xc
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x20]
call fcn.00412a60
mov ecx, dword [eax]
mov ebp, dword [esp + 0x18]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x770], 5
je 0x412e4e
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x412e3c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412e3c
push eax
call fcn.004013b0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412e33
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x412e4e
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404d10
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x770], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 4
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.00401870
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x770], 6
je 0x412ee2
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x412ed0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x412ed0
push eax
call fcn.004013b0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x412ec7
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x412ee2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404d10
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x770], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, esi
or eax, ecx
jge 0x412f2c
push esi
lea ecx, [esp + 0x1c]
call fcn.00401650
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.MSLUR71.dll__mbsupr]
add esp, 4
test esi, esi
jl 0x413516
cmp esi, dword [ebp - 8]
jg 0x413516
push str.04E8
mov dword [ebp - 0xc], esi
push ebp
mov byte [esi + ebp], 0
call dword [sym.imp.MSLUR71.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4132f3
lea eax, [esp + 0x60]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412f70
sub eax, edx
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x18]
call fcn.00404d10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push str.SYSTEMCurrentControlSetEnum_
push edx
call fcn.00412ac0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x774], 7
call fcn.00412b90
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x770], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x400
or eax, ecx
jge 0x413003
push 0x400
lea ecx, [esp + 0x14]
call fcn.00401650
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x413036
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._____end_ScanEnumTree_1__r_n
jmp 0x4132eb
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
push str.FRIENDLYNAME
push eax
call fcn.00412620
add esp, 0xc
test eax, eax
je 0x413062
cmp eax, 2
jne 0x413117
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x413073
push eax
call edi
push str.Device_Parameters
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0040f270
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x774], 8
call fcn.00412b90
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x770], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x400
or eax, ecx
jge 0x4130ee
push 0x400
lea ecx, [esp + 0x14]
call fcn.00401650
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x41312c
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push str._____end_ScanEnumTree_3__r_n
jmp 0x4132eb
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._____end_ScanEnumTree_2__r_n
jmp 0x4132eb
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push str.PortName
push eax
call fcn.00412620
add esp, 0xc
test eax, eax
je 0x413158
cmp eax, 2
jne 0x413280
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413163
push eax
call edi
lea eax, [esp + 0x60]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413170
sub eax, ecx
push eax
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x28]
call fcn.00404d10
push 0x23
push 0x5c
lea ecx, [esp + 0x28]
call fcn.0040ecf0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push str.__
push ecx
call fcn.00412ac0
push str.2c7089aa_2e0e_11d1_b114_00c04fc2aae4
push eax
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x788], 9
call fcn.0040f270
add esp, 0x18
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x774], 0xa
call fcn.00412b90
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x770], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4131fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x770], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
mov edi, eax
neg edi
mov ecx, eax
lea esi, [esp + edi + 0x268]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x413233
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov edx, eax
jne 0x41324b
mov edx, dword [esp + 0x40]
lea esi, [esp + 0x367]
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
test cl, cl
jne 0x413252
cmp dword [esp + 0x784], 6
jne 0x41328e
lea edx, [esp + edi + 0x664]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x413270
mov ebx, dword [esp + 0x20]
jmp 0x4132cb
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push str._____end_ScanEnumTree_4__r_n
jmp 0x4132eb
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx - 4]
mov edx, dword [ebx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebx - 8]
sub eax, edx
or eax, ecx
jge 0x4132b6
push edx
lea ecx, [esp + 0x24]
call fcn.00401650
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x664]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4132c1
mov ecx, dword [esp + 0x780]
lea eax, [esp + 0x268]
push eax
push ecx
call dword [esp + 0x784]
test eax, eax
jne 0x4132f3
push str._____callback_function_failed__r_n
call fcn.00401a00
add esp, 4
inc dword [esp + 0x14]
mov eax, 0x104
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x178]
push eax
push ecx
push edx
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x412d96
push eax
push str._____ScanEnumTree_RegClose_hKey__lResult_is__d__r_n
call fcn.00401a00
mov eax, dword [esp + 0x2c]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx - 0x10]
mov byte [esp + 0x770], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41337d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x770], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x770], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x770], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x770], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413414
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x768]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x758]
pop ebx
call fcn.0041937d
add esp, 0x764
ret
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x413453
push eax
call edi
lea eax, [ebx - 0x10]
mov byte [esp + 0x770], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413475
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x770], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41349b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x770], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4134c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x770], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4134e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x770], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41350c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x413416
push 0x80070057
call fcn.00401100
int3