Function at 0x10003280
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 str.JOHNDOE_DESKTOPA79TI5D_D5413FD4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.10024380
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, edi
je 0x10003477
push ebx
call fcn.10024480
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x10003425
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 0x10003319
mov dword [ebp - 4], 0xff00ff
lea ecx, [ebp - 0x14]
push ecx
push 0x101
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000335f
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.InstallDate
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10003369
xor dword [ebp - 4], eax
cmp dword [0x1004f514], edi
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
je 0x1000337e
mov esi, 0x10045eb0
jmp 0x10003383
push esi
call edi
mov esi, eax
mov ecx, dword [ebp - 4]
push ecx
push ebx
call edi
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
push eax
push esi
push str._s__s__08X
push 0x104
push str.JOHNDOE_DESKTOPA79TI5D_D5413FD4
call ebx
mov eax, str.JOHNDOE_DESKTOPA79TI5D_D5413FD4
add esp, 0x18
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100033b0
sub eax, edx
je 0x1000341d
jmp 0x100033c0
mov edi, 0x1004fa38
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100033c6
mov dx, word [0x10045ec4]
mov eax, 0x1004fa38
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100033e0
movsx ecx, byte [esi + str.JOHNDOE_DESKTOPA79TI5D_D5413FD4]
push ecx
sub eax, edx
push str._02X
lea edx, [eax + 0x1004fa38]
push 4
push edx
call ebx
mov eax, str.JOHNDOE_DESKTOPA79TI5D_D5413FD4
add esp, 0x10
inc esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003410
sub eax, edx
cmp esi, eax
jb 0x100033c0
mov esi, dword [ebp - 0xc]
mov edi, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapValidate]
push eax
call ebx
test eax, eax
je 0x1000344c
mov eax, dword [ebp - 0xc]
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000346e
push eax
push 0
call esi
push eax
call ebx
test eax, eax
je 0x1000346e
mov ecx, dword [ebp - 8]
push ecx
push 0
call esi
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