Function at 0x42159a
Capabilities:
Check if file exists

Disassembly:
push 0x258
mov eax, 0x54cee7
call fcn.0051d3dc
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov ecx, dword [0x5e7ba4]
mov edi, 0x556c1c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5dca30]
cmp eax, dword [ecx + 4]
jg 0x4218ec
push edi
mov ecx, 0x5dca18
call fcn.00403554
test al, al
jne 0x4215ff
push 0x5dca18
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040342e
jmp 0x4218e4
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00520800
add esp, 0xc
lea ecx, [ebp - 0x248]
push edi
call fcn.00401b4a
mov dword [ebp - 4], 1
call fcn.00422de9
test eax, eax
jne 0x4217df
lea eax, [ebp - 0x248]
push eax
push str.UninstallString
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push 0x80000001
call fcn.00437e0e
add esp, 0x10
test eax, eax
jne 0x421663
push edi
mov ecx, esi
call fcn.00401b4a
jmp 0x4218d9
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmovae eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push str.......
lea eax, [ebp - 0x218]
push eax
call edi
push 0x562748
lea eax, [ebp - 0x218]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x4216e6
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.....
lea eax, [ebp - 0x218]
push eax
call edi
push str.huabao_
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
xor ebx, ebx
test eax, eax
jne 0x42174d
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00520800
lea eax, [ebp - 0x260]
push eax
call fcn.004373d1
add esp, 0x10
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
cmovae eax, dword [ebp - 0x260]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push str.360se6Applicationcomponentshuabao_
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x260]
call fcn.004036e0
push 0x556c1c
lea ecx, [ebp - 0x230]
call fcn.00401b4a
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x260]
call fcn.00401b4a
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
push ecx
push eax
call fcn.004202e5
pop ecx
pop ecx
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.004036e0
cmp dword [ebp - 0x220], 0
je 0x4217d6
push 0x55e000
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004014b0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4217c1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x260]
call fcn.004036e0
mov byte [ebp - 4], 1
jmp 0x42189f
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00520800
lea eax, [ebp - 0x248]
push eax
push str.360PicUninstall
push str.Software360360se6UpdateClientState02E720BD_2B50_4404_947C_65DBE64F6970
push 0x80000001
call fcn.00437e0e
add esp, 0x1c
test eax, eax
je 0x421656
push 0x55e000
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004014b0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x42183a
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x230]
call fcn.004036e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4218aa
lea eax, [ebp - 0x230]
push eax
call fcn.004373d1
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push str.huabao_
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x230]
call fcn.004036e0
lea eax, [ebp - 0x218]
push eax
call fcn.00524c40
pop ecx
push eax
lea eax, [ebp - 0x218]
mov edi, 0x5dca18
push eax
mov ecx, edi
call fcn.0040389c
push edi
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0040342e
lea ecx, [ebp - 0x248]
call fcn.004036e0
mov eax, esi
call fcn.0051d386
ret
push 0x5dca30
call fcn.0051d26c
cmp dword [0x5dca30], 0xffffffff
pop ecx
jne 0x4215d9
push edi
mov ecx, 0x5dca18
mov dword [ebp - 4], ebx
call fcn.00401b4a
push 0x55518c
call fcn.0051d0b7
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x5dca30
call fcn.0051d222
pop ecx
jmp 0x4215d9