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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ea26
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x101ed40c]
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.10042e70
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x230]
push eax
call fcn.1007aff0
cmp dword [ebp - 0x220], 0
mov byte [ebp - 4], 1
jne 0x1007c15e
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 0x1007c157
push 0x59
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsmanager_assoc.cpp
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], al
call fcn.10044b60
push 3
push 0x1019eb18
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.10044b60
mov byte [ebp - 4], 3
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0x300]
push 0x41e
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.100461a0
mov esi, eax
push str.ProgIdisAvailable_
push esi
mov byte [ebp - 4], 4
call fcn.10047780
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x300]
call fcn.100478a0
lea ecx, [ebp - 0x24c]
call fcn.10042450
lea ecx, [ebp - 0x264]
call fcn.10042450
xor ebx, ebx
jmp 0x1007c3e2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1014de30
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 0x1007c3b0
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 0x1007c2a6
push 0x59
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsmanager_assoc.cpp
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.10044b60
push 3
push 0x1019eb18
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.10044b60
mov byte [ebp - 4], 6
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0x300]
push 0x438
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100461a0
mov esi, eax
push 0x1019f238
push esi
mov byte [ebp - 4], 7
call fcn.10047780
mov ecx, dword [ebp + 8]
mov edx, 0x1019ea04
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.100450a0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x300]
call fcn.100478a0
lea ecx, [ebp - 0x264]
call fcn.10042450
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.10042450
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 0x1007c3b0
cmp dword [ebp - 0x21c], 8
lea ebx, [ebp - 0x230]
push 0x59
cmovae ebx, dword [ebp - 0x230]
lea ecx, [ebp - 0x24c]
push str.d:jenkins.jenkinsworkspacepcmanage_ownpop_native_rightsplugin_rightsmanager_assoc.cpp
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.10044b60
push 3
push 0x1019eb18
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.10044b60
mov byte [ebp - 4], 9
call fcn.100ca860
mov edi, eax
lea ecx, [ebp - 0x300]
push 0x439
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.100461a0
mov esi, eax
push 0x1019f250
push esi
mov byte [ebp - 4], 0xa
call fcn.10047780
test ebx, ebx
mov eax, 0x1019ea04
cmovne eax, ebx
push eax
push esi
call fcn.100450a0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x300]
call fcn.100478a0
lea ecx, [ebp - 0x264]
call fcn.10042450
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.10042450
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 0x1007c3c0
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x218]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10043c10
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x1007c422
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007c418
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007c481
push edx
push ecx
call fcn.1012659a
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 0x1007c461
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.10126919
mov esp, ebp
pop ebp
ret 8
call fcn.101513dc
int3