Function at 0x7f2e4217
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [0x7f30bacc], 0
mov eax, dword [0x7f30b094]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x128], eax
je 0x7f2e4262
push eax
push dword [ebp + 0x10]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x7f2e44b1
cmp ecx, 0xffff
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, 0x7f2d2cc0
jbe 0x7f2e4347
push ecx
call fcn.7f2daf04
mov esi, eax
mov eax, dword [0x7f30b088]
inc esi
imul eax, esi
pop ecx
push eax
call fcn.7f2d55af
test eax, eax
je 0x7f2e42b4
mov eax, dword [0x7f30b088]
imul eax, esi
test eax, eax
je 0x7f2e42b4
add eax, 3
and eax, 0xfffffffc
call fcn.7f2fec90
mov dword [ebp - 0x114], esp
jmp 0x7f2e42bb
and dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 0
je 0x7f2e434d
xor eax, eax
cmp dword [0x7f30bacc], eax
mov dword [ebp - 0x118], eax
jne 0x7f2e42e6
cmp byte [0x7f30b08d], al
mov dword [ebp - 0x110], eax
je 0x7f2e42f0
mov dword [ebp - 0x110], 0x400
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
test eax, eax
mov eax, dword [0x7f30bac8]
jne 0x7f2e4304
mov eax, dword [0x7f30b084]
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [0x7f30b088]
imul ecx, esi
push ebx
push ecx
push dword [ebp - 0x114]
push esi
push dword [ebp - 0x120]
push dword [ebp - 0x110]
push eax
call edi
cmp dword [ebp - 0x118], 0
jne 0x7f2e4343
test eax, eax
je 0x7f2e4343
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7f2e434d
push 0x7b
jmp 0x7f2e433b
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffff
jbe 0x7f2e442c
push eax
call fcn.7f2daf04
mov esi, eax
mov eax, dword [0x7f30b088]
inc esi
imul eax, esi
pop ecx
push eax
call fcn.7f2d55af
test eax, eax
je 0x7f2e4399
mov eax, dword [0x7f30b088]
imul eax, esi
test eax, eax
je 0x7f2e4399
add eax, 3
and eax, 0xfffffffc
call fcn.7f2fec90
mov dword [ebp - 0x110], esp
jmp 0x7f2e43a0
and dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0
je 0x7f2e443b
xor eax, eax
cmp dword [0x7f30bacc], eax
mov dword [ebp - 0x124], eax
jne 0x7f2e43cb
cmp byte [0x7f30b08d], al
mov dword [ebp - 0x118], eax
je 0x7f2e43d5
mov dword [ebp - 0x118], 0x400
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
test eax, eax
mov eax, dword [0x7f30bac8]
jne 0x7f2e43e9
mov eax, dword [0x7f30b084]
lea ecx, [ebp - 0x124]
push ecx
mov ecx, dword [0x7f30b088]
imul ecx, esi
push ebx
push ecx
push dword [ebp - 0x110]
push esi
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
push eax
call edi
cmp dword [ebp - 0x124], 0
jne 0x7f2e4428
test eax, eax
je 0x7f2e4428
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7f2e4432
push 0x7b
jmp 0x7f2e4420
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x7f2e4444
cmp dword [ebp - 0x11c], 0
jne 0x7f2e4456
cmp dword [ebp - 0x114], 0
jne 0x7f2e445a
cmp dword [ebp - 0x120], 0
je 0x7f2e445a
xor eax, eax
jmp 0x7f2e44b1
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x110]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
test esi, esi
je 0x7f2e44af
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
test eax, eax
mov ecx, dword [0x7f30bac8]
jne 0x7f2e4492
mov ecx, dword [0x7f30b084]
mov eax, 0x104
push eax
push dword [ebp - 0x128]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, esi
lea esp, [ebp - 0x134]
mov ecx, dword [ebp - 4]
call fcn.7f2fed53
pop edi
pop esi
pop ebx
leave
ret 0x10