Function at 0x446db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebx
push esi
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
xor bl, bl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov edi, 0x19
push eax
push 0x20019
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
xor esi, esi
mov byte [esp + 0x24], bl
mov byte [esp + 0x28], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x447002
push ebp
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x34]
push edx
push ecx
lea edx, [esp + 0x34]
push 0
lea ecx, [esp + 0x44]
mov eax, esi
push edx
mov edx, dword [esp + 0x38]
push ecx
inc esi
push eax
push edx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, eax
test ebp, ebp
je 0x446e45
cmp ebp, 0xea
jne 0x446ebc
mov eax, dword [esp + 0x14]
mov edi, 0x46aa5c
and eax, 0xff
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
or ecx, 0xffffffff
xor eax, eax
shl edx, 1
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + edx + 0xed]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x1c], esi
mov esi, edi
mov edi, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + edx + 0xf1]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc bl
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
mov byte [esp + 0x14], bl
mov edi, 0x19
cmp bl, 0x20
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
jae 0x446edd
test ebp, ebp
je 0x446e09
cmp ebp, 0xea
je 0x446e09
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], 0xffffffff
test bl, bl
mov ebx, dword [esp + 0x14]
rep stosd dword es:[edi], eax
jbe 0x446f21
mov ebp, ebx
lea edi, [esp + 0x6c]
lea esi, [esp + 0xed]
and ebp, 0xff
push esi
call fcn.00446da0
mov dword [edi], eax
add esp, 4
add esi, 0x1a
add edi, 4
dec ebp
jne 0x446f0d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esp + 0x14]
test al, al
jbe 0x446fe8
lea ecx, [esp + 0x6c]
and ebx, 0xff
mov dword [esp + 0x14], ecx
lea ebp, [esp + 0xed]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x14]
mov ebx, dword [edx]
cmp ebx, 0xffffffff
je 0x446fcb
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
push ebx
call fcn.00446c10
add esp, 8
test eax, eax
je 0x446fc4
mov eax, dword [esp + 0x18]
mov edi, ebp
and eax, 0xff
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x430]
or ecx, 0xffffffff
lea edx, [eax + edx*2]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 1]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x20], esi
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x18]
and ecx, 3
inc al
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x13]
mov byte [esp + 0x18], al
mov byte [edx], cl
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ebp, 0x1a
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x446f51
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x41c
ret
mov al, byte [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x41c
ret