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

Disassembly:
push 0xffffffffffffffff
push 0x410006
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
mov dword [esp + 0x3c], ebx
call fcn.004060c0
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1a4], 1
je 0x4052cc
mov ecx, eax
call fcn.00402280
mov esi, eax
jmp 0x4052ce
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp esi, ebx
mov dword [esp + 0x1a4], 2
mov dword [esp + 0x10], 0x4112e8
je 0x405301
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
inc eax
mov dword [esi + 4], eax
call fcn.004055b0
mov ecx, esi
mov dword [esp + 0x14], ecx
push ebp
cmp ecx, ebx
mov dword [esp + 0x1a8], 3
je 0x4054e4
lea eax, [esp + 0x10]
mov byte [esp + 0x9c], bl
push eax
push 0x20019
push ebx
push str.SoftwareWestwoodRed_Alert_2
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
cmp eax, ebx
jne 0x405456
lea ecx, [esp + 0x20]
lea edx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push str.InstallPath
push ecx
mov dword [esp + 0x38], 0x104
call ebp
push ebx
push ebx
lea edx, [esp + 0x48]
push ebx
lea eax, [esp + 0xa8]
push edx
push eax
call fcn.004074ae
mov edi, 0x414398
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
lea eax, [esp + 0x4c]
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push ecx
push str._lx_
push edx
call fcn.00407265
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00405580
lea ecx, [esp + 0x2c]
call fcn.00402380
lea edx, [esp + 0x20]
lea eax, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push str.Serial
mov byte [esp + 0x70], bl
mov dword [esp + 0x34], 0x40
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00405580
lea ecx, [esp + 0x2c]
call fcn.00402380
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
cmp eax, ebx
jne 0x4054e0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push edx
push eax
push ebx
push str.ProductID
push ecx
mov byte [esp + 0x74], bl
mov dword [esp + 0x34], 0x40
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push 0x41434c
push eax
call fcn.00405580
lea ecx, [esp + 0x2c]
call fcn.00402380
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00405580
lea ecx, [esp + 0x2c]
call fcn.00402380
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1b0]
mov dword [esi + 4], ebx
cmp ecx, ebx
mov byte [esp + 0x1a8], 4
mov dword [esi], 0x4112e8
mov edi, ecx
pop ebp
je 0x405520
mov edx, dword [ecx + 4]
inc edx
mov dword [ecx + 4], edx
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x405519
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], edi
mov dword [esp + 0x38], 1
cmp ecx, ebx
mov byte [esp + 0x1a4], bl
mov dword [esp + 0x10], 0x4112e4
je 0x405540
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x19c
ret 4