Function at 0x40260c
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, 0x406428
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, 0x40643c
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x406444
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x406450
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x18], 1
movsb byte es:[edi], byte [esi]
call fcn.00401675
lea eax, [ebp - 0x28]
push eax
call fcn.00401675
lea eax, [ebp - 0x44]
push eax
call fcn.00401675
lea eax, [ebp - 0x30]
push eax
call fcn.00401675
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea eax, [ebp - 0x20]
mov esi, 0xf003f
push eax
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
push 0x80000001
call edi
test eax, eax
jne 0x40299a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40299a
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 0x40299a
push dword [ebp - 0x34]
lea eax, [ebp - 0x12c]
push str._08X
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [ebp - 0x1c]
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 str._s_s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
push 0x80000001
call edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x32
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40299a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x96
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40299a
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x10], ebx
push eax
call sub.MSVCRT.dll_strlen
add eax, 8
pop ecx
je 0x402831
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
shl ecx, 1
cmp eax, ecx
jae 0x402800
cmp eax, 0x10
jae 0x402812
test al, 1
mov ecx, eax
jne 0x4027d5
shr ecx, 1
mov cl, byte [ebp + ecx - 0x8c]
jmp 0x4027de
shr ecx, 1
mov cl, byte [ebp + ecx - 0x12c]
mov byte [ebp + eax - 0xcc], cl
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCRT.dll_strlen
add eax, 8
pop ecx
cmp dword [ebp - 0x10], eax
jb 0x4027a7
jmp 0x402831
mov byte [ebp + eax - 0xcc], bl
shr eax, 1
lea eax, [ebp + eax - 0x12c]
jmp 0x402822
mov byte [ebp + eax - 0xcc], bl
shr eax, 1
lea eax, [ebp + eax - 0x8c]
push eax
lea eax, [ebp - 0xcc]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCRT.dll_strlen
mov al, byte [ebp + eax - 0xc5]
mov byte [ebp - 1], al
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
add eax, 7
pop ecx
je 0x40286b
mov cl, byte [ebp + eax - 0xcd]
mov byte [ebp + eax - 0xcc], cl
dec eax
jne 0x40285a
mov al, byte [ebp - 1]
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCRT.dll_strlen
mov byte [ebp + eax - 0xc4], bl
lea eax, [ebp - 0x2d8]
push eax
xor esi, esi
call sub.MSVCRT.dll_strlen
pop ecx
test eax, eax
pop ecx
jbe 0x4028f6
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 sub.MSVCRT.dll_strlen
cmp esi, eax
pop ecx
jb 0x40289b
lea eax, [ebp - 0x2d8]
push eax
call sub.MSVCRT.dll_strlen
shr eax, 2
mov byte [ebp + eax - 0xec], bl
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0x406ba0
push 0x406468
call fcn.00403f7c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
push dword [ebp - 0xc]
call esi
inc dword [ebp - 0x14]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x1c], 0x64
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x402990
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x210]
push str._s_s
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0xf003f
jmp 0x402727
push dword [ebp - 0x20]
call esi
push 1
pop eax
jmp 0x40299c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret