Function at 0x420480
Capabilities:
Check if file exists
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5136c2
mov eax, dword fs:[0]
push eax
sub esp, 0x900
mov eax, dword [0x55d3e4]
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 eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x85c], eax
xor eax, eax
mov dword [ebp - 0x864], edx
mov dword [ebp - 0x84c], eax
nop dword [eax + eax]
mov ebx, dword [eax + 0x587384]
test dword [edx], ebx
je 0x420651
call fcn.00474650
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x420a90
push 0x50
push str.d:jenkins.jenkinsworkspacemaster_luinst_uiinst_uicommonprocesshelper.cpp
lea ecx, [ebp - 0x840]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], al
call fcn.0040c270
push 3
push 0x524880
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
call fcn.0040c270
mov byte [ebp - 4], 1
call fcn.00474650
mov edi, eax
lea ecx, [ebp - 0x90c]
push 0x190
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00409f40
mov esi, eax
push str.added_app_:
push esi
mov byte [ebp - 4], 2
call fcn.0040ada0
add esp, 8
mov ecx, esi
push ebx
call fcn.0040ec60
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x90c]
call fcn.0040ae60
mov edx, dword [ebp - 0x814]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4205ec
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4205e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420acd
push edx
push ecx
call fcn.004759bb
add esp, 8
mov edx, dword [ebp - 0x82c]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x420a90
mov ecx, dword [ebp - 0x840]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420642
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420acd
push edx
push ecx
call fcn.004759bb
add esp, 8
jmp 0x420a90
xor eax, eax
mov dword [ebp - 0x858], eax
call fcn.0041d3b0
mov ecx, eax
test ecx, ecx
je 0x420adc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x854], 0x208
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 3
jge 0x4206b1
push 0x104
lea ecx, [ebp - 0x848]
call fcn.00411b90
mov edi, dword [ebp - 0x848]
cmp dword [edi - 8], 0x104
jl 0x420ad2
mov ebx, dword [ebp - 0x85c]
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [edi - 0xc], 0x104
mov word [edi + 0x208], ax
lea eax, [ebp - 0x854]
push eax
push edi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [edi - 8]
mov esi, eax
push edi
call fcn.004e72cb
add esp, 8
test eax, eax
js 0x420ad2
cmp eax, dword [edi - 8]
jg 0x420ad2
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
test esi, esi
jne 0x420a71
nop dword [eax]
lea eax, [ebp - 0x850]
mov dword [ebp - 0x850], 0
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420a71
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004bc5f0
mov ebx, dword [ebp - 0x84c]
lea eax, [ebp - 0x868]
add esp, 0xc
mov dword [ebp - 0x86c], 1
mov dword [ebp - 0x868], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x86c]
push eax
push 0
push dword [ebx + 0x58737c]
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp dword [ebx + 0x587380], 0
je 0x4207c9
push dword [ebx + 0x587378]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov dword [ebp - 0x860], ebx
call fcn.0041d3b0
test eax, eax
je 0x420adc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x844], esi
mov byte [ebp - 4], 4
test ebx, ebx
je 0x420908
test ebx, 0xffff0000
jne 0x42082f
movzx eax, bx
lea ecx, [ebp - 0x844]
push eax
call fcn.00410890
jmp 0x420913
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x420832
sub ebx, ecx
sar ebx, 1
je 0x420908
mov edx, dword [ebp - 0x860]
mov eax, dword [esi - 0xc]
sub edx, esi
sar edx, 1
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x870], edx
test ebx, ebx
js 0x420ad2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x420891
push ebx
lea ecx, [ebp - 0x844]
call fcn.00411b90
mov esi, dword [ebp - 0x844]
mov edx, dword [ebp - 0x870]
cmp edx, dword [ebp - 0x874]
ja 0x4208e1
mov eax, dword [esi - 8]
lea ecx, [ebx + ebx]
lea edx, [esi + edx*2]
test ecx, ecx
je 0x4208f4
test edx, edx
jne 0x4208bc
call fcn.004c774e
mov dword [eax], 0x16
call fcn.004c7628
jmp 0x4208f4
add eax, eax
cmp eax, ecx
jae 0x4208d4
call fcn.004c774e
mov dword [eax], 0x22
call fcn.004c7628
jmp 0x4208f4
push ecx
push edx
push esi
call fcn.004bcef0
add esp, 0xc
jmp 0x4208f4
push ebx
push dword [ebp - 0x860]
push dword [esi - 8]
push esi
call fcn.00415df0
add esp, 0x10
cmp ebx, dword [esi - 8]
jg 0x420ad2
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x420919
lea ecx, [ebp - 0x844]
call fcn.0040f3e0
mov esi, dword [ebp - 0x844]
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 5
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420953
test esi, esi
je 0x420adc
mov ebx, dword [ebp - 0x84c]
push esi
push dword [ebx + 0x587378]
call fcn.004e6962
add esp, 8
test eax, eax
je 0x420a47
inc dword [ebp - 0x858]
lea edx, [edi - 0x10]
mov dword [ebp - 0x854], 0x208
cmp dword [edx + 4], 0
mov ebx, dword [edx]
je 0x4209b3
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x42098f
cmp dword [edi - 8], 0
jl 0x420ad2
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
jmp 0x4209b3
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4209a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x848], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4209dd
push 0x104
lea ecx, [ebp - 0x848]
call fcn.00411b90
mov edi, dword [ebp - 0x848]
cmp dword [edi - 8], 0x104
jl 0x420ad2
xor eax, eax
mov dword [edi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [edi + 0x208], ax
lea eax, [ebp - 0x854]
push eax
mov eax, dword [ebp - 0x858]
push edi
push eax
mov eax, dword [ebp - 0x85c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x420a38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x420a71
mov ebx, dword [ebp - 0x85c]
jmp 0x420720
mov ecx, dword [ebp - 0x864]
add esi, 0xfffffff0
mov eax, dword [ebx + 0x587384]
mov byte [ebp - 4], 3
or dword [ecx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x420a71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x420a90
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x84c]
add eax, 0x10
mov dword [ebp - 0x84c], eax
cmp eax, 0xb0
jae 0x420ab1
mov edx, dword [ebp - 0x864]
jmp 0x4204d0
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.00475dd9
mov esp, ebp
pop ebp
ret
call fcn.004c7638
push 0x80070057
call fcn.00407af0
push 0x80004005
call fcn.00407af0
int3