Function at 0x10004bd0
Capabilities:
Get disk information
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0xa
push eax
movzx eax, word [ebp - 0x41a]
add eax, dword [ebp - 0x424]
add ecx, eax
push ecx
call dword [sym.imp.MSVCR120.dll__itoa]
lea edx, [ebp - 0x414]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004c24
mov ebx, 0x10017ab0
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004c35
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.HOMEDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edi, [ebp - 0x108]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10004c70
mov ax, word [0x10013a70]
push 0
push 0
push 0
push 0
mov word [edi], ax
lea eax, [ebp - 0x418]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x10004dfe
push 0xa
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.MSVCR120.dll__itoa]
lea edx, [ebp - 0x310]
add esp, 0xc
mov esi, edx
jmp 0x10004cd0
mov al, byte [edx]
inc edx
test al, al
jne 0x10004cd0
sub edx, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004ce0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x4bc], esi
test esi, esi
je 0x10004dfe
push str.GetCurrentHwProfileA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004df7
lea ecx, [ebp - 0x4b8]
push ecx
call eax
test eax, eax
je 0x10004df7
push 0xa
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x4b8]
call dword [sym.imp.MSVCR120.dll__itoa]
lea edx, [ebp - 0x20c]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004d56
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004d62
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x4b4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004d80
sub edx, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004d90
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x48d]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x10004db0
sub edx, esi
dec ebx
lea ebx, [ebx]
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x10004dc0
push dword [ebp - 0x4bc]
mov ecx, edx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100103d3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100103d3
mov esp, ebp
pop ebp
ret