Function at 0x401747
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov byte [ebp - 3], 0
cmp dword [0x475b78], 0
je 0x4018ee
mov dword [ebp - 8], 0
jmp 0x401773
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x11
jge 0x401783
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0x20], 0
jmp 0x40176a
mov edx, dword [0x475b88]
mov dword [ebp - 0xc], edx
push 0
push 0x486314
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402165
add esp, 0x10
test eax, eax
jne 0x4017ac
mov al, 0x5f
jmp 0x401a91
push 0x43d154
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419100
add esp, 8
mov dword [ebp - 8], 0
jmp 0x4017d2
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x401839
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 0x4863c4]
cmp ecx, 0x20
jne 0x4017f2
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x20], 0x5f
jmp 0x401837
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x4863c4]
cmp ecx, 0x60
jl 0x401827
mov edx, dword [ebp - 8]
movsx eax, byte [edx + 0x4863c4]
cmp eax, 0x7a
jg 0x401827
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x4863c4]
sub edx, 0x20
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x20], dl
jmp 0x401837
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov al, byte [edx + 0x4863c4]
mov byte [ebp + ecx - 0x20], al
jmp 0x4017c9
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x94]
push edx
call fcn.00419110
add esp, 8
mov dword [ebp - 8], 0
jmp 0x40185e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x4018c5
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 0x4863b0]
cmp edx, 0x20
jne 0x40187e
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x20], 0x5f
jmp 0x4018c3
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x4863b0]
cmp edx, 0x60
jl 0x4018b3
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x4863b0]
cmp ecx, 0x7a
jg 0x4018b3
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 0x4863b0]
sub eax, 0x20
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0x20], al
jmp 0x4018c3
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x4863b0]
mov byte [ebp + edx - 0x20], cl
jmp 0x401855
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.00419110
add esp, 8
push str.1PU20SYSDDISK0000USB
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419110
add esp, 8
jmp 0x401902
push str.EnumSCSI________USB_DISK_DRIVER_0PUSYSDRVDISK0000USB
lea edx, [ebp - 0x94]
push edx
call fcn.00419100
add esp, 8
push str.VID_
lea eax, [ebp - 0x94]
push eax
call fcn.00419110
add esp, 8
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 9]
push edx
call fcn.0040515c
add esp, 4
push 0x486300
lea eax, [ebp - 0x94]
push eax
call fcn.00419110
add esp, 8
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + 8]
push edx
call fcn.0040515c
add esp, 4
push 0x486300
lea eax, [ebp - 0x94]
push eax
call fcn.00419110
add esp, 8
push str.PID_
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419110
add esp, 8
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xb]
push eax
call fcn.0040515c
add esp, 4
push 0x486300
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419110
add esp, 8
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xa]
push eax
call fcn.0040515c
add esp, 4
push 0x486300
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419110
add esp, 8
push 0x43d1c8
lea edx, [ebp - 0x94]
push edx
call fcn.00419110
add esp, 8
mov dword [ebp - 8], 2
jmp 0x4019dc
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1a
jge 0x401a0c
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x60]
mov byte [ebp - 4], dl
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419110
add esp, 8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4019d3
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x401a2e
push 0x43d1cc
lea ecx, [ebp - 0x94]
push ecx
call fcn.00419110
add esp, 8
jmp 0x401a42
push 0x43d1d0
lea edx, [ebp - 0x94]
push edx
call fcn.00419110
add esp, 8
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x94]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 5
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0x43d1d4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x30]
mov esp, ebp
pop ebp
ret