Function at 0x10137e20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.100e9430
test eax, eax
jne 0x10137e5a
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8
push esi
mov ecx, ebx
call fcn.101353d0
test eax, eax
je 0x10137f54
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
call fcn.10134540
test eax, eax
jns 0x10137e99
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x10137ea9
mov eax, dword [esi]
push esi
call dword [eax + 4]
push edi
mov ecx, esi
call fcn.1016c020
test eax, eax
je 0x10137f33
mov eax, dword [ebx + 0xe0]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x10137f33
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10137f2c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.101342f0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10134610
mov edi, 1
jmp 0x10137f35
xor edi, edi
test esi, esi
je 0x10137f3f
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [ebp - 0x240], 0
mov ecx, edi
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x220], 0xb0000
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10137fb0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x250]
call fcn.10008240
test edi, edi
je 0x10138146
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10138000
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10137ff5
mov eax, dword [eax + 0x3c]
jmp 0x10137ff7
xor eax, eax
test eax, eax
je 0x10138000
push edi
call eax
jmp 0x10138007
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10138146
test al, 0x10
jne 0x10138146
cmp dword [ebp + 0xc], 0
je 0x101380e5
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10138088
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.101342f0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10134610
mov esi, dword [ebx + 0x20]
lea eax, [ebp - 0x250]
push eax
cmp esi, dword [ebx + 0x24]
je 0x101380e0
mov ecx, esi
call fcn.10006aa0
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x18]
call fcn.10006aa0
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x210]
mov dword [esi + 0x40], eax
add dword [ebx + 0x20], 0x44
jmp 0x10138146
lea ecx, [ebx + 0x1c]
jmp 0x10138140
mov esi, dword [ebx + 0x38]
lea eax, [ebp - 0x250]
push eax
cmp esi, dword [ebx + 0x3c]
je 0x1013813d
mov ecx, esi
call fcn.10006aa0
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x18]
call fcn.10006aa0
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x210]
mov dword [esi + 0x40], eax
add dword [ebx + 0x38], 0x44
jmp 0x10138146
lea ecx, [ebx + 0x34]
push esi
call fcn.10131f40
lea ecx, [ebp - 0x250]
call fcn.1005f500
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 8