Function at 0x100a6c30
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b8392
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2a8], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x100a6cd0
add eax, 2
cmp word [eax], 0
jne 0x100a6cc7
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x264]
call fcn.1001b660
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x264]
call fcn.100a8090
push str.Program_Files_ldplayer9box
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.100740d0
add esp, 4
cmp dword [ebp - 0x268], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x100a6d2f
push dword [ebp - 0x27c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x250], 8
jb 0x100a6d64
push dword [ebp - 0x264]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x250], 7
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
call fcn.100a69e0
mov edi, eax
push str.GetNativeSystemInfo
push str.kernel32
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100a6db8
lea ecx, [ebp - 0x288]
push ecx
call eax
jmp 0x100a6dc5
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x288]
cmp ax, 9
je 0x100a6ddc
cmp ax, 6
je 0x100a6ddc
xor cl, cl
jmp 0x100a6dde
mov cl, 1
test cl, cl
mov edx, str.LdBoxwin.x86_
mov eax, str.LdBoxwin.amd64_
lea ecx, [ebp - 0x234]
cmove eax, edx
mov edx, edi
push eax
call fcn.100740d0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x28c], 8
jb 0x100a6e16
push dword [ebp - 0x2a0]
call esi
add esp, 4
mov edi, dword [sym.imp.MSVCP120.dll_enum_std::tr2::sys::file_type___cdecl_std::tr2::sys::_Stat_wchar_t_const___int__]
lea ecx, [ebp - 0x2a4]
xor eax, eax
mov dword [ebp - 0x28c], 7
cmp dword [ebp - 0x238], 8
mov word [ebp - 0x2a0], ax
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push ecx
push eax
mov dword [ebp - 0x290], 0
call edi
add esp, 8
test eax, eax
je 0x100a6e69
cmp eax, 1
jne 0x100a6ea3
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x2a4]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x2a4], 0
cmovae eax, dword [ebp - 0x234]
push ecx
push eax
call edi
add esp, 8
test eax, eax
je 0x100a6ea3
cmp eax, 1
lea eax, [ebp - 0x234]
jne 0x100a6ea9
lea eax, [ebp - 0x24c]
push eax
mov ecx, 0x101131a4
call fcn.100057c0
cmp dword [ebp - 0x220], 8
jb 0x100a6ec8
push dword [ebp - 0x234]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
cmp dword [ebp - 0x238], 8
mov dword [ebp - 0x224], eax
mov word [ebp - 0x234], ax
jb 0x100a6ef5
push dword [ebp - 0x24c]
call esi
add esp, 4
mov eax, 0x101131a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 4