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

Disassembly:
push ebp
sub esp, 0x650
lea ebp, [esp - 4]
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x650], eax
push 0xc
mov eax, 0x1016bcbd
call fcn.10075e22
mov ebx, 0x206
xor edi, edi
push ebx
lea eax, [ebp + 0x44a]
push edi
push eax
mov esi, ecx
mov word [ebp + 0x448], di
call fcn.10076580
push ebx
lea eax, [ebp + 0x3a]
push edi
push eax
mov word [ebp + 0x38], di
call fcn.10076580
add esp, 0x18
call fcn.1001edd8
cmp dword [esi + 0x58], 8
jb 0x1001b7ab
mov ecx, dword [esi + 0x44]
jmp 0x1001b7ae
lea ecx, [esi + 0x44]
push eax
push str.Config
push ecx
lea eax, [ebp + 0x448]
push str._s_s_d.dat
push eax
call fcn.100048d5
add esp, 0x14
cmp dword [esi + 0x58], 8
jb 0x1001b7d4
mov esi, dword [esi + 0x44]
jmp 0x1001b7d7
add esi, 0x44
push str.Config
push esi
lea eax, [ebp + 0x38]
push 0x10178658
push eax
call fcn.100048d5
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x448]
push eax
call esi
test eax, eax
jne 0x1001b8cd
lea eax, [ebp + 0x38]
push str..dat
push eax
call fcn.1001ebb0
push ebx
lea eax, [ebp + 0x242]
push edi
push eax
mov word [ebp + 0x240], di
call fcn.10076580
add esp, 0x14
push str.config.znyshurufa.com_smartcloud
lea ecx, [ebp]
call fcn.10001580
lea eax, [ebp]
push eax
mov dword [ebp - 4], edi
call fcn.1001f9c5
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.100201b9
push 0x1869f
push 0x2710
mov byte [ebp - 4], 1
call fcn.1001db8f
mov ecx, dword [ebp + 0x20]
add esp, 0x14
cmp dword [ebp + 0x34], 8
jae 0x1001b873
lea ecx, [ebp + 0x20]
push eax
push str.srfconfig.dat
push ecx
lea eax, [ebp + 0x240]
push str.http:___s_common__s__d
push eax
call fcn.100048d5
add esp, 0x14
push edi
push edi
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x240]
push eax
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
je 0x1001b8b3
push str.Dowm_Load_Failed___
call fcn.100249b1
pop ecx
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.100017f0
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.10001770
lea eax, [ebp + 0x448]
push eax
mov dword [ebp - 0x14], edi
call esi
test eax, eax
je 0x1001b982
push edi
push 0x80
push 4
push edi
push 1
push SysReAllocStringLen
lea eax, [ebp + 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1001b90d
xor eax, eax
jmp 0x1001b990
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.10052b12
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
je 0x1001b906
push esi
push edi
push eax
call fcn.10076580
add esp, 0xc
push edi
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, edi
jbe 0x1001b982
push 0x10178738
xor esi, esi
call fcn.100757d0
pop ecx
xor ecx, ecx
cmp ebx, edi
mov dword [ebp - 0x10], eax
jbe 0x1001b982
mov eax, dword [ebp - 0x14]
mov dl, byte [esi + 0x10178738]
add eax, ecx
xor byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x1001b97d
xor esi, esi
inc ecx
cmp ecx, ebx
jb 0x1001b968
push str.Get_Server_Config_File_Successed___
call fcn.100249b1
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 + 0x650]
xor ecx, ebp
call fcn.10075e13
add ebp, 0x654
leave
ret