Function at 0x412be6
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
push str..C:
lea eax, [ebp - 0x184]
push eax
call fcn.00419100
add esp, 8
mov dword [ebp - 0x24], 3
mov dword [ebp - 0xc], 0xc0000000
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x134], eax
push str.SYSTEMMountedDevices
lea ecx, [ebp - 0x130]
push ecx
call fcn.00419100
add esp, 8
lea edx, [ebp - 0x28]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x130]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412c82
jmp 0x413402
movsx ecx, byte [ebp + 8]
and ecx, 0x5f
mov byte [ebp - 0x10], cl
jmp 0x412c97
mov dl, byte [ebp - 0x10]
add dl, 1
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x10]
and eax, 0xff
cmp eax, 0x5a
jg 0x4133f8
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
sub ecx, 0x41
mov edx, 1
shl edx, cl
mov eax, dword [ebp - 0x134]
and eax, edx
test eax, eax
jne 0x412cc9
jmp 0x412c8e
mov dword [ebp - 8], 3
mov dword [ebp - 0x2c], 0x1fe
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
push ecx
push str.DosDevices_c:
lea edx, [ebp - 0x130]
push edx
call fcn.00419571
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x388]
push ecx
lea edx, [ebp - 8]
push edx
push 0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
push 0x1b
push str.__STORAGERemovableMedia
lea edx, [ebp - 0x388]
push edx
call fcn.0041a4ea
add esp, 0xc
test eax, eax
je 0x412d87
push 0x12
push str.__USBSTORCdRom
lea eax, [ebp - 0x388]
push eax
call fcn.0041a4ea
add esp, 0xc
test eax, eax
je 0x412d87
push 0x14
push str.__USBSTORSFloppy
lea ecx, [ebp - 0x388]
push ecx
call fcn.0041a4ea
add esp, 0xc
test eax, eax
je 0x412d87
push 0x11
push str.____USBSTORDisk
lea edx, [ebp - 0x388]
push edx
call fcn.0041a4ea
add esp, 0xc
test eax, eax
je 0x412d87
jmp 0x412c8e
mov al, byte [ebp - 0x10]
mov byte [ebp - 0x180], al
push 0
push 0
push 3
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x412dbb
jmp 0x412c8e
push 0x10050
push 0
push 0x4865c8
call fcn.004190a0
add esp, 0xc
mov word [0x4865c8], 0x2c
mov byte [0x4865cb], 0
mov byte [0x4865cc], 1
mov byte [0x4865cd], 0
mov byte [0x4865ce], 0xc
mov byte [0x4865cf], 0x18
mov byte [0x4865d0], 1
mov dword [0x4865d4], 0x2c
mov dword [0x4865d8], 2
mov dword [0x4865dc], 0x50
mov dword [0x4865e0], 0x30
mov byte [0x4865e4], 0x12
mov byte [0x4865e8], 0x2c
mov ecx, dword [0x4865d4]
add ecx, 0x50
mov dword [ebp - 0x20], ecx
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0x4865c8
push 0x2c
push 0x4865c8
push 0x4d004
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x412e84
xor edx, edx
mov dl, byte [0x4865ca]
test edx, edx
je 0x412e93
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c8e
mov dword [ebp - 0x390], 0x486628
xor ecx, ecx
mov cl, byte [0x4717a0]
test ecx, ecx
je 0x412ecf
push 0x14
push str.USB_Reader______01.A
mov edx, dword [ebp - 0x390]
push edx
call fcn.00419060
add esp, 0xc
test eax, eax
jne 0x412ecf
mov dword [ebp - 0x39c], 1
jmp 0x412ed9
mov dword [ebp - 0x39c], 0
mov eax, dword [ebp - 0x39c]
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 0
jne 0x412fae
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x390]
movsx edx, byte [ecx + 0x14]
test edx, edx
je 0x412f5d
push 8
push str.FFAP1234
mov eax, dword [ebp - 0x390]
add eax, 0x14
push eax
call fcn.00419060
add esp, 0xc
test eax, eax
jne 0x412f39
mov cl, byte [ebp - 0x10]
push ecx
call fcn.00412b11
add esp, 4
mov dword [ebp - 0x14], 1
jmp 0x412f5d
push 8
push str.PMAP1234
mov edx, dword [ebp - 0x390]
add edx, 0x14
push edx
call fcn.00419060
add esp, 0xc
test eax, eax
jne 0x412f5d
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x412f87
push 4
push str.PMAP
mov eax, dword [ebp - 0x390]
add eax, 0x10
push eax
call fcn.00419060
add esp, 0xc
test eax, eax
jne 0x412f87
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x412fac
mov dword [ebp - 0x30], 0
jmp 0x412f9f
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [0x475da8]
jae 0x412fac
jmp 0x412f96
jmp 0x412fb5
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x38c], 0
jne 0x412fc8
cmp dword [ebp - 0x14], 0
je 0x4133e9
push 0x10050
push 0
push 0x4865c8
call fcn.004190a0
add esp, 0xc
mov word [0x4865c8], 0x2c
mov byte [0x4865cb], 0
mov byte [0x4865cc], 1
mov byte [0x4865cd], 0
mov byte [0x4865ce], 0xc
mov byte [0x4865cf], 0x18
mov byte [0x4865d0], 1
mov dword [0x4865d8], 2
mov dword [0x4865dc], 0x50
mov dword [0x4865e0], 0x30
cmp dword [ebp - 0x38c], 0
je 0x413073
mov dword [0x4865d4], 0x200
mov byte [0x4865e4], 0xff
mov byte [0x4865e5], 3
mov byte [0x4865e6], 4
mov byte [0x4865e7], 0xa5
mov byte [0x4865e8], 0x5a
mov byte [0x4865e9], 0x30
mov byte [0x4865ec], 1
jmp 0x413092
mov dword [0x4865d4], 0x210
mov byte [0x4865e4], 6
mov byte [0x4865e5], 5
mov byte [0x4865ec], 0x80
mov eax, dword [0x4865d4]
add eax, 0x50
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0x4865c8
push 0x2c
push 0x4865c8
push 0x4d004
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x4133e9
xor ecx, ecx
mov cl, byte [0x4865ca]
test ecx, ecx
je 0x4130f0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c8e
mov dword [ebp - 0x390], 0x486618
mov eax, dword [ebp - 0x390]
xor ecx, ecx
mov cx, word [eax + 0x1c2]
cmp ecx, 0xfeca
je 0x4131f8
mov edx, dword [ebp - 0x390]
movsx eax, byte [edx + 0x1c4]
cmp eax, 1
jl 0x41314b
mov ecx, dword [ebp - 0x390]
movsx edx, byte [ecx + 0x1c4]
cmp edx, 1
jne 0x41315a
mov eax, dword [ebp - 0x390]
movsx ecx, byte [eax + 0x1c5]
cmp ecx, 1
jge 0x41315a
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c8e
mov eax, dword [ebp - 0x390]
movsx ecx, byte [eax + 0x1c4]
cmp ecx, 1
jg 0x41318f
mov edx, dword [ebp - 0x390]
movsx eax, byte [edx + 0x1c4]
cmp eax, 1
jne 0x4131a1
mov ecx, dword [ebp - 0x390]
movsx edx, byte [ecx + 0x1c5]
test edx, edx
jle 0x4131a1
mov eax, dword [ebp - 0x390]
movsx ecx, byte [eax + 0x1c7]
cmp ecx, 4
je 0x4131f8
mov edx, dword [ebp - 0x390]
movsx eax, byte [edx + 0x1c4]
cmp eax, 1
jg 0x4131d7
mov ecx, dword [ebp - 0x390]
movsx edx, byte [ecx + 0x1c4]
cmp edx, 1
jne 0x4131e9
mov eax, dword [ebp - 0x390]
movsx ecx, byte [eax + 0x1c5]
cmp ecx, 6
jle 0x4131e9
mov edx, dword [ebp - 0x390]
movsx eax, byte [edx + 0x1c7]
cmp eax, 9
je 0x4131f8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c8e
mov edx, dword [ebp - 0x390]
xor eax, eax
mov ax, word [edx + 0xa]
cmp eax, 0x111
je 0x41321a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c8e
cmp dword [ebp - 0x38c], 0
je 0x413234
mov byte [0x4717a0], 1
mov dword [ebp - 0x390], 0x4866b4
mov dword [ebp - 0x390], 0x486618
mov edx, dword [ebp - 0x390]
movsx eax, byte [edx + 0x181]
test eax, eax
jne 0x413319
cmp dword [ebp - 0x14], 0
je 0x413260
mov byte [0x4717a0], 0
mov dword [ebp - 0x394], 0
jmp 0x41327b
mov ecx, dword [ebp - 0x394]
add ecx, 1
mov dword [ebp - 0x394], ecx
mov edx, dword [ebp - 0x394]
cmp edx, dword [0x475db0]
jae 0x4132c5
push 0x1a
mov eax, dword [ebp - 0x390]
add eax, 0x60
push eax
mov ecx, dword [ebp - 0x394]
imul ecx, ecx, 0x34
add ecx, 0x475db8
push ecx
call fcn.00419b00
add esp, 0xc
test eax, eax
je 0x4132b3
jmp 0x41326c
mov edx, dword [ebp - 0x394]
imul edx, edx, 0x34
mov al, byte [ebp - 0x10]
mov byte [edx + 0x475de8], al
mov ecx, dword [ebp - 0x394]
cmp ecx, dword [0x475db0]
jne 0x413314
push 0x1a
mov edx, dword [ebp - 0x390]
add edx, 0x60
push edx
mov eax, dword [0x475db0]
imul eax, eax, 0x34
add eax, 0x475db8
push eax
call fcn.004196d0
add esp, 0xc
mov ecx, dword [0x475db0]
imul ecx, ecx, 0x34
mov dl, byte [ebp - 0x10]
mov byte [ecx + 0x475de8], dl
mov eax, dword [0x475db0]
add eax, 1
mov dword [0x475db0], eax
jmp 0x4133e9
mov ecx, dword [0x486558]
mov dl, byte [ebp - 0x10]
mov byte [ecx + 0x48655c], dl
mov eax, dword [0x486558]
add eax, 1
mov dword [0x486558], eax
mov dword [ebp - 0x398], 0
jmp 0x413350
mov ecx, dword [ebp - 0x398]
add ecx, 1
mov dword [ebp - 0x398], ecx
mov edx, dword [ebp - 0x398]
cmp edx, dword [0x475db0]
jae 0x41339a
push 0x1a
mov eax, dword [ebp - 0x390]
add eax, 0x60
push eax
mov ecx, dword [ebp - 0x398]
imul ecx, ecx, 0x34
add ecx, 0x475db8
push ecx
call fcn.00419b00
add esp, 0xc
test eax, eax
je 0x413388
jmp 0x413341
mov edx, dword [ebp - 0x398]
imul edx, edx, 0x34
mov al, byte [ebp - 0x10]
mov byte [edx + 0x475de9], al
mov ecx, dword [ebp - 0x398]
cmp ecx, dword [0x475db0]
jne 0x4133e9
push 0x1a
mov edx, dword [ebp - 0x390]
add edx, 0x60
push edx
mov eax, dword [0x475db0]
imul eax, eax, 0x34
add eax, 0x475db8
push eax
call fcn.004196d0
add esp, 0xc
mov ecx, dword [0x475db0]
imul ecx, ecx, 0x34
mov dl, byte [ebp - 0x10]
mov byte [ecx + 0x475de9], dl
mov eax, dword [0x475db0]
add eax, 1
mov dword [0x475db0], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c8e
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret