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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
push esi
push edi
mov esi, 0x44e304
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x54]
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, 0x44e2fc
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x44e2f0
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x44e2e8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x64
movsb byte es:[edi], byte [esi]
call fcn.00401c36
lea eax, [ebp - 0x28]
push eax
call fcn.00401c36
lea eax, [ebp - 0x40]
push eax
call fcn.00401c36
lea eax, [ebp - 0x30]
push eax
call fcn.00401c36
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 - 0x54]
push ebx
push eax
push esi
call edi
test eax, eax
jne 0x402f2e
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x18c]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x402f2e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x402f2e
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 0x402f2e
push dword [ebp - 0x34]
lea eax, [ebp - 0x128]
push str._08X
push eax
call fcn.0043fe2e
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20c]
push 0x44e1b8
push eax
call fcn.0043fe2e
add esp, 0x1c
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f2e
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x2d4]
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 0x402f2e
lea eax, [ebp - 0x88]
mov dword [ebp - 0x14], ebx
push eax
call fcn.0043f8e0
add eax, 8
pop ecx
je 0x402dc1
lea eax, [ebp - 0x88]
push eax
call fcn.0043f8e0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x14]
shl ecx, 1
cmp eax, ecx
jae 0x402d90
cmp eax, 0x10
jae 0x402da2
test al, 1
mov ecx, eax
jne 0x402d65
shr ecx, 1
mov cl, byte [ebp + ecx - 0x88]
jmp 0x402d6e
shr ecx, 1
mov cl, byte [ebp + ecx - 0x128]
mov byte [ebp + eax - 0xc8], cl
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0043f8e0
add eax, 8
pop ecx
cmp dword [ebp - 0x14], eax
jb 0x402d37
jmp 0x402dc1
mov byte [ebp + eax - 0xc8], bl
shr eax, 1
lea eax, [ebp + eax - 0x128]
jmp 0x402db2
mov byte [ebp + eax - 0xc8], bl
shr eax, 1
lea eax, [ebp + eax - 0x88]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0043f800
pop ecx
pop ecx
lea eax, [ebp - 0x88]
push eax
call fcn.0043f8e0
mov al, byte [ebp + eax - 0xc1]
mov byte [ebp - 1], al
lea eax, [ebp - 0x88]
push eax
call fcn.0043f8e0
pop ecx
add eax, 7
pop ecx
je 0x402dfb
mov cl, byte [ebp + eax - 0xc9]
mov byte [ebp + eax - 0xc8], cl
dec eax
jne 0x402dea
mov al, byte [ebp - 1]
mov byte [ebp - 0xc8], al
lea eax, [ebp - 0x88]
push eax
call fcn.0043f8e0
mov byte [ebp + eax - 0xc0], bl
lea eax, [ebp - 0x2d4]
push eax
xor esi, esi
call fcn.0043f8e0
pop ecx
test eax, eax
pop ecx
jbe 0x402e7d
mov al, byte [ebp + esi - 0x2d4]
lea ecx, [ebp + esi - 0x2d3]
sub al, 0x30
mov bl, 0xa
mov dl, byte [ecx]
imul bl
sub dl, 0x30
mov cl, byte [ecx + 1]
add al, dl
mov edx, esi
imul bl
shr edx, 2
sub cl, 0x30
add esi, 4
sub al, byte [ebp + edx - 0xc8]
sub al, dl
add al, cl
sub al, 0x7a
mov byte [ebp + edx - 0xe8], al
lea eax, [ebp - 0x2d4]
push eax
call fcn.0043f8e0
cmp esi, eax
pop ecx
jb 0x402e2b
xor ebx, ebx
lea eax, [ebp - 0x2d4]
push eax
call fcn.0043f8e0
shr eax, 2
mov byte [ebp + eax - 0xe8], bl
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x88]
push eax
push 0x453d30
push 0x44e2dc
call fcn.004052cb
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 - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x18c]
push eax
mov dword [ebp - 0x1c], 0x64
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x402f24
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x20c]
push 0x44e1b8
push eax
call fcn.0043fe2e
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x80000001
jmp 0x402cb6
push dword [ebp - 0x20]
call esi
push 1
pop eax
jmp 0x402f30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret