Function at 0x10003490
Capabilities:
Get disk information
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
push edi
xor edi, edi
push 0x104
mov eax, 4
push edi
push 0x10053fa8
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.1001f8f0
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x1000369b
push ebx
call fcn.1001f9f0
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x10003648
push 0x104
lea eax, [ebp - 0x124]
push eax
push str.SystemDrive
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push edi
push edi
push edi
push edi
lea edx, [ebp - 4]
push edx
push edi
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x10003529
mov dword [ebp - 4], 0xff00ff
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000356f
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.InstallDate
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10003579
xor dword [ebp - 4], eax
cmp dword [0x10053778], edi
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
je 0x1000358e
mov esi, 0x10046ec0
jmp 0x10003593
push esi
call edi
mov esi, eax
mov ecx, dword [ebp - 4]
push ecx
push ebx
call edi
mov ebx, dword [sym.imp.ntdll.dll__snprintf]
push eax
push esi
push str._s__s__08X
push 0x104
push 0x10053fa8
call ebx
mov edx, dword [ebp - 4]
push edx
push str._08X
push 0x104
push 0x10055658
call ebx
mov eax, 0x10053fa8
add esp, 0x28
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100035d5
sub eax, edx
je 0x1000363d
mov edi, 0x100540b0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100035e6
mov ax, word [0x10046edc]
mov word [edi], ax
mov eax, 0x100540b0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003600
movsx ecx, byte [esi + 0x10053fa8]
push ecx
sub eax, edx
push str._02X
lea edx, [eax + 0x100540b0]
push 4
push edx
call ebx
mov eax, 0x10053fa8
add esp, 0x10
inc esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003630
sub eax, edx
cmp esi, eax
jb 0x100035e0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov edi, 1
mov eax, dword [0x10054278]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000366b
mov ecx, dword [0x10054278]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x10003692
mov edx, dword [0x10054278]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10003692
mov eax, dword [0x10054278]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret