Function at 0x4643f5
Capabilities:
Check if file exists
Delete file
Download url
Enumerate files on windows
Move file
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov dword [ebp - 0x424], 0
call fcn.004510b0
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x464421
jmp 0x46472e
lea eax, [ebp - 0x420]
push eax
call fcn.00464734
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
push str._sxavengine.dll
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a150
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x464485
mov ecx, dword [ebp - 0x10c]
push ecx
push 0
push 0x51af5c
push 0x51af60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x31c], eax
jmp 0x464729
call fcn.00464780
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x10c]
push edx
push 0
push 0x51af6c
push 0x51af70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp + 8], 0
jne 0x4644d1
cmp dword [ebp - 0x31c], 0
je 0x4644cc
mov eax, dword [ebp - 0x31c]
cmp eax, dword [ebp - 0x108]
ja 0x4644d1
jmp 0x464727
mov ecx, dword [ebp - 0x10c]
push ecx
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0x554c10
push 0x51af7c
push str.xavengine
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x210]
test eax, eax
jne 0x464509
jmp 0x464725
lea ecx, [ebp - 0x420]
push ecx
push str._supdate_
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a150
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push str._s_tmp.cab
push 0x104
lea ecx, [ebp - 0x314]
push ecx
call fcn.0040a150
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 0x464710
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x314]
push edx
call fcn.00423f87
add esp, 8
test eax, eax
je 0x464710
mov dword [ebp - 0x424], 1
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x420]
push ecx
push str._supdate.
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a150
add esp, 0x10
lea eax, [ebp - 0x568]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
je 0x4646f6
mov edx, dword [ebp - 0x568]
and edx, 0x10
test edx, edx
jne 0x4646cd
lea eax, [ebp - 0x53c]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0x51afb4
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.0040a150
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x464692
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x464692
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.0040a150
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.0040a150
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 [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4645f1
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x424], 0
je 0x46470e
mov eax, dword [ebp - 0x31c]
push eax
call fcn.004647de
add esp, 4
jmp 0x46471d
lea ecx, [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x424]
jmp 0x464730
jmp 0x46471d
jmp 0x46471d
jmp 0x4644d1
jmp 0x46471d
mov esp, ebp
pop ebp
ret