Function at 0x460ea5
Capabilities:
Check if file exists
Download url
Move file
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov dword [ebp - 0x424], 0
call fcn.0044d820
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x460ed1
jmp 0x4611de
lea eax, [ebp - 0x420]
push eax
call fcn.004611e4
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
push str._sxavengine.dll
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a230
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x460f35
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
push 0x523a38
push 0x523a3c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x31c], eax
jmp 0x4611d9
call fcn.00461230
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x10c]
push edx
push 0
push 0x523a48
push 0x523a4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp + 8], 0
jne 0x460f81
cmp dword [ebp - 0x31c], 0
je 0x460f7c
mov eax, dword [ebp - 0x31c]
cmp eax, dword [ebp - 0x108]
ja 0x460f81
jmp 0x4611d7
mov ecx, dword [ebp - 0x10c]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x5625f0
push 0x523a58
push str.xavengine
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x210]
test eax, eax
jne 0x460fb9
jmp 0x4611d5
lea ecx, [ebp - 0x420]
push ecx
push str._supdate_
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a230
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push str._s_tmp.cab
push 0x104
lea ecx, [ebp - 0x314]
push ecx
call fcn.0040a230
add esp, 0x10
push 0
push 0
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jl 0x4611c0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x314]
push edx
call fcn.00427b67
add esp, 8
test eax, eax
je 0x4611c0
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x314]
push eax
call dword [0x54b4b8]
lea ecx, [ebp - 0x420]
push ecx
push str._supdate.
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a230
add esp, 0x10
lea eax, [ebp - 0x568]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [0x54b4e8]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
je 0x4611a6
mov edx, dword [ebp - 0x568]
and edx, 0x10
test edx, edx
jne 0x46117d
lea eax, [ebp - 0x53c]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0x523a90
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a230
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x461142
lea ecx, [ebp - 0x104]
push ecx
call dword [0x54b4b8]
test eax, eax
jne 0x461142
lea edx, [ebp - 0x53c]
push edx
lea eax, [ebp - 0x420]
push eax
push str._supdate_s.tmp
push 0x104
lea ecx, [ebp - 0x314]
push ecx
call fcn.0040a230
add esp, 0x14
push 4
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x424], 2
lea ecx, [ebp - 0x53c]
push ecx
lea edx, [ebp - 0x420]
push edx
push str._supdate_s
push 0x104
lea eax, [ebp - 0x314]
push eax
call fcn.0040a230
add esp, 0x14
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x568]
push eax
mov ecx, dword [ebp - 0x428]
push ecx
call dword [0x54b4b4]
test eax, eax
jne 0x4610a1
mov edx, dword [ebp - 0x428]
push edx
call dword [0x54b4c8]
cmp dword [ebp - 0x424], 0
je 0x4611be
mov eax, dword [ebp - 0x31c]
push eax
call fcn.0046128e
add esp, 4
jmp 0x4611cd
lea ecx, [ebp - 0x314]
push ecx
call dword [0x54b4b8]
mov eax, dword [ebp - 0x424]
jmp 0x4611e0
jmp 0x4611cd
jmp 0x4611cd
jmp 0x460f81
jmp 0x4611cd
mov esp, ebp
pop ebp
ret