Function at 0x1000a660
Capabilities:
Get common file path

Disassembly:
push 0x48c
mov eax, 0x10024761
call fcn.100233e2
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x480], ebx
cmp ecx, edx
je 0x1000abf6
cmp eax, edx
je 0x1000abf6
mov edi, dword [ecx]
mov esi, dword [eax]
cmp edi, edx
je 0x1000abf6
cmp esi, edx
je 0x1000abf6
cmp ebx, edx
jne 0x1000a6e9
cmp esi, dword [edi + 0x20]
jne 0x1000a6d0
push edx
push dword [edi + 0x28]
xor eax, eax
push dword [edi]
inc eax
mov word [edi + 0x26c], ax
call fcn.10015f10
add esp, 0xc
jmp 0x1000abf6
mov esi, dword [esi + 0x60]
cmp esi, edx
je 0x1000abf6
push edi
mov ecx, esi
call fcn.10015f10
pop ecx
jmp 0x1000abf6
cmp esi, dword [edi + 0x20]
jne 0x1000a6f5
xor ecx, ecx
inc ecx
mov word [edi + 0x32], cx
xor ecx, ecx
inc ecx
mov word [esi + 0x4c], cx
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], edx
mov byte [ebp - 0x458], dl
mov eax, dword [eax + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x47c], edx
cmp eax, edx
je 0x1000a7e6
push 4
push eax
push str.file
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1000a7e6
movzx eax, word [edi + 0x26a]
cmp eax, 0xa
ja 0x1000a765
jne 0x1000a7e6
cmp word [edi + 0x268], 1
jb 0x1000a7e6
call fcn.1000bdcf
test al, al
jne 0x1000a7e6
push ebx
lea ecx, [ebp - 0x474]
call fcn.10015f10
lea eax, [ebp - 0x474]
push eax
mov byte [ebp - 4], 1
call fcn.100035f4
pop ecx
push 0
push 1
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 0
call fcn.10015f10
cmp dword [ebp - 0x47c], 0
je 0x1000a7e6
mov ebx, dword [ebp - 0x47c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
test al, al
mov eax, dword [ebx]
mov ecx, ebx
je 0x1000a7cd
call dword [eax + 0x18]
mov dword [ebp - 0x478], eax
jmp 0x1000a7de
push 1
call dword [eax]
and dword [ebp - 0x47c], 0
mov ebx, dword [ebp - 0x47c]
test ebx, ebx
jne 0x1000a87b
call fcn.1000bdcf
test al, al
jne 0x1000a87b
push dword [edi + 8]
call fcn.10015f10
pop ecx
test al, al
je 0x1000a87b
push 0
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x114]
push eax
push dword [edi + 8]
call fcn.10015f10
add esp, 0x10
test eax, eax
je 0x1000a82c
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 0x1c
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x484], esp
push eax
call fcn.10015f10
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x480]
call fcn.100086bc
add esp, 0x24
test al, al
je 0x1000a880
cmp dword [ebp - 0x444], 0x10
jb 0x1000a873
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x478], eax
jmp 0x1000a880
lea eax, [ebp - 0x458]
jmp 0x1000a86b
mov ebx, 0x104
and dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
mov byte [ebp - 4], 2
call fcn.1000bdcf
test al, al
je 0x1000a90e
push dword [ebp - 0x480]
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x1000a90e
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 0x1c
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x484], esp
push eax
call fcn.10015f10
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x480]
call fcn.100085ed
add esp, 0x24
test al, al
je 0x1000a90e
cmp dword [ebp - 0x428], 0x10
mov eax, dword [ebp - 0x43c]
jae 0x1000a908
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x478], eax
push 0
mov ebx, 0x7fffffff
push ebx
push dword [ebp - 0x478]
call fcn.10015f10
inc eax
mov dword [ebp - 0x484], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x488], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x48c]
mov eax, dword [eax + 8]
push 0
push ebx
push eax
mov dword [ebp - 0x494], eax
call fcn.10015f10
add esp, 0x18
inc eax
mov dword [ebp - 0x498], eax
call fcn.1000bdcf
test al, al
je 0x1000a96c
xor eax, eax
inc eax
mov word [esi + 0x5e], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x478], 0
je 0x1000a9cb
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x478]
push 8
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x1000a9cb
push 1
push 1
lea eax, [ebp - 0x31c]
push eax
push dword [edi + 8]
call fcn.10015f10
add esp, 0x10
cmp word [esi + 0x5e], 0
je 0x1000aa9b
call fcn.1000bdcf
mov ebx, dword [ebp - 0x47c]
test al, al
je 0x1000aa40
test ebx, ebx
je 0x1000a9f2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x1000a9f4
xor eax, eax
mov ecx, str.MMFS
test ebx, ebx
jne 0x1000aa02
mov ecx, 0x10027618
push eax
push ecx
push str.CstringUTF8
push dword [ebp - 0x498]
push dword [ebp - 0x494]
push dword [ebp - 0x490]
push dword [ebp - 0x488]
push dword [ebp - 0x484]
push dword [ebp - 0x478]
push dword [esi + 0x24]
push dword [edi + 8]
call fcn.10015f10
add esp, 0x2c
jmp 0x1000abb3
test ebx, ebx
je 0x1000aa4d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x1000aa4f
xor eax, eax
mov ecx, str.MMFS
test ebx, ebx
jne 0x1000aa5d
mov ecx, 0x10027618
push eax
push ecx
push str.Cstring
push dword [ebp - 0x498]
push dword [ebp - 0x494]
push dword [ebp - 0x490]
push dword [ebp - 0x488]
push dword [ebp - 0x484]
push dword [ebp - 0x478]
push dword [esi + 0x24]
push dword [edi + 8]
call fcn.10015f10
add esp, 0x2c
jmp 0x1000abad
and dword [ebp - 0x480], 0
lea eax, [ebp - 0x480]
push eax
push dword [esi + 0x28]
call fcn.10008775
pop ecx
pop ecx
test al, al
je 0x1000aad6
mov eax, dword [ebp - 0x480]
push 0
push ebx
push eax
mov dword [ebp - 0x488], eax
call fcn.10015f10
add esp, 0xc
inc eax
mov dword [ebp - 0x490], eax
cmp word [esi + 0x16], 0
je 0x1000aaf4
push dword [edi]
call fcn.10015f10
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1000aaf4
mov dword [ebp - 0x48c], ecx
jmp 0x1000aafb
and dword [ebp - 0x48c], 0
call fcn.1000bdcf
mov ebx, dword [ebp - 0x47c]
test al, al
je 0x1000ab39
test ebx, ebx
je 0x1000ab17
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x1000ab19
xor eax, eax
mov ecx, str.MMFS
test ebx, ebx
jne 0x1000ab27
mov ecx, 0x10027618
push eax
push dword [ebp - 0x48c]
push dword [esi + 0x20]
push ecx
push str.CstringUTF8
jmp 0x1000ab66
test ebx, ebx
je 0x1000ab46
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
jmp 0x1000ab48
xor eax, eax
mov ecx, str.MMFS
test ebx, ebx
jne 0x1000ab56
mov ecx, 0x10027618
push eax
push dword [ebp - 0x48c]
push dword [esi + 0x20]
push ecx
push str.Cstring
push dword [ebp - 0x498]
push dword [ebp - 0x494]
push dword [ebp - 0x490]
push dword [ebp - 0x488]
push dword [ebp - 0x484]
push dword [ebp - 0x478]
push dword [esi + 0x24]
push dword [edi + 8]
call fcn.10015f10
add esp, 0x34
cmp dword [ebp - 0x480], 0
je 0x1000abad
push dword [ebp - 0x480]
call fcn.10015f10
pop ecx
mov ebx, dword [ebp - 0x47c]
xor esi, esi
cmp ebx, esi
je 0x1000abd2
cmp word [edi + 0x260], si
je 0x1000abcc
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
jmp 0x1000abd2
mov dword [edi + 0x264], ebx
push esi
push 1
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0
call fcn.10015f10
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x458]
call fcn.10015f10
call fcn.10023465
ret