Function at 0x1009dd00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101893e2
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x29c]
push eax
call fcn.1009e5e0
add esp, 4
push 4
push str..tmp
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10036ac0
mov dword [ebp - 0x224], 0
xor ecx, ecx
mov dword [ebp - 0x220], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x234], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x224], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x288]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x1009ddeb
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009dde1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009e554
push edx
push ecx
call fcn.10127e1e
add esp, 8
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
mov word [ebp - 0x29c], ax
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x1009e559
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x240], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.10150460
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009de90
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.1001ba50
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 4
cmovae ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x248], 8
push ecx
cmovae eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x240]
push 0x101953b4
push eax
call fcn.1001e580
mov edx, dword [ebp - 0x248]
add esp, 0x10
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x1009df38
mov ecx, dword [ebp - 0x25c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1009df2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009e563
push edx
push ecx
call fcn.10127e1e
add esp, 8
mov esi, dword [ebp - 0x240]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009e04e
call fcn.100d1170
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1009e045
push 0x4a
push str.d:jenkins.jenkinsworkspacemultiplugin_nativemultiplugin_tpiupdate.cpp
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], al
call fcn.10019000
push 3
push 0x10193e24
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], 0
call fcn.10019000
mov byte [ebp - 4], 6
call fcn.100d1170
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0xac]
push 0xb2
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.100167c0
mov edi, eax
push str.del_old_tmp_file:
push edi
mov byte [ebp - 4], 7
call fcn.1001a540
test esi, esi
mov eax, 0x10193e70
cmovne eax, esi
push eax
push edi
call fcn.1001a540
mov ecx, dword [ebp - 0x238]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xac]
call fcn.10017580
lea ecx, [ebp - 0x25c]
call fcn.10017170
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 3
call fcn.10017170
push esi
call fcn.100a1320
add esp, 4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x1009e568
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x26c], edi
mov eax, dword [ebp - 0x260]
mov ecx, eax
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x1009e091
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x23c]
call fcn.10016670
xorps xmm0, xmm0
mov byte [ebp - 4], 9
push 0x20
movlpd qword [ebp - 0x268], xmm0
call fcn.10127dee
add esp, 4
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x1009e0d7
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.1001c7e0
jmp 0x1009e0d9
xor eax, eax
push dword [ebp - 0x238]
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
call fcn.1001c130
push esi
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x240]
push 0x2bf20
push eax
push dword [ebp - 0x23c]
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.1001d620
test eax, eax
je 0x1009e178
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x26c]
call fcn.1001c930
mov edi, dword [ebp - 0x264]
or esi, 0xffffffff
test edi, edi
je 0x1009e166
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1009e166
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1009e166
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x26c]
mov dword [ebp - 0x238], 1
jmp 0x1009e1b0
mov ecx, dword [ebp - 0x264]
or esi, 0xffffffff
test ecx, ecx
je 0x1009e1a6
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1009e1a6
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x264]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1009e1a6
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x238], 0
mov edx, dword [ebp - 0x23c]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009e1d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.100d1170
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
cmp dword [ebp - 0x238], 0
mov esi, dword [ebp - 0x240]
movzx eax, al
je 0x1009e3a1
sub eax, 1
jne 0x1009e321
push 0x4a
push str.d:jenkins.jenkinsworkspacemultiplugin_nativemultiplugin_tpiupdate.cpp
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], al
call fcn.10019000
push 3
push 0x10193e24
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], 0
call fcn.10019000
mov byte [ebp - 4], 0xd
call fcn.100d1170
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0xac]
push 0xbd
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.100167c0
mov dword [ebp - 0x23c], eax
push str.down_tpi_ok_url:
push eax
mov byte [ebp - 4], 0xe
call fcn.1001a540
mov ecx, dword [ebp - 0x260]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x1009e2ac
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x10193e70
cmovne eax, ecx
push eax
push dword [ebp - 0x23c]
call fcn.1001a540
push str._file:
push dword [ebp - 0x23c]
call fcn.1001a540
test esi, esi
mov eax, 0x10193e70
cmovne eax, esi
push eax
push dword [ebp - 0x23c]
call fcn.1001a540
mov ecx, dword [ebp - 0x238]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x23c]
call dword [eax + 0x1c]
lea ecx, [ebp - 0xac]
call fcn.10017580
lea ecx, [ebp - 0x284]
call fcn.10017170
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 8
call fcn.10017170
mov edx, dword [ebp - 0x244]
mov ecx, esi
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x238], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009e345
sub ecx, dword [ebp - 0x238]
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.1001ba50
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009e37f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1009e528
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1009e528
sub eax, 1
jne 0x1009e4cb
push 0x4a
push str.d:jenkins.jenkinsworkspacemultiplugin_nativemultiplugin_tpiupdate.cpp
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], 0xf
mov byte [ebp - 0x25c], al
call fcn.10019000
push 3
push 0x10193e24
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0xf
mov byte [ebp - 0x284], 0
call fcn.10019000
mov byte [ebp - 4], 0x10
call fcn.100d1170
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0xac]
push 0xc2
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.100167c0
mov dword [ebp - 0x23c], eax
push str.down_tpi_failed._url:
push eax
mov byte [ebp - 4], 0x11
call fcn.1001a540
mov ecx, dword [ebp - 0x260]
add esp, 8
cmp dword [ecx + 0x14], 8
jb 0x1009e456
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x10193e70
cmovne eax, ecx
push eax
push dword [ebp - 0x23c]
call fcn.1001a540
push str._file:
push dword [ebp - 0x23c]
call fcn.1001a540
test esi, esi
mov eax, 0x10193e70
cmovne eax, esi
push eax
push dword [ebp - 0x23c]
call fcn.1001a540
mov ecx, dword [ebp - 0x238]
add esp, 0x18
mov eax, dword [ecx]
push dword [ebp - 0x23c]
call dword [eax + 0x1c]
lea ecx, [ebp - 0xac]
call fcn.10017580
lea ecx, [ebp - 0x284]
call fcn.10017170
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 8
call fcn.10017170
mov eax, dword [ebp - 0x244]
xor ecx, ecx
push ecx
push 0x10193fcc
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, eax
call fcn.1001ba50
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009e50f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1009e528
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x234]
call fcn.100171c0
mov eax, dword [ebp - 0x244]
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.10128191
mov esp, ebp
pop ebp
ret
call fcn.10153963
push 0x80004005
call fcn.10017a40
call fcn.10153963
push 0x80004005
call fcn.10017a40
int3