Function at 0x50fcd0
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, eax
sub esp, 0xcc
mov dword [ebp - 0xa0], edx
mov dword [esp], 8
call sub.msvcrt.dll_memset
test eax, eax
mov dword [ebp - 0x9c], eax
je 0x50fe77
mov dword [esp], esi
mov edi, esp
call sub.msvcrt.dll_strstr
lea edx, [eax + 0xf]
add eax, 0x1e
shr eax, 4
shl eax, 4
call fcn.00537be0
sub esp, eax
mov eax, dword [ebp - 0xa0]
lea ebx, [esp + 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], edx
mov dword [esp + 8], str._s_pu_u
mov dword [esp + 0x10], eax
mov dword [esp], ebx
call fcn.0050fca0
mov dword [esp + 4], 0x75aa22
mov dword [esp], ebx
call sub.msvcrt.dll_free
test eax, eax
mov esi, eax
je 0x50fee3
lea ebx, [ebp - 0x98]
mov esp, edi
xor edi, edi
jmp 0x50fd73
add edi, 1
mov dword [esp + 8], esi
mov dword [esp + 4], 0x80
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x50fd70
lea eax, [edi + edi*8]
shl eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x9c]
test eax, eax
mov dword [ecx + 4], eax
je 0x50fe9b
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_getenv
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], 0
mov edi, dword [eax + 4]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x80
mov dword [esp], ebx
call sub.msvcrt.dll_fread
test eax, eax
je 0x50fe53
cmp byte [ebp - 0x98], 0x23
je 0x50fdd5
lea eax, [edi + 0x20]
mov dword [esp + 8], edi
mov dword [esp + 4], str._x__x__x__x__x____x__x__x__x
mov dword [esp], ebx
mov dword [esp + 0x28], eax
lea eax, [edi + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x18], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x14], eax
lea eax, [edi + 8]
mov dword [esp + 0x10], eax
lea eax, [edi + 4]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_strcspn
cmp eax, 9
jne 0x50fdd5
add edi, 0x24
add dword [ebp - 0xa0], 1
jmp 0x50fdd5
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa0]
mov dword [eax], ecx
mov dword [esp], esi
call sub.msvcrt.dll_fopen
mov eax, dword [ebp - 0x9c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0xa0]
mov dword [esp + 4], str.Failed_to_allocate_cpuiddump_for_PU__u__ignoring_cpuiddump._n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__lseeki64]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fseek
jmp 0x50fe69
mov eax, dword [ebp - 0xa0]
mov dword [esp + 8], edi
mov dword [esp + 4], str.Failed_to_allocate__u_cpuiddump_entries_for_PU__u__ignoring_cpuiddump._n
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__lseeki64]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], esi
call sub.msvcrt.dll_fopen
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
call fcn.00548438
mov dword [ebp - 0x9c], 0
jmp 0x50fe69
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Could_not_read_dumped_cpuid_file__s__ignoring_cpuiddump._n
mov eax, dword [sym.imp.msvcrt.dll__lseeki64]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov esp, edi
jmp 0x50fec9