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

Disassembly:
push 0xffffffffffffffff
push 0x4680fb
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.0044f150
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x3004], eax
push ebx
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x3018]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x417a7f
or eax, 0xffffffff
jmp 0x417cd1
call fcn.00432ee0
mov ecx, eax
call fcn.00421220
test eax, eax
je 0x417ccf
mov eax, dword [0x484064]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x3024], 0
call fcn.004338d0
push 0x800
lea edx, [esp + 0x818]
push 0
push edx
call fcn.0044e220
add esp, 0xc
push 0x400
lea eax, [esp + 0x818]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x814]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x800
lea edx, [esp + 0x2018]
push 0
push edx
call fcn.0044e220
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
push str.360EntClient.ini
lea eax, [esp + 0x818]
push eax
lea ecx, [esp + 0x201c]
push ecx
call esi
push 0x800
lea edx, [esp + 0x2818]
push 0
push edx
call fcn.0044e220
add esp, 0xc
push str.entpub.dat
lea eax, [esp + 0x818]
push eax
lea ecx, [esp + 0x281c]
push ecx
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x2014]
push edx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x417c0f
lea eax, [esp + 0x2814]
push eax
call ebx
test eax, eax
je 0x417c0f
push 0x800
lea ecx, [esp + 0x1818]
push 0
push ecx
call fcn.0044e220
mov edx, dword [esp + 0x1c]
add esp, 0xc
push str.360EntClient.ini
push edx
lea eax, [esp + 0x181c]
push eax
call esi
lea ecx, [esp + 0x1814]
push ecx
call edi
push 0x800
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0044e220
mov eax, dword [esp + 0x1c]
add esp, 0xc
push str.entpub.dat
push eax
lea ecx, [esp + 0x1c]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
call edi
push 0
lea eax, [esp + 0x1818]
push eax
lea ecx, [esp + 0x201c]
push ecx
call fcn.00424ca0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2828]
push eax
call fcn.00424ca0
add esp, 0x18
push 0x800
lea ecx, [esp + 0x1018]
push 0
push ecx
call fcn.0044e220
add esp, 0xc
push str.360EntClient.exe
lea edx, [esp + 0x818]
push edx
lea eax, [esp + 0x101c]
push eax
call esi
lea ecx, [esp + 0x1014]
push ecx
call ebx
test eax, eax
je 0x417ca2
lea edx, [esp + 0x1014]
push edx
call fcn.004045d0
add esp, 4
test eax, eax
je 0x417ca2
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0044e220
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push str.360EntClient.exe
push ecx
lea edx, [esp + 0x1c]
push edx
call esi
lea eax, [esp + 0x14]
push eax
call edi
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x101c]
push edx
call fcn.00424ca0
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x484060]
je 0x417ccf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417ccf
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044ee34
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x3018]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3004]
xor ecx, esp
call fcn.0044e20c
add esp, 0x3014
ret