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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018923d
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3a8], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x250], 0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x250]
push edx
push 0
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx + 0x38]
mov dword [ebp - 0x254], eax
test eax, eax
jns 0x10080b91
call fcn.100ca860
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x100814fe
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x6a
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsmanager_autorunscautorunsctrl.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
call fcn.10044b60
push 3
push 0x1019eb18
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 2
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0xf
mov byte [ebp - 0x274], 0
call fcn.10044b60
mov byte [ebp - 4], 3
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0x490]
push 0x14e
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.100461a0
mov esi, eax
push str.tid_:
push esi
mov byte [ebp - 4], 4
call fcn.10047780
add esp, 8
mov ecx, esi
push dword [ebp - 0x3a8]
call fcn.100804b0
push 0x101a23c0
push esi
call fcn.10047780
add esp, 8
mov ecx, esi
push dword [ebp - 0x254]
call fcn.1005c420
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x490]
call fcn.100478a0
lea ecx, [ebp - 0x274]
call fcn.10042450
lea ecx, [ebp - 0x23c]
call fcn.10042450
jmp 0x100814fe
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x258]
mov dword [ebp - 0x258], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
lea esi, [eax + 3]
cmp dword [ebp - 0x258], eax
jle 0x10081327
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x398], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x21c], 0
inc eax
mov word [ebp - 0x3c0], si
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3b8], eax
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x21c]
movups xmm0, xmmword [ebp - 0x3c0]
push ecx
sub esp, 0x10
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x20]
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x21c]
test esi, esi
js 0x10080df2
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x3a0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x254]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov dword [ebp - 0x244], 0
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x244]
push edx
push eax
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
js 0x10080dd8
mov dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
push edx
push eax
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x10080dc4
mov dword [ebp - 0x39c], 0
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x278]
mov dword [ebp - 0x278], 0
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
call dword [ecx + 0x1c]
cmp dword [ebp - 0x278], 0
je 0x10080db0
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x39c]
push edx
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
mov eax, dword [ebp - 0x39c]
js 0x10080db6
xor ecx, ecx
mov dword [ebp - 0x224], ecx
test eax, eax
je 0x10080d6e
mov ecx, dword [eax]
lea edx, [ebp - 0x224]
push edx
push str.MbLk
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x224]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x39c]
cmovs ecx, edx
mov dword [ebp - 0x224], ecx
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x10080da2
mov eax, dword [ecx]
lea edx, [ebp - 0x398]
push edx
push ecx
call dword [eax + 0x28]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x248]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x39c]
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x10080db6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x39c]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x10080dc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x240]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x10080dd8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x244]
mov byte [ebp - 4], 9
test eax, eax
je 0x10080dec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 8
test eax, eax
je 0x10080e00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x220], 0
je 0x100812f0
cmp dword [ebp - 0x3a0], 0
je 0x100812f0
mov eax, dword [ebp - 0x398]
mov edx, 0x1019e5ec
test eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
cmovne edx, eax
xor eax, eax
mov ecx, edx
mov word [ebp - 0x23c], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10080e50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.10044c60
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x274]
call fcn.10042000
mov esi, dword [ebp - 0x248]
mov byte [ebp - 4], 0x10
test esi, esi
je 0x10080ecc
push 1
push 0x101a23dc
lea ecx, [ebp - 0x274]
call fcn.10087570
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp - 0x21c], ecx
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10080eb0
sub edx, dword [ebp - 0x21c]
mov ecx, eax
sar edx, 1
push edx
push esi
call fcn.10087570
mov edx, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x228]
test edx, edx
je 0x10080f6c
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x23c]
cmp esi, 8
cmovae eax, ecx
cmp word [eax], 0x22
jne 0x10080f29
cmp esi, 8
lea eax, [ebp - 0x23c]
cmovae eax, ecx
lea ecx, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.10087960
mov esi, dword [ebp - 0x228]
mov edx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x23c]
test edx, edx
je 0x10080f6c
cmp esi, 8
lea eax, [ebp - 0x23c]
cmovae eax, ecx
cmp word [eax + edx*2 - 2], 0x22
jne 0x10080f6c
cmp esi, 8
lea eax, [ebp - 0x23c]
cmovae eax, ecx
lea ecx, [ebp - 0x23c]
lea eax, [eax + edx*2]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x3c8]
push eax
call fcn.10087960
mov esi, dword [ebp - 0x228]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1014de30
add esp, 0xc
lea ecx, [ebp - 0x218]
cmp esi, 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10080fb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.10044c60
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10081111
call fcn.100ca860
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100812da
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 0x6a
cmovae eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x3f8]
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsmanager_autorunscautorunsctrl.cpp
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x3e8], 0
mov dword [ebp - 0x3e4], 0xf
mov byte [ebp - 0x3f8], 0
call fcn.10044b60
push 3
push 0x1019eb18
lea ecx, [ebp - 0x3e0]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x3d0], 0
mov dword [ebp - 0x3cc], 0xf
mov byte [ebp - 0x3e0], 0
call fcn.10044b60
mov byte [ebp - 4], 0x12
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0x490]
push 0x195
lea eax, [ebp - 0x3f8]
push eax
lea eax, [ebp - 0x3e0]
push eax
call fcn.100461a0
mov esi, eax
push 0x101a22dc
push esi
mov byte [ebp - 4], 0x13
call fcn.10047780
mov eax, dword [ebp - 0x21c]
mov ecx, 0x1019ea04
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.100450a0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x490]
call fcn.100478a0
lea ecx, [ebp - 0x3e0]
call fcn.10042450
lea ecx, [ebp - 0x3f8]
call fcn.10042450
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100812da
lea ecx, [ebp - 0x394]
call fcn.1007fa90
mov eax, dword [ebp - 0x220]
mov edx, eax
mov byte [ebp - 4], 0x14
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10081130
sub edx, esi
lea ecx, [ebp - 0x37c]
sar edx, 1
push edx
push eax
call fcn.10044c60
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push dword [ebp - 0x22c]
cmovae eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x314]
push eax
mov dword [ebp - 0x318], 1
call fcn.10044c60
cmp dword [ebp - 0x260], 8
lea eax, [ebp - 0x274]
push dword [ebp - 0x264]
cmovae eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x2fc]
push eax
call fcn.10044c60
mov eax, dword [ebp - 0x3a0]
mov edx, eax
cmp word [ebp - 0x254], 0xffff
sete byte [ebp - 0x2e4]
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100811c0
sub edx, esi
lea ecx, [ebp - 0x2c0]
sar edx, 1
push edx
push eax
call fcn.10044c60
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
mov ecx, dword [0x101f364c]
cmovae eax, dword [ebp - 0x23c]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.10055e90
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0x15
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10081210
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x364]
call fcn.10044c60
mov edx, dword [ebp - 0x3ac]
or eax, 0xffffffff
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1008124e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0xf
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.FileDescription
mov word [ecx], ax
call fcn.10044c60
lea eax, [ebp - 0x34c]
mov byte [ebp - 4], 0x16
push eax
sub esp, 0x18
lea eax, [ebp - 0x23c]
mov ecx, esp
push eax
call fcn.10042000
mov byte [ebp - 4], 0x14
call fcn.10092780
mov esi, dword [ebp - 0x3a8]
lea ecx, [ebp - 0x394]
add esp, 0x34
mov eax, dword [esi + 4]
push ecx
push eax
cmp dword [esi + 8], eax
je 0x100812c8
push esi
call fcn.1007ef50
add esp, 0xc
add dword [esi + 4], 0x11c
jmp 0x100812cf
mov ecx, esi
call fcn.1007dea0
lea ecx, [ebp - 0x394]
call fcn.10064550
lea ecx, [ebp - 0x274]
call fcn.100424a0
lea ecx, [ebp - 0x23c]
call fcn.100424a0
push dword [ebp - 0x248]
call edi
push dword [ebp - 0x398]
call edi
push dword [ebp - 0x3a0]
call edi
push dword [ebp - 0x220]
call edi
mov eax, dword [ebp - 0x3a4]
mov esi, 3
cmp eax, dword [ebp - 0x258]
jl 0x10080bc5
mov dword [ebp - 0x24c], 0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24c]
push edx
push 0
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x17
call dword [ecx + 0x28]
mov dword [ebp - 0x3ac], eax
test eax, eax
jns 0x10081543
call fcn.100ca860
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx eax, al
sub eax, 1
jne 0x100814ea
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x6a
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsmanager_autorunscautorunsctrl.cpp
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0xf
mov byte [ebp - 0x274], 0
call fcn.10044b60
push 3
push 0x1019eb18
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
call fcn.10044b60
mov byte [ebp - 4], 0x19
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0x490]
push 0x1ac
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.100461a0
mov esi, eax
push str.tid_:
push esi
mov byte [ebp - 4], 0x1a
call fcn.10047780
add esp, 8
mov ecx, esi
push dword [ebp - 0x3a4]
call fcn.100804b0
push str._ITaskFolder_GetFolders_hr:
push esi
call fcn.10047780
add esp, 8
mov ecx, esi
push dword [ebp - 0x3ac]
call fcn.1005c420
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x490]
call fcn.100478a0
mov edx, dword [ebp - 0x228]
mov byte [ebp - 4], 0x18
cmp edx, 0x10
jb 0x10081491
mov ecx, dword [ebp - 0x23c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10081487
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100816ee
push edx
push ecx
call fcn.1012659a
add esp, 8
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
mov byte [ebp - 4], 0x17
cmp edx, 0x10
jb 0x100814ea
mov ecx, dword [ebp - 0x274]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100814e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100816f3
push edx
push ecx
call fcn.1012659a
add esp, 8
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 1
test eax, eax
je 0x100814fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 0
test eax, eax
je 0x10081512
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10081526
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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.10126919
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
cmp dword [ebp - 0x25c], eax
jle 0x100814ea
nop word [eax + eax]
mov dword [ebp - 0x220], 0
inc eax
mov word [ebp - 0x3c0], si
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3b8], eax
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x220]
movups xmm0, xmmword [ebp - 0x3c0]
push ecx
sub esp, 0x10
mov byte [ebp - 4], 0x1c
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x20]
mov esi, eax
lea eax, [ebp - 0x3c0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x100816b4
mov dword [ebp - 0x224], 0
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x224]
push edx
push eax
mov byte [ebp - 4], 0x1d
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, dword [ebp - 0x224]
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x100816e4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x398], eax
push esi
lea ecx, [ebp - 0x398]
mov byte [ebp - 4], 0x1e
call fcn.10042d30
test al, al
jne 0x1008164e
test esi, esi
jne 0x1008162d
xor ecx, ecx
jmp 0x10081641
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10081632
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x398]
call fcn.10043c10
mov esi, dword [ebp - 0x398]
push str.microsoft
push esi
mov byte [ebp - 4], 0x1f
call fcn.10155520
add esp, 8
test eax, eax
je 0x10081690
mov eax, dword [ebp - 0x220]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10081685
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov ecx, dword [ebp - 0x3a8]
call fcn.10080a10
or eax, 0xffffffff
mov byte [ebp - 4], 0x1d
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100816ac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x224]
call edi
mov eax, dword [ebp - 0x220]
mov byte [ebp - 4], 0x17
test eax, eax
je 0x100816c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3a4]
mov esi, 3
cmp eax, dword [ebp - 0x25c]
jl 0x10081570
jmp 0x100814ea
push 0x80004005
call fcn.10042d10
call fcn.101513dc
call fcn.101513dc
int3