Function at 0x416d20
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0911
mov eax, dword fs:[0]
push eax
sub esp, 0x9ec
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
mov dword [ebp - 0x948], 0
mov dword [ebp - 4], 0
call fcn.0040e780
lea ecx, [eax + 0x144]
lea eax, [ebp - 0x8e0]
push eax
call fcn.00406a00
mov byte [ebp - 4], 1
call fcn.0040e780
lea ecx, [eax + 0x144]
lea eax, [ebp - 0x8e0]
push eax
lea eax, [ebp - 0x888]
push eax
call fcn.00406780
mov byte [ebp - 4], 2
cmp byte [ebp + 8], 0
je 0x41730e
cmp dword [ebp - 0x874], 8
lea eax, [ebp - 0x888]
cmovae eax, dword [ebp - 0x888]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41730e
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.004693b0
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.004263e0
add esp, 0x14
mov dword [ebp - 0x830], 0
xor eax, eax
mov dword [ebp - 0x82c], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x840], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416e30
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x840]
call fcn.004077e0
mov byte [ebp - 4], 8
call fcn.0040e780
lea ecx, [eax + 0x144]
lea eax, [ebp - 0x870]
push eax
call fcn.00405e20
mov byte [ebp - 4], 9
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
mov byte [ebp - 4], 0xa
call fcn.0040e780
lea eax, [ebp - 0x858]
push eax
push 0x4aa7e8
push 0x65
push dword [0x4dce98]
call fcn.00430b60
add esp, 0x10
mov dword [ebp - 0x818], 0
cmp dword [ebp - 0x85c], 8
lea edx, [ebp - 0x870]
mov dword [ebp - 0x814], 0
cmovae edx, dword [ebp - 0x870]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416f10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.004077e0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00431fe0
add esp, 8
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x814]
cmp edx, 8
jb 0x416f8a
mov ecx, dword [ebp - 0x828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416f80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174f7
push edx
push ecx
call fcn.00439e29
add esp, 8
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.0040e780
lea esi, [eax + 0x110]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x8c8]
mov dword [ebp - 0x958], eax
lea ecx, [ebp - 0x8c0]
lea eax, [ebp - 0x8c0]
mov dword [ebp - 0x8c8], 0x417dc0
mov dword [ebp - 0x950], eax
mov dword [ebp - 0x94c], eax
lea eax, [ebp - 0x840]
push eax
mov dword [ebp - 0x8c4], 0
call fcn.00403590
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x94c], eax
lea ecx, [ebp - 0x8a8]
lea eax, [ebp - 0x888]
push eax
call fcn.00403590
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x890], edi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x948], 1
mov dword [ebp - 0x960], esi
test esi, esi
je 0x417045
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x940]
mov dword [ebp - 0x94c], eax
lea ecx, [ebp - 0x940]
lea eax, [ebp - 0x8c8]
push eax
call fcn.00414cd0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x95c]
mov dword [ebp - 0x948], 3
push eax
call fcn.00414a60
add esp, 8
mov byte [ebp - 4], 0x1a
mov eax, 3
mov dword [ebp - 0x948], eax
and eax, 0xfffffffd
mov dword [ebp - 0x948], eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x940]
call fcn.004152e0
mov ecx, dword [ebp - 0x958]
mov dword [ebp - 0x954], 0
mov dword [ebp - 0x950], 0
test ecx, ecx
je 0x4170da
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x958]
mov eax, dword [ebp - 0x95c]
mov dword [ebp - 0x954], eax
mov dword [ebp - 0x950], ecx
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x954]
push eax
lea ecx, [esi + 0x20]
call fcn.004146a0
mov byte [ebp - 4], 0x1b
or edi, 0xffffffff
mov ebx, dword [ebp - 0x950]
test ebx, ebx
je 0x41712f
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41712f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x41712f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [esi + 0x18], 0
jne 0x417150
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x417bd0
push 0
push 0
call fcn.0046f8b9
add esp, 0x18
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 0x16
mov ebx, dword [ebp - 0x958]
test ebx, ebx
je 0x41717c
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41717c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x41717c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x948], 0xfffffffe
mov dword [ebp - 0x960], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8c8]
mov dword [ebp - 0x94c], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8c0]
mov dword [ebp - 0x94c], eax
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x950], eax
mov byte [ebp - 4], 0x22
mov ecx, eax
call fcn.00404220
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8c0]
mov dword [ebp - 0x94c], eax
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00404220
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x844]
cmp edx, 0x10
jb 0x41722c
mov ecx, dword [ebp - 0x858]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x417222
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174fc
push edx
push ecx
call fcn.00439e29
add esp, 8
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x85c]
cmp edx, 8
jb 0x41728b
mov ecx, dword [ebp - 0x870]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417281
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417501
push edx
push ecx
call fcn.00439e29
add esp, 8
xor eax, eax
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x82c]
cmp edx, 8
jb 0x4172ec
mov ecx, dword [ebp - 0x840]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4172e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417506
push edx
push ecx
call fcn.00439e29
add esp, 8
xor eax, eax
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
jmp 0x417491
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 0x417456
push 0x60
mov dword [ebp - 0x818], eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x814], eax
push str.d:jenkins.jenkinsworkspacemaster_luhome_installerhome_installer_srcpagesprogress_page.cc
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], al
call fcn.004076f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
push 3
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
push 0x4a9c6c
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0xf
mov byte [ebp - 0x840], 0
call fcn.004076f0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x828]
push 0x11b
push eax
lea eax, [ebp - 0x840]
push eax
lea ecx, [ebp - 0x9f8]
call fcn.00409020
mov esi, eax
mov byte [ebp - 4], 5
push str.download_fail__error
push esi
call fcn.00404940
add esp, 8
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x8f8]
push eax
call fcn.00416310
mov ecx, eax
mov byte [ebp - 4], 6
cmp dword [ecx + 0x14], 8
jb 0x4173f9
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x4a9a78
cmovne eax, ecx
push eax
push esi
call fcn.00402c30
add esp, 8
call fcn.00438dc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8f8]
call fcn.00404220
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9f8]
call fcn.00404eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.004041a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x828]
call fcn.004041a0
lea ecx, [ebp - 0x941]
call fcn.00415e10
lea ecx, [ebp - 0x941]
mov esi, eax
call fcn.00415c60
push 0
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [edi + 0x78]
push 1
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi + 0x78]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x888]
call fcn.00404220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8e0]
call fcn.00404220
mov dword [ebp - 4], 0x28
lea ecx, [ebp + 0x48]
call fcn.00404220
mov byte [ebp - 4], 0x27
lea ecx, [ebp + 0x30]
call fcn.00404220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
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 0x78
call fcn.0046c89c
call fcn.0046c89c
call fcn.0046c89c
call fcn.0046c89c
int3