Function at 0x10036390
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10192dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
mov ebp, dword [esp + 0x94]
lea ecx, [esp + 0x1c]
push ecx
push 9
xor ebx, ebx
push ebx
push str.HARDWAREDEVICEMAPSERIALCOMM
push 0x80000002
mov dword [esp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x10036428
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x78], 0x10
mov esi, eax
jb 0x10036421
mov edx, dword [esp + 0x64]
push edx
call fcn.1016d679
add esp, 4
mov eax, esi
jmp 0x10036642
lea eax, [esp + 0x38]
push eax
call fcn.1003bb70
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x90], ebx
call fcn.1003bb70
mov byte [esp + 0x8c], 1
mov ebx, dword [ebp + 0x10]
cmp dword [ebp + 0xc], ebx
jbe 0x10036458
call fcn.1016d669
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp]
cmp esi, dword [ebp + 0x10]
jbe 0x10036468
call fcn.1016d669
mov eax, dword [ebp]
push ebx
push edi
push esi
push eax
lea ebx, [esp + 0x24]
mov esi, ebp
call fcn.1003bef0
xor edi, edi
xor esi, esi
mov edi, edi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
mov edx, eax
sub edx, dword [esp + 0x44]
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
jne 0x100364a5
call fcn.1016d669
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x2c]
jne 0x100364b4
call fcn.1016d669
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x48]
push ebx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x28]
push edi
lea edx, [esp + 0x6c]
push edx
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100365e1
cmp dword [esp + 0x54], 1
jne 0x100365d9
mov edi, dword [esp + 0x50]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100364f2
sub eax, edx
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x44]
mov ebx, eax
jne 0x1003650c
call fcn.1016d669
mov eax, dword [esp + 0x44]
push ebx
push edi
push eax
call fcn.1016e6e4
add esp, 0xc
test eax, eax
jne 0x100365d9
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
jne 0x10036532
call fcn.1016d669
mov eax, dword [esp + 0x2c]
call fcn.10036330
test al, al
je 0x100365d9
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x2c]
cmp edx, 3
ja 0x10036555
call fcn.1016d669
mov eax, dword [esp + 0x2c]
add eax, 3
push eax
call fcn.1016d104
add esp, 4
cmp dword [esp + 0x9c], 2
mov ebx, eax
jne 0x100365ba
lea eax, [ebx - 1]
cmp eax, 2
ja 0x100365a0
push ebx
call fcn.10036260
add esp, 4
test al, al
je 0x100365a0
movzx ecx, bx
lea ebx, [esp + 0x14]
mov edi, ebp
mov dword [esp + 0x14], ecx
call fcn.1003bc20
inc esi
xor edi, edi
jmp 0x10036480
movzx edx, bx
lea ebx, [esp + 0x14]
mov edi, ebp
mov dword [esp + 0x14], edx
call fcn.1003bc20
inc esi
xor edi, edi
jmp 0x10036480
push ebx
call fcn.10036260
add esp, 4
test al, al
je 0x100365d9
movzx eax, bx
lea ebx, [esp + 0x14]
mov edi, ebp
mov dword [esp + 0x14], eax
call fcn.1003bc20
inc esi
xor edi, edi
jmp 0x10036480
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x100365fd
push eax
call fcn.1016d679
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.1016d679
mov eax, dword [esp + 0x48]
add esp, 4
cmp eax, edi
je 0x10036627
push eax
call fcn.1016d679
add esp, 4
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.1016d679
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.1016cb16
add esp, 0x7c
ret 0xc