Function at 0x416b70
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454394
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x46a180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 0x360], ecx
lea ecx, [ebp - 0x350]
push str.ServiceBinPath
push ecx
mov ecx, eax
mov dword [ebp - 0x35c], 1
call fcn.004166d0
mov eax, dword [ebp - 0x350]
mov dword [ebp - 4], 0
mov dword [ebp - 0x35c], 1
cmp dword [eax - 0xc], 0
jne 0x416cc6
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00432ee0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x416c77
call fcn.004102f0
cmp eax, 3
jl 0x416cc6
push str.WemeetUpdate::CWemeetUpdate::GetInstallTempPath
push 0x145
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_serviceutilwemeet_update.cc
push 3
lea ecx, [ebp - 0x34c]
call fcn.00404330
lea esi, [eax + 0x10]
mov dword [ebp - 4], 1
push str.get_win_dir_failed__error:
push esi
call fcn.00402c00
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x34c]
call fcn.00404f70
jmp 0x416cc6
push dword [0x46a154]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call esi
push dword [0x46a150]
lea eax, [ebp - 0x21c]
push eax
call esi
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ca4
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x350]
call fcn.00413b80
xorps xmm0, xmm0
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov edx, dword [0x46a150]
mov ecx, edx
mov byte [ebp - 4], 3
movups xmmword [ebp - 0x264], xmm0
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416d16
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x264]
call fcn.00403080
mov eax, dword [ebp - 0x350]
xorps xmm0, xmm0
mov edx, eax
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x24c], xmm0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x416d60
sub edx, esi
lea ecx, [ebp - 0x24c]
sar edx, 1
push edx
push eax
call fcn.00403080
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004116d0
mov ecx, dword [ebp - 0x238]
add esp, 0xc
mov byte [ebp - 0x351], al
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x416de7
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416ddd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41716e
push ecx
push edx
call fcn.00430e05
add esp, 8
mov ecx, dword [ebp - 0x250]
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x416e48
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416e3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41716e
push ecx
push edx
call fcn.00430e05
add esp, 8
or edi, 0xffffffff
cmp byte [ebp - 0x351], 0
jne 0x416ea9
call fcn.004102f0
cmp eax, 3
jl 0x416e9a
push str.WemeetUpdate::CWemeetUpdate::IsNeedUpdate
push 0x99
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_serviceutilwemeet_update.cc
push 3
lea ecx, [ebp - 0x34c]
call fcn.00404330
add eax, 0x10
mov byte [ebp - 4], 6
push str.copy_file_to_temp_failed.
push eax
call fcn.00402c00
add esp, 8
lea ecx, [ebp - 0x34c]
call fcn.00404f70
mov dword [ebp - 0x35c], 0xb
jmp 0x4170c9
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x220], 7
lea edx, [ebp - 0x234]
jbe 0x416ed2
mov edx, dword [ebp - 0x234]
test edx, edx
jne 0x416ed2
xor ecx, ecx
jmp 0x416ee6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ed7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x350]
call fcn.00413b80
mov byte [ebp - 4], 7
call fcn.004139e0
mov ecx, eax
test ecx, ecx
je 0x417173
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x358], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or ecx, eax
mov byte [ebp - 4], 8
jge 0x416f44
push 0x105
lea ecx, [ebp - 0x358]
call fcn.00413ae0
mov esi, dword [ebp - 0x358]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call fcn.00439bd5
add esp, 8
test eax, eax
js 0x417164
cmp eax, dword [esi - 8]
jg 0x417164
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x350]
cmp dword [eax - 0xc], ecx
je 0x4170a8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4170a8
mov esi, dword [ebp - 0x364]
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x350]
mov ecx, esi
push eax
call fcn.00417190
mov dword [ebp - 0x35c], eax
cmp eax, 0xa
jne 0x41702f
push 1
push str.Update
lea eax, [ebp - 0x364]
mov ecx, esi
push eax
call fcn.004166d0
mov edx, dword [ebp - 0x364]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416fee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push str.ServiceBinPath
lea eax, [ebp - 0x368]
mov ecx, esi
push eax
call fcn.004166d0
mov edx, dword [ebp - 0x368]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4170a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x358]
jmp 0x4170b2
mov esi, dword [ebp - 0x360]
mov eax, dword [ebp - 0x350]
mov esi, dword [esi]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x4170a0
cmp dword [esi + 0xc], 0
jl 0x417091
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x417091
push edx
call fcn.004161c0
add esp, 4
mov dword [ebp - 0x368], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41707e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x368]
mov ecx, dword [ebp - 0x360]
add eax, 0x10
mov esi, dword [ebp - 0x358]
mov dword [ecx], eax
jmp 0x4170b2
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x360]
push eax
call fcn.00413b80
mov esi, dword [ebp - 0x358]
jmp 0x4170b2
mov dword [ebp - 0x35c], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4170c9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x417109
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4170ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41717d
push ecx
push edx
call fcn.00430e05
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x220], 7
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x417141
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x35c]
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.004312d2
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406380
call fcn.00435fbe
push 0x80004005
call fcn.00406380
call fcn.00435fbe
int3