Function at 0x10003220
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.LOCALSERVICE_JOHNDEACFC57A3_BF4BCE24
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.10024c00
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, edi
je 0x10003417
push ebx
call fcn.10024d00
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x100033c5
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 0x100032b9
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 0x100032ff
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 0x10003309
xor dword [ebp - 4], eax
cmp dword [0x1004e614], edi
mov edi, dword [sym.imp.USER32.dll_CharUpperA]
je 0x1000331e
mov esi, 0x10045788
jmp 0x10003323
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.LOCALSERVICE_JOHNDEACFC57A3_BF4BCE24
call ebx
mov eax, str.LOCALSERVICE_JOHNDEACFC57A3_BF4BCE24
add esp, 0x18
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003350
sub eax, edx
je 0x100033bd
jmp 0x10003360
mov edi, str._4C_4F_43_41_4C_53_45_52
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10003366
mov dx, word [0x1004579c]
mov eax, str._4C_4F_43_41_4C_53_45_52
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003380
movsx ecx, byte [esi + str.LOCALSERVICE_JOHNDEACFC57A3_BF4BCE24]
push ecx
sub eax, edx
push str._02X
lea edx, [eax + str._4C_4F_43_41_4C_53_45_52]
push 4
push edx
call ebx
mov eax, str.LOCALSERVICE_JOHNDEACFC57A3_BF4BCE24
add esp, 0x10
inc esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100033b0
sub eax, edx
cmp esi, eax
jb 0x10003360
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 0x100033ec
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 0x1000340e
push eax
push 0
call esi
push eax
call ebx
test eax, eax
je 0x1000340e
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