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

Disassembly:
push 0xffffffffffffffff
push 0x467edb
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.0044ef90
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 0x417a2f
or eax, 0xffffffff
jmp 0x417c81
call fcn.00433490
mov ecx, eax
call fcn.004212a0
test eax, eax
je 0x417c7f
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.00433dd0
push 0x800
lea edx, [esp + 0x818]
push 0
push edx
call fcn.0044e060
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.0044e060
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.0044e060
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 0x417bbf
lea eax, [esp + 0x2814]
push eax
call ebx
test eax, eax
je 0x417bbf
push 0x800
lea ecx, [esp + 0x1818]
push 0
push ecx
call fcn.0044e060
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.0044e060
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.004253d0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2828]
push eax
call fcn.004253d0
add esp, 0x18
push 0x800
lea ecx, [esp + 0x1018]
push 0
push ecx
call fcn.0044e060
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 0x417c52
lea edx, [esp + 0x1014]
push edx
call fcn.00404600
add esp, 4
test eax, eax
je 0x417c52
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0044e060
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.004253d0
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x484060]
je 0x417c7f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417c7f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044ec74
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.0044e04c
add esp, 0x3014
ret