Function at 0x40de3e
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 [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push 0x44
mov eax, 0x4af143
call fcn.004562d8
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.00456900
push ebx
lea eax, [ebp + 0x56]
push esi
push eax
mov word [ebp + 0x54], si
call fcn.00456900
add esp, 0x18
call fcn.0040f237
cmp dword [edi + 0x58], 8
jb 0x40dea2
mov ecx, dword [edi + 0x44]
jmp 0x40dea5
lea ecx, [edi + 0x44]
push eax
push str.Config
push ecx
lea eax, [ebp + 0x464]
push str._s_s_d.dat
push eax
call fcn.004567da
add esp, 0x14
cmp dword [edi + 0x58], 8
jb 0x40decb
mov edi, dword [edi + 0x44]
jmp 0x40dece
add edi, 0x44
push str.Config
push edi
lea eax, [ebp + 0x54]
push 0x4b7dd0
push eax
call fcn.004567da
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x464]
push eax
call edi
test eax, eax
jne 0x40e027
lea eax, [ebp + 0x54]
push str..dat
push eax
call fcn.0040eee0
push ebx
lea eax, [ebp + 0x25e]
push esi
push eax
mov word [ebp + 0x25c], si
call fcn.00456900
add esp, 0x14
push str.config.dfshurufa.com
lea ecx, [ebp - 0x34]
call fcn.004015d0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], esi
call fcn.0040faa9
pop ecx
pop ecx
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004017c0
push str.DongFang
lea ecx, [ebp - 0x50]
call fcn.00401640
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 3
call fcn.0040f89a
pop ecx
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.00401840
lea eax, [ebp]
push eax
call fcn.0040f776
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040faa9
push 0x1869f
push 0x2710
mov byte [ebp - 4], 6
call fcn.0040e724
mov edx, dword [ebp + 0x20]
add esp, 0x14
cmp dword [ebp + 0x34], 8
jae 0x40dfb8
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x50], 8
mov ecx, dword [ebp + 0x3c]
jae 0x40dfc4
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.004567da
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 0x40e005
push str.Dowm_Load_Failed___
call fcn.004162f0
pop ecx
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00401840
push esi
push ebx
lea ecx, [ebp]
call fcn.004017c0
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00401840
lea eax, [ebp + 0x464]
push eax
mov dword [ebp - 0x14], esi
call edi
test eax, eax
je 0x40e0dc
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40e067
xor eax, eax
jmp 0x40e0ea
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.0043a762
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
je 0x40e060
push edi
push esi
push eax
call fcn.00456900
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 0x40e0dc
push str.GUANGSU
xor edi, edi
call fcn.004563f0
pop ecx
xor ecx, ecx
cmp ebx, esi
mov dword [ebp - 0x10], eax
jbe 0x40e0dc
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 0x40e0d7
xor edi, edi
inc ecx
cmp ecx, ebx
jb 0x40e0c2
push str.Get_Server_Config_File_Successed___
call fcn.004162f0
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.004562c9
add ebp, 0x670
leave
ret