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

Disassembly:
push 0xffffffffffffffff
push 0x47103b
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x3004], eax
push ebx
push esi
push edi
mov eax, dword [0x490d68]
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 0x41bfcf
or eax, 0xffffffff
jmp 0x41c221
call fcn.0043bec0
mov ecx, eax
call fcn.00426830
test eax, eax
je 0x41c21f
mov eax, dword [0x48f014]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x3024], 0
call fcn.0043ce50
push 0x800
lea edx, [esp + 0x818]
push 0
push edx
call fcn.00457170
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.00457170
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.00457170
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 0x41c15f
lea eax, [esp + 0x2814]
push eax
call ebx
test eax, eax
je 0x41c15f
push 0x800
lea ecx, [esp + 0x1818]
push 0
push ecx
call fcn.00457170
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.00457170
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.0042ce50
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2828]
push eax
call fcn.0042ce50
add esp, 0x18
push 0x800
lea ecx, [esp + 0x1018]
push 0
push ecx
call fcn.00457170
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 0x41c1f2
lea edx, [esp + 0x1014]
push edx
call fcn.004040f0
add esp, 4
test eax, eax
je 0x41c1f2
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00457170
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.0042ce50
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41c21f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41c21f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00457d84
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.0045715c
add esp, 0x3014
ret