Function at 0x411330
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fd8e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4926cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov dword [ebx + 0x54], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
call fcn.004200d0
push ecx
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.00404040
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x4113eb
cmp word [edi], 0
je 0x4113db
mov esi, edi
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4113a0
mov eax, dword [ebp - 0x30]
sub esi, ecx
sar esi, 1
add eax, esi
push eax
lea ecx, [ebp - 0x34]
call fcn.004045c0
push edi
mov edi, dword [ebp - 0x34]
push eax
push edi
call fcn.004544c5
add dword [ebp - 0x30], esi
add esp, 0xc
push dword [ebp - 0x64]
call fcn.004547da
add esp, 4
jmp 0x4113ee
push dword [ebp - 0x64]
mov edi, dword [ebp - 0x34]
call fcn.004547da
add esp, 4
jmp 0x4113ee
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4113fe
push eax
call fcn.004547da
add esp, 4
test edi, edi
je 0x41140a
cmp word [edi], 0
mov eax, edi
jne 0x41140f
mov eax, 0x481274
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x41148f
test edi, edi
je 0x411452
cmp word [edi], 0
je 0x411452
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0041ac50
mov esi, dword [ebp - 0x28]
add esp, 8
test esi, esi
je 0x41144d
cmp byte [esi], 0
je 0x41144d
mov edi, dword [ebp - 0x34]
mov eax, esi
jmp 0x41145a
mov edi, dword [ebp - 0x34]
jmp 0x411455
mov esi, dword [ebp - 0x28]
mov eax, 0x479eb0
push eax
push str.failReason:_patch_not_exist:__s
push str.UpdateMgr
push 0x72
push str.managerUpdateMgr.cpp
push 4
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x1c
mov ecx, ebx
push str.patch_not_Exist
push 1
call fcn.00413930
jmp 0x411992
push 0
push 0
push 0x464
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
je 0x4114ad
cmp word [edi], 0
mov edx, edi
jne 0x4114b2
mov edx, 0x481274
lea ecx, [ebp - 0x4c]
call fcn.0041fd00
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0x10
mov edx, dword [ebx + 0x30]
lea esi, [ebx + 0x20]
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x50], eax
jb 0x4114df
mov eax, dword [esi]
mov dword [ebp - 0x68], eax
jmp 0x4114e2
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x68]
cmp edx, eax
cmovb eax, edx
mov edx, dword [ebp - 0x50]
push eax
call fcn.00410aa0
add esp, 4
test eax, eax
jne 0x4118fa
mov ecx, dword [ebp - 0x3c]
mov edx, dword [esi + 0x10]
cmp edx, ecx
jb 0x4118fa
cmp edx, ecx
setne al
test eax, eax
jne 0x4118fa
lea ecx, [ebp - 0x64]
call fcn.00420110
mov ecx, dword [eax]
test ecx, ecx
je 0x411530
cmp word [ecx], 0
jne 0x411535
mov ecx, 0x481274
push dword [eax + 4]
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00404160
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x411558
push eax
call fcn.004547da
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
test eax, eax
je 0x411576
push eax
call fcn.004547da
add esp, 4
cmp dword [ebx + 0x60], 0
setle al
test al, al
je 0x4115b1
push str.failReason:_cant_find_installPath
push str.UpdateMgr
push 0x81
push str.managerUpdateMgr.cpp
push 4
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x18
push str.cant_find_installPath
push 3
jmp 0x411965
push 1
push 0
push 0x465
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
test edi, edi
je 0x4115e8
cmp word [edi], 0
mov ecx, edi
jne 0x4115ed
mov ecx, 0x481274
lea edx, [ebp - 0x20]
call fcn.00420cd0
test eax, eax
jne 0x411648
push str.failReason:_uncommpress_fail__unzipNum__0
push str.UpdateMgr
push 0x8b
push str.managerUpdateMgr.cpp
push 4
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x18
test edi, edi
je 0x411629
cmp word [edi], 0
mov eax, edi
jne 0x41162e
mov eax, 0x481274
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.uncommpress_fail
push 4
mov ecx, ebx
call fcn.00413930
jmp 0x4118d6
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
mov esi, edx
cmp edx, dword [ebp - 0x1c]
je 0x4116a2
push str..zip
mov ecx, esi
call fcn.004043a0
test al, al
je 0x411694
mov ecx, dword [esi]
test ecx, ecx
je 0x41167f
cmp word [ecx], 0
jne 0x411684
mov ecx, 0x481274
lea edx, [ebp - 0x5c]
call fcn.00420cd0
test eax, eax
je 0x4117af
add esi, 0x14
cmp esi, dword [ebp - 0x1c]
jne 0x411663
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x50], eax
je 0x4116d2
mov esi, dword [ebp - 0x5c]
mov edi, eax
nop
push esi
lea ecx, [ebp - 0x20]
call fcn.004145d0
add esi, 0x14
dec edi
jne 0x4116c0
mov edi, dword [ebp - 0x34]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x466
push dword [ebx + 0x54]
call esi
call fcn.004140d0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00412310
test eax, eax
jne 0x4117fe
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov eax, 0x66666667
imul ecx
mov eax, dword [0x4969d0]
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
test al, 1
jne 0x411761
or eax, 1
mov dword [0x4969d0], eax
mov byte [ebp - 4], 4
sub esp, 8
mov dword [0x4969ac], 0
mov dword [0x4969b0], 0
mov dword [0x4969b4], 0
call fcn.00401b40
push 0x471ef0
call fcn.00453882
add esp, 4
mov byte [ebp - 4], 3
push esi
push str.failReason:_rename_target_file_fail__file_count:__d
push str.UpdateMgr
push 0xb2
push str.managerUpdateMgr.cpp
push 4
push 0x496990
call fcn.00402130
add esp, 0x1c
mov esi, 5
call fcn.00410b00
cmp dword [eax + 4], 0
je 0x41179d
call fcn.00410b00
mov esi, dword [eax + 4]
push str.rename_target_file_fail
push esi
mov ecx, ebx
call fcn.00413930
jmp 0x4118b8
push str.failReason:_uncommpress_branch_File_fail__unzipNum__0
push str.UpdateMgr
push 0x9b
push str.managerUpdateMgr.cpp
push 4
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x18
test edi, edi
je 0x4117df
cmp word [edi], 0
mov eax, edi
jne 0x4117e4
mov eax, 0x481274
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.uncommpress_fail
push 4
mov ecx, ebx
call fcn.00413930
jmp 0x4118b8
push 0
push 0
push 0x467
push dword [ebx + 0x54]
call esi
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00411d50
test eax, eax
jne 0x411867
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.failReason:_copy_target_file_fail__file_count:__d
push str.UpdateMgr
push 0xc0
push str.managerUpdateMgr.cpp
push 4
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x1c
mov ecx, ebx
push str.copy_target_file_fail
push 7
call fcn.00413930
jmp 0x4118b8
push 0
push 0
push 0x468
push dword [ebx + 0x54]
call esi
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.update_success__replaced_file_count:__d
push str.UpdateMgr
push 0xc6
push str.managerUpdateMgr.cpp
push 2
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x1c
mov ecx, ebx
call fcn.00413df0
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x4118d6
push dword [ebp - 0x50]
mov edx, dword [ebp - 0x58]
push ecx
mov ecx, ebx
call fcn.00410a00
push ebx
call fcn.00452ca1
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41196c
push dword [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.00410a00
push ebx
call fcn.00452ca1
add esp, 0xc
jmp 0x41196c
movq xmm0, qword [esi]
sub esp, 0x18
mov eax, esp
sub esp, 0x18
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0x4c]
mov eax, esp
push str.failReason:_check_Patch_Md5_err__filemd5:__s__givingmd5__s
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x44]
push str.UpdateMgr
push 0x7a
movq qword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x3c]
push str.managerUpdateMgr.cpp
push 4
movq qword [eax + 0x10], xmm0
call fcn.0040f8f0
push eax
call fcn.00402130
add esp, 0x48
push str.check_Patch_Md5_err
push 2
mov ecx, ebx
call fcn.00413930
cmp dword [ebp - 0x38], 0x10
jb 0x41197d
push dword [ebp - 0x4c]
call fcn.00452ca1
add esp, 4
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
test edi, edi
je 0x41199f
push edi
call fcn.004547da
add esp, 4
test esi, esi
je 0x4119ac
push esi
call fcn.004547da
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452ca6
mov esp, ebp
pop ebp
ret 4