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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c9c7
mov eax, dword fs:[0]
push eax
mov eax, 0x4248
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4254], ecx
push 0x540e68
lea eax, [ebp - 0x230]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x423c], 0x50
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4238], 0x104
xor ecx, ecx
mov word [ebp - 0x4234], cx
push 0x3ffe
push 0
lea edx, [ebp - 0x4232]
push edx
call fcn.004b0ac0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push 0
lea ecx, [ebp - 0x222]
push ecx
call fcn.004b0ac0
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x4238]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x496801
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x4238]
jbe 0x49683a
push 0x54abb8
push 0x58f750
call fcn.004045b0
add esp, 8
mov dword [ebp - 0x4240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401eb0
mov eax, dword [ebp - 0x4240]
jmp 0x496b59
lea edx, [ebp - 0x4234]
push edx
push 0
push 0x54abb0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x496897
push 0x54ab8c
push 0x58f750
call fcn.004045b0
add esp, 8
mov dword [ebp - 0x4244], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401eb0
mov eax, dword [ebp - 0x4244]
jmp 0x496b59
lea ecx, [ebp - 0x4234]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0043e290
push eax
push 0
push str.port
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x423c], eax
lea ecx, [ebp - 0x230]
call fcn.0043e290
push eax
push 0x1fff
lea edx, [ebp - 0x4234]
push edx
push 0x540868
push 0x540e40
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x423c], 0
je 0x496917
lea eax, [ebp - 0x4234]
push eax
call fcn.004b0eb7
add esp, 4
test eax, eax
jne 0x49695c
push 0x54ab68
push 0x58f750
call fcn.004045b0
add esp, 8
mov dword [ebp - 0x4248], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401eb0
mov eax, dword [ebp - 0x4248]
jmp 0x496b59
lea ecx, [ebp - 0x22c]
call fcn.00403840
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
push ecx
call fcn.004014a0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x423c]
push edx
lea eax, [ebp - 0x4234]
push eax
push str.http:___s:_d_enttaskquery.php_mid_s_s
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00409170
add esp, 0x18
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x4254]
call fcn.00496660
test eax, eax
je 0x4969da
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x496a2b
mov dword [ebp - 0x424c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
call fcn.00401eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401eb0
mov eax, dword [ebp - 0x424c]
jmp 0x496b59
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
push 0x1fff
lea ecx, [ebp - 0x4234]
push ecx
push 0x540868
push str.STime
push str.Result
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x4234]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00401ed0
push 0x4000
push 0
lea eax, [ebp - 0x4234]
push eax
call fcn.004b0ac0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
push 0x1fff
lea ecx, [ebp - 0x4234]
push ecx
push 0x540868
push 0x54ab04
push str.Result
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x4234]
push edx
lea ecx, [ebp - 0x228]
call fcn.00401ed0
lea ecx, [ebp - 0x228]
call fcn.00428bb0
lea ecx, [ebp - 0x228]
call fcn.00402010
movzx eax, al
test eax, eax
jne 0x496afe
mov ecx, dword [ebp + 0xc]
call fcn.00402010
movzx ecx, al
test ecx, ecx
jne 0x496afe
push 0x543620
mov ecx, dword [ebp + 0xc]
call fcn.00401990
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004049a0
mov dword [ebp - 0x4250], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
call fcn.00401eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401eb0
mov eax, dword [ebp - 0x4250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret 0xc