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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9d22
mov eax, dword fs:[0]
push eax
sub esp, 0x684
mov eax, dword [0x4e3260]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x690], ecx
mov word [ebp - 0x42c], 0
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.0046ee70
add esp, 0xc
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0046ee70
add esp, 0xc
call fcn.00414610
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
push edx
push 0x4c248c
mov ecx, dword [ebp - 0x690]
add ecx, 0x40
call fcn.00401680
push eax
push str._s_s_d.dat
lea eax, [ebp - 0x42c]
push eax
call fcn.0046efe8
add esp, 0x14
push str.Config
mov ecx, dword [ebp - 0x690]
add ecx, 0x40
call fcn.00401680
push eax
push 0x4c24c4
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046efe8
add esp, 0x10
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413126
push str..dat
lea eax, [ebp - 0x21c]
push eax
call fcn.0041a700
add esp, 8
mov word [ebp - 0x654], 0
push 0x206
push 0
lea ecx, [ebp - 0x652]
push ecx
call fcn.0046ee70
add esp, 0xc
push str.config.wn51.com
lea ecx, [ebp - 0x688]
call fcn.00401590
mov dword [ebp - 4], 0
lea edx, [ebp - 0x688]
push edx
lea eax, [ebp - 0x44c]
push eax
call fcn.00418350
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x688]
call fcn.004015d0
push str.srfconfig.dat
push str.WanNengWB
lea ecx, [ebp - 0x44c]
call fcn.00401680
push eax
push str.http:___s__s_common__s
lea ecx, [ebp - 0x654]
push ecx
call fcn.0046efe8
add esp, 0x14
push 0
push 0
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x654]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x413114
push str.Dowm_Load_Failed___
call fcn.00422140
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.00401650
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41320a
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x658], eax
cmp dword [ebp - 0x658], 0xffffffff
jne 0x413181
xor eax, eax
jmp 0x4132d2
push 0
mov eax, dword [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
add ecx, 1
push ecx
call fcn.0044ee90
add esp, 4
mov dword [ebp - 0x68c], eax
mov edx, dword [ebp - 0x68c]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4131c4
xor eax, eax
jmp 0x4132d2
mov eax, dword [ebp - 0x220]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0046ee70
add esp, 0xc
push 0
lea edx, [ebp - 0x65c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x658]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x4132c2
cmp dword [ebp - 0x220], 0
jbe 0x4132c2
mov dword [ebp - 0x664], 0
push 0x4c2574
call fcn.0046f6f0
add esp, 4
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x668], 0
jmp 0x413259
mov ecx, dword [ebp - 0x668]
add ecx, 1
mov dword [ebp - 0x668], ecx
mov edx, dword [ebp - 0x668]
cmp edx, dword [ebp - 0x220]
jae 0x4132c2
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x668]
mov cl, byte [eax]
mov byte [ebp - 0x669], cl
movsx edx, byte [ebp - 0x669]
mov eax, dword [ebp - 0x664]
movsx ecx, byte [eax + str.GUANGSU]
xor edx, ecx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x668]
mov byte [eax], dl
mov ecx, dword [ebp - 0x664]
add ecx, 1
mov dword [ebp - 0x664], ecx
mov edx, dword [ebp - 0x664]
cmp edx, dword [ebp - 0x660]
jl 0x4132c0
mov dword [ebp - 0x664], 0
jmp 0x41324a
push str.Get_Server_Config_File_Successed___
call fcn.00422140
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046f480
mov esp, ebp
pop ebp
ret