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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49da79
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x4d61d4]
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
push 0x208
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x2cc], 0
push 0
push eax
call fcn.004693b0
add esp, 0xc
mov dword [ebp - 0x2d4], 1
lea ecx, [ebp - 0x2c5]
mov dword [ebp - 0x2d0], 0x208
call fcn.00404d30
lea ecx, [ebp - 0x2c5]
mov esi, eax
call fcn.00404a50
lea ecx, [ebp - 0x2d0]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov byte [edi + 0x1c], 1
test eax, eax
jne 0x40599b
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40599b
mov byte [edi + 0x1c], 0
call fcn.00438dc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x405c32
lea ecx, [ebp - 0x2c5]
call fcn.00404dc0
push 0x62
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x280], 0
mov ebx, eax
push str.d:jenkins.jenkinsworkspacemaster_luhome_installerhome_installer_srcconfiginstall_config.cc
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], 0
call fcn.004076f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
push 3
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
push 0x4a9c6c
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
call fcn.004076f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x36c]
push 1
push 2
call fcn.00403310
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x294]
push 0xffffffffffffffff
push 0x4a9a88
call fcn.00408180
push 0xffffffffffffffff
push 0x4a9a8c
lea ecx, [ebp - 0x294]
mov edi, eax
call fcn.00408180
push 0x64
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004693b0
add esp, 0xc
cmp esi, 0xffffffff
je 0x405b7a
lea eax, [esi - 1]
cmp edi, eax
jae 0x405b7a
lea edx, [edi + 1]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0xf
mov byte [ebp - 0x2ac], 0
cmp eax, edx
jb 0x405c4e
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x280], 0x10
lea eax, [ebp - 0x294]
cmovae eax, dword [ebp - 0x294]
push ecx
add eax, edx
lea ecx, [ebp - 0x2ac]
push eax
call fcn.004076f0
cmp dword [ebp - 0x298], 0x10
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2cc], 1
cmovae eax, dword [ebp - 0x2ac]
push eax
push 0x54
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.00403040
mov eax, 1
add esp, 0x10
mov dword [ebp - 0x2cc], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2ac]
call fcn.004041a0
jmp 0x405b8d
push 0x54
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.00403040
add esp, 0xc
cmp dword [ebp - 0x2b0], 0x10
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00404940
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00404940
mov byte [ebp - 4], 4
test ebx, ebx
mov eax, 0x4a9a78
cmovne eax, ebx
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00402c30
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00402c30
add esp, 0x20
call fcn.00438dc0
lea ecx, [ebp - 0x36c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x36c]
call fcn.00404eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.004041a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.004041a0
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.0043a373
mov esp, ebp
pop ebp
ret
call fcn.00407180
int3