Function at 0x1001aedd
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 [0x10207390]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push 0x44
mov eax, 0x1017c755
call fcn.1008546d
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.10085bc0
push ebx
lea eax, [ebp + 0x56]
push esi
push eax
mov word [ebp + 0x54], si
call fcn.10085bc0
add esp, 0x18
call fcn.1001d3b4
cmp dword [edi + 0x40], 8
jb 0x1001af41
mov ecx, dword [edi + 0x2c]
jmp 0x1001af44
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.10004df5
add esp, 0x14
cmp dword [edi + 0x40], 8
jb 0x1001af6a
mov edi, dword [edi + 0x2c]
jmp 0x1001af6d
add edi, 0x2c
push str.Config
push edi
lea eax, [ebp + 0x54]
push 0x1018a0a8
push eax
call fcn.10004df5
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x464]
push eax
call edi
test eax, eax
jne 0x1001b0c6
lea eax, [ebp + 0x54]
push str..dat
push eax
call fcn.1001ffe7
push ebx
lea eax, [ebp + 0x25e]
push esi
push eax
mov word [ebp + 0x25c], si
call fcn.10085bc0
add esp, 0x14
push str.config.znyshurufa.com
lea ecx, [ebp - 0x34]
call fcn.10001580
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], esi
call fcn.1001e780
pop ecx
pop ecx
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.10001770
push str.SmartCloudWB
lea ecx, [ebp - 0x50]
call fcn.100015f0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 3
call fcn.1001e821
pop ecx
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.100017c0
lea eax, [ebp]
push eax
call fcn.1001dfe4
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.1001e780
push 0x1869f
push 0x2710
mov byte [ebp - 4], 6
call fcn.1001c3c2
mov edx, dword [ebp + 0x20]
add esp, 0x14
cmp dword [ebp + 0x34], 8
jae 0x1001b057
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x50], 8
mov ecx, dword [ebp + 0x3c]
jae 0x1001b063
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.10004df5
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 0x1001b0a4
push str.Dowm_Load_Failed___
call fcn.100295c9
pop ecx
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.100017c0
push esi
push ebx
lea ecx, [ebp]
call fcn.10001770
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp + 0x38]
call fcn.100017c0
lea eax, [ebp + 0x464]
push eax
mov dword [ebp - 0x14], esi
call edi
test eax, eax
je 0x1001b17b
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1001b106
xor eax, eax
jmp 0x1001b189
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edi, [ebx + 1]
push edi
call fcn.100621c1
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
je 0x1001b0ff
push edi
push esi
push eax
call fcn.10085bc0
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 0x1001b17b
push 0x1018a2a0
xor edi, edi
call fcn.10084e70
pop ecx
xor ecx, ecx
cmp ebx, esi
mov dword [ebp - 0x10], eax
jbe 0x1001b17b
mov eax, dword [ebp - 0x14]
mov dl, byte [edi + 0x1018a2a0]
add eax, ecx
xor byte [eax], dl
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x1001b176
xor edi, edi
inc ecx
cmp ecx, ebx
jb 0x1001b161
push str.Get_Server_Config_File_Successed___
call fcn.100295c9
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.1008545e
add ebp, 0x670
leave
ret