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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
push esi
push edi
mov esi, 0x44f454
lea edi, [ebp - 0x58]
lea eax, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x44f44c
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x44f440
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x44f438
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x64
movsb byte es:[edi], byte [esi]
call fcn.00401fe8
lea eax, [ebp - 0x28]
push eax
call fcn.00401fe8
lea eax, [ebp - 0x44]
push eax
call fcn.00401fe8
lea eax, [ebp - 0x30]
push eax
call fcn.00401fe8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea eax, [ebp - 0x20]
mov esi, 0x80000001
push eax
push 0xf003f
lea eax, [ebp - 0x58]
push ebx
push eax
push esi
call edi
test eax, eax
jne 0x403316
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x403316
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x403316
push dword [ebp - 0x34]
lea eax, [ebp - 0x12c]
push str._08X
push eax
call fcn.004404ee
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x64
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x190]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x210]
push 0x44f1e4
push eax
call fcn.004404ee
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push ebx
push eax
push esi
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403316
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x96
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403316
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x1c], ebx
push eax
call fcn.0043ffa0
add eax, 8
pop ecx
je 0x4031a0
lea eax, [ebp - 0x8c]
push eax
call fcn.0043ffa0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
shl ecx, 1
cmp eax, ecx
jae 0x40316f
cmp eax, 0x10
jae 0x403181
test al, 1
mov ecx, eax
jne 0x403144
shr ecx, 1
mov cl, byte [ebp + ecx - 0x8c]
jmp 0x40314d
shr ecx, 1
mov cl, byte [ebp + ecx - 0x12c]
mov byte [ebp + eax - 0xcc], cl
inc eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0043ffa0
add eax, 8
pop ecx
cmp dword [ebp - 0x1c], eax
jb 0x403116
jmp 0x4031a0
mov byte [ebp + eax - 0xcc], bl
shr eax, 1
lea eax, [ebp + eax - 0x12c]
jmp 0x403191
mov byte [ebp + eax - 0xcc], bl
shr eax, 1
lea eax, [ebp + eax - 0x8c]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0043fec0
pop ecx
pop ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.0043ffa0
mov al, byte [ebp + eax - 0xc5]
mov byte [ebp - 1], al
lea eax, [ebp - 0x8c]
push eax
call fcn.0043ffa0
pop ecx
add eax, 7
pop ecx
je 0x4031da
mov cl, byte [ebp + eax - 0xcd]
mov byte [ebp + eax - 0xcc], cl
dec eax
jne 0x4031c9
mov al, byte [ebp - 1]
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0x8c]
push eax
call fcn.0043ffa0
mov byte [ebp + eax - 0xc4], bl
lea eax, [ebp - 0x2d8]
push eax
xor esi, esi
call fcn.0043ffa0
pop ecx
test eax, eax
pop ecx
jbe 0x403265
mov al, byte [ebp + esi - 0x2d8]
mov dl, byte [ebp + esi - 0x2d7]
lea ecx, [ebp + esi - 0x2d7]
sub al, 0x30
sub dl, 0x30
mov cl, byte [ecx + 1]
sub cl, 0x30
mov byte [ebp - 0x36], cl
mov cl, 0xa
imul cl
add al, dl
mov dl, 0xa
imul dl
mov ecx, esi
add esi, 4
shr ecx, 2
sub al, byte [ebp + ecx - 0xcc]
sub al, cl
add al, byte [ebp - 0x36]
sub al, 0x7a
mov byte [ebp + ecx - 0xec], al
lea eax, [ebp - 0x2d8]
push eax
call fcn.0043ffa0
cmp esi, eax
pop ecx
jb 0x40320a
lea eax, [ebp - 0x2d8]
push eax
call fcn.0043ffa0
shr eax, 2
mov byte [ebp + eax - 0xec], bl
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0x454f50
push 0x44f42c
call fcn.0040596d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
push dword [ebp - 8]
call esi
inc dword [ebp - 0x18]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x14], 0x64
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40330c
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x210]
push 0x44f1e4
push eax
call fcn.004404ee
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x80000001
jmp 0x403095
push dword [ebp - 0x20]
call esi
push 1
pop eax
jmp 0x403318
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret