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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10187051
mov eax, dword fs:[0]
push eax
mov eax, 0x13e0
call fcn.101376c0
mov eax, dword [0x101d90a8]
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 0x10032288
lea eax, [ecx + 0x50]
mov dword [ebp - 0x1354], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x10032288
push 0x800
lea eax, [ebp - 0x1310]
push 0
push eax
call fcn.1015bd90
push 0x800
lea eax, [ebp - 0xb10]
push 0
push eax
call fcn.1015bd90
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.1015bd90
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.1015bd90
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.10031750
lea eax, [ebp - 0x310]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10032106
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x80
push eax
call fcn.1016cd1b
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.1016cbd9
add esp, 0xc
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003225d
inc esi
cmp esi, 0xa
jl 0x10032060
call fcn.1006bca0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10032288
push 0x5e
push str.d:jenkins.jenkinsworkspacelib_commonwnd_plugin_realeasewnd_pluginmediaadmediaadmgr.cpp
lea ecx, [ebp - 0x1350]
mov dword [ebp - 0x1340], eax
mov dword [ebp - 0x133c], 0xf
mov byte [ebp - 0x1350], al
call fcn.1001f970
push 3
push 0x10193314
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.1001f970
mov byte [ebp - 4], 1
call fcn.1006bca0
mov edi, eax
lea ecx, [ebp - 0x13ec]
push 0x21
lea eax, [ebp - 0x1350]
push eax
lea eax, [ebp - 0x1338]
push eax
call fcn.100119f0
mov esi, eax
push str.get_temp_dir_fail.
push esi
mov byte [ebp - 4], 2
call fcn.100146d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x13ec]
call fcn.10014b90
lea ecx, [ebp - 0x1338]
call fcn.10005450
lea ecx, [ebp - 0x1350]
call fcn.10005450
jmp 0x10032288
lea edx, [ebp - 0xb10]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10032266
mov ecx, dword [ebp - 0x1354]
lea eax, [ebp - 0xb10]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10006830
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.1013724c
mov esp, ebp
pop ebp
ret