Function at 0x45cd85
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.004496d0
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x45cdb1
jmp 0x45d0be
lea eax, [ebp - 0x420]
push eax
call fcn.0045d0c4
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
push str._sxavengine.dll
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a2c0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x45ce15
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
push 0x51b1f0
push 0x51b1f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x31c], eax
jmp 0x45d0b9
call fcn.0045d110
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x10c]
push edx
push 0
push 0x51b200
push 0x51b204
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp + 8], 0
jne 0x45ce61
cmp dword [ebp - 0x31c], 0
je 0x45ce5c
mov eax, dword [ebp - 0x31c]
cmp eax, dword [ebp - 0x108]
ja 0x45ce61
jmp 0x45d0b7
mov ecx, dword [ebp - 0x10c]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x559ab0
push 0x51b210
push str.xavengine
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x210]
test eax, eax
jne 0x45ce99
jmp 0x45d0b5
lea ecx, [ebp - 0x420]
push ecx
push str._supdate_
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a2c0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push str._s_tmp.cab
push 0x104
lea ecx, [ebp - 0x314]
push ecx
call fcn.0040a2c0
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 0x45d0a0
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x314]
push edx
call fcn.004237f7
add esp, 8
test eax, eax
je 0x45d0a0
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x314]
push eax
call dword [0x542978]
lea ecx, [ebp - 0x420]
push ecx
push str._supdate.
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a2c0
add esp, 0x10
lea eax, [ebp - 0x568]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [0x5429a8]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
je 0x45d086
mov edx, dword [ebp - 0x568]
and edx, 0x10
test edx, edx
jne 0x45d05d
lea eax, [ebp - 0x53c]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0x51b248
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a2c0
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45d022
lea ecx, [ebp - 0x104]
push ecx
call dword [0x542978]
test eax, eax
jne 0x45d022
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.0040a2c0
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.0040a2c0
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 [0x542974]
test eax, eax
jne 0x45cf81
mov edx, dword [ebp - 0x428]
push edx
call dword [0x542988]
cmp dword [ebp - 0x424], 0
je 0x45d09e
mov eax, dword [ebp - 0x31c]
push eax
call fcn.0045d16e
add esp, 4
jmp 0x45d0ad
lea ecx, [ebp - 0x314]
push ecx
call dword [0x542978]
mov eax, dword [ebp - 0x424]
jmp 0x45d0c0
jmp 0x45d0ad
jmp 0x45d0ad
jmp 0x45ce61
jmp 0x45d0ad
mov esp, ebp
pop ebp
ret