Function at 0x408a55
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 [0x580e04]
xor eax, ebp
mov dword [ebp + 0x650], eax
push 0xc
mov eax, 0x52821e
call fcn.0043bcd9
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.0043c2f0
push ebx
lea eax, [ebp + 0x3a]
push edi
push eax
mov word [ebp + 0x38], di
call fcn.0043c2f0
add esp, 0x18
call fcn.0040ac99
cmp dword [esi + 0x58], 8
jb 0x408ab9
mov ecx, dword [esi + 0x44]
jmp 0x408abc
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.0043c3b0
add esp, 0x14
cmp dword [esi + 0x58], 8
jb 0x408ae2
mov esi, dword [esi + 0x44]
jmp 0x408ae5
add esi, 0x44
push str.Config
push esi
lea eax, [ebp + 0x38]
push 0x52db10
push eax
call fcn.0043c3b0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp + 0x448]
push eax
call esi
test eax, eax
jne 0x408bdb
lea eax, [ebp + 0x38]
push str..dat
push eax
call fcn.0040a9b2
push ebx
lea eax, [ebp + 0x242]
push edi
push eax
mov word [ebp + 0x240], di
call fcn.0043c2f0
add esp, 0x14
push str.config.znyshurufa.com_smartcloud
lea ecx, [ebp]
call fcn.004017f8
lea eax, [ebp]
push eax
mov dword [ebp - 4], edi
call fcn.0040ae76
lea eax, [ebp]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0040b0b6
push 0x1869f
push 0x2710
mov byte [ebp - 4], 1
call fcn.0040a4fc
mov ecx, dword [ebp + 0x20]
add esp, 0x14
cmp dword [ebp + 0x34], 8
jae 0x408b81
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.0043c3b0
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 0x408bc1
push str.Dowm_Load_Failed___
call fcn.0040e335
pop ecx
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.004013e5
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.0040139a
lea eax, [ebp + 0x448]
push eax
mov dword [ebp - 0x14], edi
call esi
test eax, eax
je 0x408c90
push edi
push 0x80
push 4
push edi
push 1
push SysReAllocString
lea eax, [ebp + 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x408c1b
xor eax, eax
jmp 0x408c9e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.0041b8d2
cmp eax, edi
pop ecx
mov dword [ebp - 0x14], eax
je 0x408c14
push esi
push edi
push eax
call fcn.0043c2f0
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 0x408c90
push str.GUANGSU
xor esi, esi
call fcn.0043bf20
pop ecx
xor ecx, ecx
cmp ebx, edi
mov dword [ebp - 0x10], eax
jbe 0x408c90
mov eax, dword [ebp - 0x14]
mov dl, byte [esi + str.GUANGSU]
add eax, ecx
xor byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x408c8b
xor esi, esi
inc ecx
cmp ecx, ebx
jb 0x408c76
push str.Get_Server_Config_File_Successed___
call fcn.0040e335
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.0043bcca
add ebp, 0x654
leave
ret