Function at 0x42d251
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, str.SOFTWARE_
mov dword [ebp - 0x128], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x120], edx
push 0x104
xor ebx, ebx
mov dword [ebp - 0x124], ecx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x114]
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00478bc0
or dword [ebp - 0x12c], 0xffffffff
push 4
pop eax
push eax
push ebx
push dword [ebp - 0x128]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x130], eax
call fcn.00478bc0
mov esi, dword [ebp - 0x120]
add esp, 0x18
test esi, esi
je 0x42d4f4
push esi
call fcn.004816f0
mov edi, eax
pop ecx
test edi, edi
je 0x42d2ee
cmp byte [esi + edi], 0x5c
je 0x42d31f
sub edi, 1
jne 0x42d2e3
lea eax, [ebp - 0x11c]
push eax
push 0x2001d
push ebx
push str.SOFTWARE
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42d45d
mov dword [ebp - 0x11c], ebx
jmp 0x42d4db
push 9
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004873d4
add esp, 0xc
test eax, eax
je 0x42d3cd
lea eax, [edi + 0xa]
cmp eax, 0x104
jae 0x42d4f4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00486c30
push esi
call fcn.004816f0
mov esi, eax
lea eax, [ebp - 0x114]
push eax
call fcn.004816f0
mov ecx, 0x103
add esp, 0x10
sub ecx, eax
lea eax, [esi + 1]
cmp eax, ecx
jae 0x42d38b
mov esi, dword [ebp - 0x120]
push esi
call fcn.004816f0
pop ecx
lea ecx, [eax + 1]
jmp 0x42d3a5
lea eax, [ebp - 0x114]
push eax
call fcn.004816f0
mov esi, dword [ebp - 0x120]
pop ecx
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00481780
lea eax, [edi + 9]
add esp, 0xc
cmp eax, 0x104
jae 0x42d505
mov byte [ebp + eax - 0x114], bl
jmp 0x42d430
cmp edi, 0x104
jae 0x42d4f4
push esi
call fcn.004816f0
pop ecx
inc eax
mov ecx, 0x104
cmp eax, ecx
jae 0x42d3f4
push esi
call fcn.004816f0
pop ecx
lea ecx, [eax + 1]
push ecx
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00476fc0
push esi
call fcn.004816f0
add esp, 0x10
inc eax
cmp eax, 0x104
jae 0x42d41d
push esi
call fcn.004816f0
pop ecx
inc eax
jmp 0x42d422
mov eax, 0x104
mov byte [ebp + eax - 0x115], bl
mov byte [ebp + edi - 0x114], bl
lea eax, [ebp - 0x118]
inc edi
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42d484
mov dword [ebp - 0x118], ebx
jmp 0x42d4c6
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push 7
push ebx
push ebx
push ebx
push str.FormatUsbFormatUsb
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x42d451
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x128]
lea eax, [ebp - 0x12c]
push eax
push ebx
lea eax, [esi + edi]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x42d4c3
test eax, eax
jne 0x42d4c6
cmp dword [ebp - 0x12c], 4
jne 0x42d4c6
cmp dword [ebp - 0x130], ebx
jbe 0x42d4c6
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x11c], 0
je 0x42d4db
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x118], 0
je 0x42d4f0
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x42d4f6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
call fcn.00475db1
int3