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

Disassembly:
push 0xffffffffffffffff
push 0x46812b
mov eax, dword fs:[0]
push eax
mov eax, 0x3008
call fcn.0044f1e0
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x3004], eax
push ebx
push esi
push edi
mov eax, dword [0x485b90]
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 0x41757f
or eax, 0xffffffff
jmp 0x4177d1
call fcn.00432030
mov ecx, eax
call fcn.00420850
test eax, eax
je 0x4177cf
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.004328f0
push 0x800
lea edx, [esp + 0x818]
push 0
push edx
call fcn.0044e2b0
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.0044e2b0
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.0044e2b0
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 0x41770f
lea eax, [esp + 0x2814]
push eax
call ebx
test eax, eax
je 0x41770f
push 0x800
lea ecx, [esp + 0x1818]
push 0
push ecx
call fcn.0044e2b0
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.0044e2b0
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.004240b0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2828]
push eax
call fcn.004240b0
add esp, 0x18
push 0x800
lea ecx, [esp + 0x1018]
push 0
push ecx
call fcn.0044e2b0
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 0x4177a2
lea edx, [esp + 0x1014]
push edx
call fcn.00404580
add esp, 4
test eax, eax
je 0x4177a2
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0044e2b0
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.004240b0
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x484060]
je 0x4177cf
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4177cf
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044eec4
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.0044e29c
add esp, 0x3014
ret