Function at 0x470e60
Capabilities:
Check if file exists
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a6af
mov eax, dword fs:[0]
push eax
mov eax, 0x22c4
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22d0], ecx
mov eax, dword [ebp - 0x22d0]
movzx ecx, byte [eax + 0x1bf0]
test ecx, ecx
je 0x470ead
mov al, 1
jmp 0x4716f7
mov edx, dword [ebp - 0x22d0]
cmp dword [edx + 0x231c], 0
jne 0x470ec3
xor al, al
jmp 0x4716f7
mov eax, dword [ebp - 0x22d0]
movzx ecx, byte [eax + 0x1bf1]
test ecx, ecx
jne 0x470ee9
mov edx, dword [ebp - 0x22d0]
add edx, 0x1bf4
push edx
call fcn.0041b620
add esp, 4
mov ecx, dword [ebp - 0x22d0]
call fcn.0046fdd0
mov dword [ebp - 0x2b0], 0
lea ecx, [ebp - 0x2a8]
call fcn.0042b7d0
mov dword [ebp - 4], 0
push 0x20019
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2a8]
call fcn.0042ba10
test eax, eax
jne 0x470f45
lea eax, [ebp - 0x2b0]
push eax
push str.InstallDate
lea ecx, [ebp - 0x2a8]
call fcn.00472460
push str.EntClient360EntCid.log
lea ecx, [ebp - 0x30]
push ecx
call fcn.0041acc0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0043e290
push eax
mov edx, dword [ebp - 0x22d0]
add edx, 0x1efe
push edx
push 0x546430
push str.UnitTest
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x30]
call fcn.0043e290
push eax
mov eax, dword [ebp - 0x22d0]
add eax, 0x1bfe
push eax
push 0x548898
push str.UnitTest
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x240]
call fcn.00403840
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2b0]
push ecx
push 0x542fc8
lea edx, [ebp - 0x240]
push edx
call fcn.00409170
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.0043e290
push eax
lea ecx, [ebp - 0x240]
call fcn.0043e290
push eax
push str.sysinst
push str.UnitTest
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x22d0]
add eax, 0x1efe
push eax
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.00401990
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1bfe
push ecx
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.00401990
lea edx, [ebp - 0x240]
push edx
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.004049a0
lea ecx, [ebp - 0x29c]
call fcn.004aa540
mov byte [ebp - 4], 3
mov al, byte [0x5412f4]
mov byte [ebp - 0x2c], al
xor ecx, ecx
mov dword [ebp - 0x2b], ecx
mov dword [ebp - 0x27], ecx
mov dword [ebp - 0x23], ecx
mov word [ebp - 0x1f], cx
mov byte [ebp - 0x1d], cl
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.004086e0
shl eax, 1
push eax
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.0043e290
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x29c]
call fcn.004aae20
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.00401f80
mov dword [ebp - 0x22c0], 0
jmp 0x4710d1
mov eax, dword [ebp - 0x22c0]
add eax, 1
mov dword [ebp - 0x22c0], eax
cmp dword [ebp - 0x22c0], 0x10
jge 0x471132
lea ecx, [ebp - 0x22c4]
call fcn.00403840
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x22c0]
movzx edx, byte [ebp + ecx - 0x2c]
push edx
push str._02x
lea eax, [ebp - 0x22c4]
push eax
call fcn.00409170
add esp, 0xc
lea ecx, [ebp - 0x22c4]
push ecx
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.00405090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x22c4]
call fcn.00401eb0
jmp 0x4710c2
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.00402010
movzx edx, al
test edx, edx
je 0x471179
mov eax, dword [ebp - 0x22d0]
add eax, 0x1bfe
push eax
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.00401ed0
push 0x548868
push 0x58f750
call fcn.004045b0
add esp, 8
lea ecx, [ebp - 0x30]
call fcn.0043e290
push eax
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1be8
call fcn.0043e290
push eax
push str.Mids
push str.UnitTest
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x540e68
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.0041acc0
add esp, 8
mov byte [ebp - 4], 5
mov dword [ebp - 0x22bc], 0x50
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x22b8], 0x104
xor edx, edx
mov word [ebp - 0x22b4], dx
push 0x1ffe
push 0
lea eax, [ebp - 0x22b2]
push eax
call fcn.004b0ac0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x23c], cx
push 0x206
push 0
lea edx, [ebp - 0x23a]
push edx
call fcn.004b0ac0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x22b8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x47123d
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x22b8]
jbe 0x4712ac
push 0x54883c
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 0x22c5], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.00527cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.0042b800
mov al, byte [ebp - 0x22c5]
jmp 0x4716f7
lea eax, [ebp - 0x22b4]
push eax
push 0
push str.Verifycid
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47133f
push 0x5487fc
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 0x22c6], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.00527cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.0042b800
mov al, byte [ebp - 0x22c6]
jmp 0x4716f7
lea edx, [ebp - 0x22b4]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401e30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2ac]
call fcn.0043e290
push eax
push 0
push str.port
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x22bc], eax
lea ecx, [ebp - 0x2ac]
call fcn.0043e290
push eax
push 0xfff
lea eax, [ebp - 0x22b4]
push eax
push 0x540868
push 0x540e40
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x22bc], 0
je 0x4713bf
lea ecx, [ebp - 0x22b4]
push ecx
call fcn.004b0eb7
add esp, 4
test eax, eax
jne 0x47143a
push 0x5487d0
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 0x22c7], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.00527cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.0042b800
mov al, byte [ebp - 0x22c7]
jmp 0x4716f7
lea ecx, [ebp - 0x2a0]
call fcn.00403840
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x22d0]
mov eax, dword [edx + 0x1be8]
push eax
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1efe
push ecx
mov edx, dword [ebp - 0x22bc]
push edx
lea eax, [ebp - 0x22b4]
push eax
push str.http:___s:_d_entverifycid.php_cid_smid_s
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.00409170
add esp, 0x18
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x22d0]
call fcn.00470d90
test eax, eax
jne 0x4714c2
lea ecx, [ebp - 0x14]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4714c7
jmp 0x471585
cmp dword [ebp - 0x10], 3
jle 0x47155b
push 0x548754
push 0x58f750
call fcn.004045b0
add esp, 8
mov byte [ebp - 0x22c8], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a0]
call fcn.00401eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.00527cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.0042b800
mov al, byte [ebp - 0x22c8]
jmp 0x4716f7
push 0x54872c
push 0x58f750
call fcn.004045b0
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 1
test edx, edx
jne 0x47148c
lea ecx, [ebp - 0x14]
call fcn.0043e290
push eax
push 0xfff
lea eax, [ebp - 0x22b4]
push eax
push 0x540868
push 0x548658
push str.Result
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x14]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x22b4]
push ecx
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1bec
call fcn.00401ed0
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1bec
call fcn.00428bb0
mov ecx, dword [ebp - 0x22d0]
add ecx, 0x1bec
call fcn.00402010
movzx edx, al
test edx, edx
je 0x471677
mov byte [ebp - 0x22c9], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a0]
call fcn.00401eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.00527cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.0042b800
mov al, byte [ebp - 0x22c9]
jmp 0x4716f7
mov eax, dword [ebp - 0x22d0]
mov byte [eax + 0x1bf0], 1
mov byte [ebp - 0x22ca], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a0]
call fcn.00401eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00401eb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.00527cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.0042b800
mov al, byte [ebp - 0x22ca]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret