Function at 0x101271d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.100ddff0
test eax, eax
jne 0x1012720a
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
push esi
mov ecx, ebx
call fcn.10124b20
test eax, eax
je 0x101272ee
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
call fcn.10123e80
test eax, eax
jns 0x10127249
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x10127259
mov eax, dword [esi]
push esi
call dword [eax + 4]
push edi
mov ecx, esi
call fcn.1015cb40
test eax, eax
je 0x101272cd
mov eax, dword [ebx + 0xe4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x101272cd
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x101272c6
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.10123c80
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10123f40
mov edi, 1
jmp 0x101272cf
xor edi, edi
test esi, esi
je 0x101272d9
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.101f99c6
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
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10127350
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x250]
call fcn.100070c0
push edi
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x10127495
cmp dword [ebp + 0xc], 0
je 0x10127434
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x101273d7
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.10123c80
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10123f40
mov esi, dword [ebx + 0x20]
lea eax, [ebp - 0x250]
push eax
cmp dword [ebx + 0x24], esi
je 0x1012742f
mov ecx, esi
call fcn.10005170
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x18]
call fcn.10005170
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 0x10127495
lea ecx, [ebx + 0x1c]
jmp 0x1012748f
mov esi, dword [ebx + 0x38]
lea eax, [ebp - 0x250]
push eax
cmp dword [ebx + 0x3c], esi
je 0x1012748c
mov ecx, esi
call fcn.10005170
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x18]
call fcn.10005170
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 0x10127495
lea ecx, [ebx + 0x34]
push esi
call fcn.10121b70
lea ecx, [ebp - 0x250]
call fcn.1005ff90
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8