Function at 0x100135b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d1d7
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x10075988]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x36c]
push eax
mov dword [ebp - 0x3b0], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call esi
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100138f6
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x200
push 0x10077078
push edi
call esi
mov eax, 0x10077078
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10013630
sub eax, edx
test eax, eax
jle 0x10013652
lea ecx, [ecx]
cmp byte [eax + 0x10077078], 0x5c
je 0x100137f2
dec eax
test eax, eax
jg 0x10013640
mov ecx, dword [0x10077a54]
mov eax, dword fs:[0x2c]
push 0x10077078
mov eax, dword [eax + ecx*4]
push 0x140
lea esi, [eax + 8]
push esi
call fcn.10021deb
push str.DSfix.log
push 0x140
push esi
call fcn.10021e40
add esp, 0x18
mov ecx, 0x100771c0
push 0x40
push 2
push esi
call fcn.100130e0
lea eax, [ebp - 0x3b4]
push eax
call fcn.100225e7
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x3a8]
push eax
call fcn.100223be
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x2c]
push 0x1a
push eax
call fcn.100221d9
add esp, 0x18
mov ecx, 0x10077440
call fcn.1001c540
mov ecx, 0x10077440
call fcn.1001d3a0
mov ecx, 0x10077060
call fcn.1000a310
mov ecx, 0x10077060
call fcn.10012270
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x10077440
call fcn.100130a0
cmp dword [eax + 0x10], 0
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x3b0], ebx
je 0x1001374c
lea eax, [ebp - 0x39c]
push eax
mov ecx, 0x10077440
call fcn.100130a0
push 4
push 0
push str.none
mov ecx, eax
mov ebx, 3
call fcn.10009f80
mov byte [ebp - 0x3a9], 0
test eax, eax
jne 0x10013753
mov byte [ebp - 0x3a9], 1
test bl, 2
je 0x1001378d
and ebx, 0xfffffffd
cmp dword [ebp - 0x388], 0x10
jb 0x10013772
push dword [ebp - 0x39c]
call fcn.1001f75f
add esp, 4
mov dword [ebp - 0x388], 0xf
mov dword [ebp - 0x38c], 0
mov byte [ebp - 0x39c], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x100137aa
cmp dword [ebp - 0x18], 0x10
jb 0x100137aa
push dword [ebp - 0x2c]
call fcn.1001f75f
add esp, 4
cmp byte [ebp - 0x3a9], 0
je 0x1001380b
push 0x140
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.dinput8.dll
lea eax, [ebp - 0x16c]
push 0x140
push eax
call fcn.10021e40
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x100138a4
inc eax
cmp eax, 0x140
jae 0x10013806
mov byte [eax + 0x10077078], 0
jmp 0x10013652
call fcn.10021d11
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x10077440
call fcn.100130a0
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x10013828
mov eax, dword [eax]
push eax
push str.Loading_dinput_wrapper__s_n
push 0
call fcn.10013200
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x10013850
push dword [ebp - 0x2c]
call fcn.1001f75f
add esp, 4
lea eax, [ebp - 0x384]
push eax
mov ecx, 0x10077440
call fcn.100130a0
cmp dword [eax + 0x14], 0x10
jb 0x10013869
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [ebp - 0x370], 0x10
mov esi, eax
jb 0x10013889
push dword [ebp - 0x384]
call fcn.1001f75f
add esp, 4
mov dword [ebp - 0x370], 0xf
mov dword [ebp - 0x374], 0
mov byte [ebp - 0x384], 0
test esi, esi
jne 0x100138bf
push str.Could_not_load_original_dinput8.dll_nABORTING._n
call fcn.10013200
add esp, 4
push str.Loading_of_specified_dinput_wrapper
call fcn.10012f60
push 0x1003f110
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x100756b8
mov dword [0x100771b8], eax
call fcn.1001bd20
call fcn.10002bc0
call fcn.10002ec0
cmp byte [0x1007749c], 0
je 0x100138f2
call fcn.10002d10
mov al, 1
jmp 0x10013932
test eax, eax
jne 0x10013930
mov ecx, 0x10077440
call fcn.1001d3b0
call fcn.10002c10
mov eax, dword [0x100771c0]
mov ecx, 0
mov eax, dword [eax + 4]
add eax, 0x100771c0
test byte [eax + 0xc], 6
cmovne eax, ecx
test eax, eax
je 0x10013930
mov ecx, 0x100771c0
call fcn.10012e60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001fee4
mov esp, ebp
pop ebp
ret 0xc