Function at 0x10003152
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push ebx
call sub.MSVCRT.dll_strcpy
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov edi, str._BDE_
push edi
push ebx
call esi
add esp, 0x10
test eax, eax
mov dword [ebp + 0xc], eax
je 0x10003281
mov eax, dword [ebp - 4]
push 0
push str.HKEY_LOCAL_MACHINESoftwareBrilliant_Digital_EntertainmentProducts
lea ecx, [eax + 0x34]
call fcn.1000e845
test eax, eax
jne 0x100031f2
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push str.BDE_DIR
lea ecx, [eax + 0x34]
call fcn.1000ea45
test eax, eax
jne 0x100031f2
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x34]
call fcn.1000e921
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx - 1]
push eax
call fcn.1000de47
pop ecx
cmp al, 1
pop ecx
jne 0x10003239
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
and byte [eax + ecx - 1], 0
jmp 0x10003239
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx - 1]
push eax
call fcn.1000de47
pop ecx
test al, al
pop ecx
jne 0x1000322a
push 0x10013400
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x100133fc
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push edi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
sub eax, ebx
push ebx
push eax
lea eax, [ebp - 0x108]
push str._.s_s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
push ebx
call esi
add esp, 0x2c
jmp 0x1000317f
mov edi, str._ALTNET_
push edi
push ebx
call esi
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
je 0x10003394
mov eax, dword [ebp - 4]
add eax, 0x34
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push 0
push str.HKEY_LOCAL_MACHINESoftwareAltnet
call fcn.1000e845
test eax, eax
jne 0x100032ff
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.ALTNET_DIR
call fcn.1000ea45
test eax, eax
jne 0x100032ff
mov ecx, dword [ebp - 4]
call fcn.1000e921
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx - 1]
push eax
call fcn.1000de47
pop ecx
cmp al, 1
pop ecx
jne 0x10003346
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
and byte [eax + ecx - 1], 0
jmp 0x10003346
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx - 1]
push eax
call fcn.1000de47
pop ecx
test al, al
pop ecx
jne 0x10003337
push 0x10013400
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push str.ALTNET
push dword [ebp + 8]
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push edi
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
sub eax, ebx
push ebx
push eax
lea eax, [ebp - 0x108]
push str._.s_s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
push ebx
call esi
add esp, 0x2c
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x100032a0
pop edi
pop esi
pop ebx
leave
ret 8