Function at 0x10031400
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10140e51
mov eax, dword fs:[0]
push eax
mov eax, 0x13e0
call fcn.1010c650
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x10], 0
jne 0x100316d8
lea eax, [ecx + 0x50]
mov dword [ebp - 0x1354], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x100316d8
push 0x800
lea eax, [ebp - 0x1310]
push 0
push eax
call fcn.10117810
push 0x800
lea eax, [ebp - 0xb10]
push 0
push eax
call fcn.10117810
add esp, 0x18
lea eax, [ebp - 0x1310]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x10e]
push 0
push eax
call fcn.10117810
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
xor esi, esi
nop dword [eax]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x1320]
push eax
movups xmmword [ebp - 0x1320], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.10117810
movzx eax, byte [ebp - 0x1311]
push eax
movzx eax, byte [ebp - 0x1312]
push eax
movzx eax, byte [ebp - 0x1313]
push eax
movzx eax, byte [ebp - 0x1314]
push eax
movzx eax, byte [ebp - 0x1315]
push eax
movzx eax, byte [ebp - 0x1316]
push eax
movzx eax, byte [ebp - 0x1317]
push eax
movzx eax, byte [ebp - 0x1318]
push eax
movzx eax, word [ebp - 0x131a]
push eax
movzx eax, word [ebp - 0x131c]
push eax
push dword [ebp - 0x1320]
lea eax, [ebp - 0x310]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.10030bb0
lea eax, [ebp - 0x310]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10031556
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.10128604
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1310]
push eax
lea eax, [ebp - 0xb10]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb10]
push 0x400
push eax
call fcn.101284c2
add esp, 0xc
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100316ad
inc esi
cmp esi, 0xa
jl 0x100314b0
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100316d8
push 0x35
push str.d:_buildlib_commonwnd_pluginmediaadmediaadmgr.cpp
lea ecx, [ebp - 0x1350]
mov dword [ebp - 0x1340], eax
mov dword [ebp - 0x133c], 0xf
mov byte [ebp - 0x1350], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x1338]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1328], 0
mov dword [ebp - 0x1324], 0xf
mov byte [ebp - 0x1338], 0
call fcn.1001e980
mov byte [ebp - 4], 1
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x13ec]
push 0x1e
lea eax, [ebp - 0x1350]
push eax
lea eax, [ebp - 0x1338]
push eax
call fcn.10011dd0
mov esi, eax
push str.get_temp_dir_fail.
push esi
mov byte [ebp - 4], 2
call fcn.10014590
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x13ec]
call fcn.10014a50
lea ecx, [ebp - 0x1338]
call fcn.10005a20
lea ecx, [ebp - 0x1350]
call fcn.10005a20
jmp 0x100316d8
lea edx, [ebp - 0xb10]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100316b6
mov ecx, dword [ebp - 0x1354]
lea eax, [ebp - 0xb10]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10006e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret