Function at 0x10082070
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10187506
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 4], 0
mov esi, esp
push eax
mov dword [ebp - 0x234], esi
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x230]
push eax
call fcn.100802f0
cmp dword [ebp - 0x220], 0
mov byte [ebp - 4], 1
jne 0x100821ce
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 0x100821c7
push 0x66
push str.d:jenkins.jenkinsworkspacemultiplugin_nativemultiplugin_rightsplugindefaultappdefaultappmgr.cpp
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], al
call fcn.10019000
push 3
push 0x10193e24
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call fcn.10019000
mov byte [ebp - 4], 3
call fcn.100d1170
mov edi, eax
lea ecx, [ebp - 0x300]
push 0x19c
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100167c0
mov esi, eax
push str.ProgIdisAvailable_
push esi
mov byte [ebp - 4], 4
call fcn.100174d0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x300]
call fcn.10017580
lea ecx, [ebp - 0x24c]
call fcn.10017170
lea ecx, [ebp - 0x264]
call fcn.10017170
xor ebx, ebx
jmp 0x10082452
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10150460
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov dword [ebp - 0x234], ebx
test ebx, ebx
jne 0x10082420
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 0x10082316
push 0x66
push str.d:jenkins.jenkinsworkspacemultiplugin_nativemultiplugin_rightsplugindefaultappdefaultappmgr.cpp
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.10019000
push 3
push 0x10193e24
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], bl
call fcn.10019000
mov byte [ebp - 4], 6
call fcn.100d1170
mov edi, eax
lea ecx, [ebp - 0x300]
push 0x1b6
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100167c0
mov esi, eax
push 0x1019aa98
push esi
mov byte [ebp - 4], 7
call fcn.100174d0
mov ecx, dword [ebp + 8]
mov edx, 0x10193e70
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.1001a540
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x300]
call fcn.10017580
lea ecx, [ebp - 0x264]
call fcn.10017170
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.10017170
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 0x10082420
cmp dword [ebp - 0x21c], 8
lea ebx, [ebp - 0x230]
push 0x66
cmovae ebx, dword [ebp - 0x230]
lea ecx, [ebp - 0x24c]
push str.d:jenkins.jenkinsworkspacemultiplugin_nativemultiplugin_rightsplugindefaultappdefaultappmgr.cpp
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.10019000
push 3
push 0x10193e24
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
call fcn.10019000
mov byte [ebp - 4], 9
call fcn.100d1170
mov edi, eax
lea ecx, [ebp - 0x300]
push 0x1b7
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100167c0
mov esi, eax
push 0x1019aab0
push esi
mov byte [ebp - 4], 0xa
call fcn.100174d0
test ebx, ebx
mov eax, 0x10193e70
cmovne eax, ebx
push eax
push esi
call fcn.1001a540
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x300]
call fcn.10017580
lea ecx, [ebp - 0x264]
call fcn.10017170
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.10017170
mov ebx, dword [ebp - 0x234]
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10082430
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x218]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10020080
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x10082492
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10082488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100824f1
push edx
push ecx
call fcn.10127e1e
add esp, 8
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x230], ax
add esi, 0xfffffff0
mov dword [ebp - 0x220], 0
or eax, 0xffffffff
mov dword [ebp - 0x21c], 7
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100824d1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128191
mov esp, ebp
pop ebp
ret 8
call fcn.10153963
int3