Function at 0x4087a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepa_sendfile.c
push 0x2c0000
push str.SearchRegKey
mov dword [0x44100c], ebp
sub esp, 0x300
mov ecx, 0xc0
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4087cb
push ebx
push esi
push edi
mov byte [ebp - 8], 1
mov byte [ebp - 8], 7
lea edi, [ebp - 0x2e0]
push edi
push 1
push 0
push dword [ebp + 8]
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x408c24
inc dword [ebp - 8]
mov dword [ebp - 0x214], 0xc8
inc dword [ebp - 8]
lea edi, [ebp - 0x214]
push edi
lea edi, [ebp - 0x2dc]
push edi
lea edi, [ebp - 0x2e4]
push edi
push 0
push str.Count
push dword [ebp - 0x2e0]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x408c0f
inc dword [ebp - 8]
mov edi, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e8], edi
inc dword [ebp - 8]
mov dword [ebp - 0x10], 0
jmp 0x408bfc
mov byte [ebp - 8], 0xc
push dword [ebp - 0x10]
push 0x45520e
lea edi, [ebp - 0x210]
push edi
call fcn.0042ba29
add esp, 0xc
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov dword [ebp - 0x214], 0xc8
inc dword [ebp - 8]
lea edi, [ebp - 0x214]
push edi
lea edi, [ebp - 0x2dc]
push edi
lea edi, [ebp - 0x2e4]
push edi
push 0
lea edi, [ebp - 0x210]
push edi
push dword [ebp - 0x2e0]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x408bf1
inc dword [ebp - 8]
lea edi, [ebp - 0x2dc]
push edi
push str.SYSTEMCurrentControlSetEnum_s
lea edi, [ebp - 0x210]
push edi
call fcn.0042ba29
add esp, 0xc
mov dword [0x44100c], ebp
inc dword [ebp - 8]
lea edi, [ebp - 0x2ec]
push edi
push 1
push 0
lea edi, [ebp - 0x210]
push edi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x408bed
inc dword [ebp - 8]
mov dword [ebp - 0x214], 0xc8
inc dword [ebp - 8]
lea edi, [ebp - 0x214]
push edi
lea edi, [ebp - 0x2dc]
push edi
lea edi, [ebp - 0x2e4]
push edi
push 0
push str.FriendlyName
push dword [ebp - 0x2ec]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x408bd8
inc dword [ebp - 8]
push str._COM
lea edi, [ebp - 0x2dc]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [0x44100c], ebp
mov dword [ebp - 0x2f0], eax
inc dword [ebp - 8]
cmp dword [ebp - 0x2f0], 0
je 0x408bd4
inc dword [ebp - 8]
lea edi, [ebp - 0x2f4]
push edi
push str._COM_d_
push dword [ebp - 0x2f0]
call fcn.0042b61c
add esp, 0xc
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x2f8], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x2f8]
mov dword [esi + 0x430bf4], edi
inc dword [ebp - 8]
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x2fc], eax
mov edi, dword [ebp - 0x2f4]
mov esi, dword [ebp - 0x2fc]
mov dword [esi + 0x430bf8], edi
inc dword [ebp - 8]
cmp dword [ebp + 0xc], 2
jne 0x408a1d
mov ebx, 0
jmp 0x408a22
mov ebx, 1
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x300], eax
mov edi, dword [ebp - 0x300]
mov dword [edi + 0x430bfc], ebx
mov byte [ebp - 8], 0x19
lea edi, [ebp - 0x2dc]
push edi
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x304], eax
mov edi, dword [ebp - 0x304]
lea edi, [edi + 0x430c00]
push edi
call fcn.0042baa5
add esp, 8
mov dword [0x44100c], ebp
inc dword [ebp - 8]
cmp dword [ebp + 0xc], 2
jne 0x408b95
inc dword [ebp - 8]
mov dword [ebp - 0x214], 0xc8
inc dword [ebp - 8]
lea edi, [ebp - 0x214]
push edi
lea edi, [ebp - 0x2dc]
push edi
lea edi, [ebp - 0x2e4]
push edi
push 0
push str.HardwareID
push dword [ebp - 0x2ec]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push str.VID_
lea edi, [ebp - 0x2dc]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [0x44100c], ebp
mov dword [ebp - 0x2f0], eax
cmp eax, 0
je 0x408b29
inc dword [ebp - 8]
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x308], eax
mov edi, dword [ebp - 0x308]
lea edi, [edi + 0x430c80]
push edi
push 0x4551c0
mov edi, dword [ebp - 0x2f0]
add edi, 4
push edi
call fcn.0042b61c
add esp, 0xc
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x1f
push str.PID_
lea edi, [ebp - 0x2dc]
push edi
call sub.CRTDLL.DLL_strstr
add esp, 8
mov dword [0x44100c], ebp
mov dword [ebp - 0x2f0], eax
cmp eax, 0
je 0x408b91
inc dword [ebp - 8]
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x30c], eax
mov edi, dword [ebp - 0x30c]
lea edi, [edi + 0x430c82]
push edi
push 0x4551c0
mov edi, dword [ebp - 0x2f0]
add edi, 4
push edi
call fcn.0042b61c
add esp, 0xc
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x21
mov byte [ebp - 8], 0x22
mov eax, 0x90
mul dword [0x430bf0]
mov dword [ebp - 0x308], eax
mov edi, dword [ebp - 0x308]
cmp word [edi + 0x430c80], 0x2e8a
jne 0x408bd0
cmp word [edi + 0x430c82], 0xa
jne 0x408bd0
inc dword [ebp - 8]
inc dword [0x430bf0]
mov byte [ebp - 8], 0x24
mov byte [ebp - 8], 0x25
mov byte [ebp - 8], 0x26
push dword [ebp - 0x2ec]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x28
mov byte [ebp - 8], 0x29
mov byte [ebp - 8], 0xb
inc dword [ebp - 0x10]
mov edi, dword [ebp - 0x2e8]
cmp dword [ebp - 0x10], edi
jb 0x40886b
mov byte [ebp - 8], 0x2a
mov byte [ebp - 8], 0x2b
push dword [ebp - 0x2e0]
call sub.ADVAPI32.DLL_RegCloseKey
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x2d
cmp dword [ebp - 0xc], 0x454ed8
je 0x408c3b
push 0
call fcn.0042b684
add esp, 4
pop edi
pop esi
pop ebx
leave
ret