Function at 0x410790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491555
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4bda58]
test eax, eax
jne 0x4107e8
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040d140
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bda58], eax
mov ebx, dword [ebp + 8]
push ebx
push str.ExtractUpdatePackage__s_
push str.Update
push eax
call fcn.0040d770
mov ecx, ebx
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410804
sub ecx, edx
sar ecx, 1
je 0x410c27
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
sete al
test al, al
jne 0x410c27
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004038a0
mov dword [ebp - 4], 1
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x410869
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004048e0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00473092
mov edx, eax
add esp, 8
test edx, edx
js 0x410c1d
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x410c1d
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.0041f510
mov byte [ebp - 4], 2
xor ebx, ebx
mov edx, dword [esi]
lea edi, [ebx - 1]
mov eax, dword [edx + 0x2c]
sub eax, ebx
je 0x41099e
sub eax, 2
je 0x41098d
sub eax, 1
je 0x41097c
push str.Unsupport_Package_File_Type_
push str.Update
call fcn.0040d710
push eax
call fcn.0040d770
add esp, 0xc
mov eax, dword [0x4bda58]
test eax, eax
jne 0x410916
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.0040d140
mov byte [ebp - 4], 2
mov dword [0x4bda58], eax
push str.Unzip_Package_File_Failed_
push str.Update
push eax
call fcn.0040d770
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410947
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x410966
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [edx + 0x30]
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.00421b00
jmp 0x4109ad
mov edx, dword [edx + 0x30]
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.00421bc0
jmp 0x4109ad
mov edx, dword [edx + 0x30]
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.00421c80
xor ebx, ebx
add esp, 8
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x4108ec
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi]
call fcn.0040fd50
test eax, eax
je 0x410bf6
xor edx, edx
lea ecx, [ebp - 0x24]
call fcn.0041eae0
mov byte [ebp - 4], 3
xor ebx, ebx
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
sar eax, 4
test eax, eax
je 0x410b75
xor edx, edx
mov dword [ebp - 0x20], edx
nop dword [eax]
mov eax, dword [ecx + 4]
add edx, 4
add eax, edx
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
call fcn.0042b340
add esp, 4
mov byte [ebp - 4], 4
lea edx, [ebp - 0x24]
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + 4]
add eax, 4
add eax, dword [ebp - 0x20]
push eax
call fcn.0042b340
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
sub ecx, 0x10
call fcn.004094f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00430a80
mov byte [ebp - 4], 7
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x410bec
push ecx
push esi
call fcn.00470614
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28]
test eax, eax
mov eax, edi
sete byte [ebp + 0xb]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410aa4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
jne 0x410afe
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410ad4
push dword [ebp - 0x14]
push str.SrcFile__s__is_not_Exist_
push str.Update
call fcn.0040d710
push eax
call fcn.0040d770
add esp, 0x10
jmp 0x410afe
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
call fcn.0042b000
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push str.Replace_NewFile__s__To_LocalFile__s_._Result__d_
push str.Update
call fcn.0040d710
push eax
call fcn.0040d770
add esp, 0x18
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410b19
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
inc ebx
mov edx, dword [ebp - 0x20]
add edx, 0x10
mov dword [ebp - 0x20], edx
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
sar eax, 4
cmp ebx, eax
jb 0x410a00
push 1
lea eax, [ebp - 0x24]
push eax
push dword [esi]
call fcn.0040fd50
mov ebx, eax
mov eax, dword [0x4bda58]
test eax, eax
jne 0x410bae
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040d140
mov byte [ebp - 4], 3
mov dword [0x4bda58], eax
push str.Check_Replaced_Dir_Integrity_Failed_
push str.Update
push eax
call fcn.0040d770
mov byte [ebp - 4], 2
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410c10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
call fcn.0042ad70
jmp 0x410929
push 0x80004005
call fcn.00404990
push str.Check_Download_Package_File_Integrity_Failed_
push str.Update
call fcn.0040d710
push eax
call fcn.0040d770
add esp, 0xc
xor ebx, ebx
lea ecx, [ebp - 0x18]
call fcn.0042ad70
jmp 0x410929
push 0x80070057
call fcn.00404990
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8