Function at 0x411fb0
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 0x4c23a3
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x4ed20c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6ec], ecx
mov word [ebp - 0x42c], 0
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.00474d50
add esp, 0xc
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00474d50
add esp, 0xc
call fcn.00413e90
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
push edx
push 0x4cae0c
mov ecx, dword [ebp - 0x6ec]
add ecx, 0x40
call fcn.00401800
push eax
push str._s_s_d.dat
lea eax, [ebp - 0x42c]
push eax
call fcn.00474c76
add esp, 0x14
push str.Config
mov ecx, dword [ebp - 0x6ec]
add ecx, 0x40
call fcn.00401800
push eax
push 0x4cae44
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00474c76
add esp, 0x10
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41221c
push str..dat
lea eax, [ebp - 0x21c]
push eax
call fcn.0041a400
add esp, 8
mov word [ebp - 0x694], 0
push 0x206
push 0
lea ecx, [ebp - 0x692]
push ecx
call fcn.00474d50
add esp, 0xc
push str.config.wn51.com
lea ecx, [ebp - 0x6c8]
call fcn.00401590
mov dword [ebp - 4], 0
lea edx, [ebp - 0x6c8]
push edx
lea eax, [ebp - 0x488]
push eax
call fcn.00417e00
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c8]
call fcn.004015d0
push str.WanNengWB
lea ecx, [ebp - 0x6e4]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6e4]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.00417f20
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6e4]
call fcn.00401640
lea eax, [ebp - 0x468]
push eax
call fcn.00418400
add esp, 4
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x44c]
push edx
call fcn.00417e00
add esp, 8
mov byte [ebp - 4], 6
push 0x1869f
push 0x2710
call fcn.00413e00
add esp, 8
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
push eax
push str.srfconfig.dat
lea ecx, [ebp - 0x44c]
call fcn.00401800
push eax
lea ecx, [ebp - 0x488]
call fcn.00401800
push eax
push str.http:___s__s_common__s__d
lea ecx, [ebp - 0x694]
push ecx
call fcn.00474c76
add esp, 0x18
push 0
push 0
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x694]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
je 0x4121ec
push str.Dowm_Load_Failed___
call fcn.00425690
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44c]
call fcn.00401640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x468]
call fcn.004015d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.00401640
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 0x412300
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 - 0x698], eax
cmp dword [ebp - 0x698], 0xffffffff
jne 0x412277
xor eax, eax
jmp 0x4123c8
push 0
mov eax, dword [ebp - 0x698]
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.0045469b
add esp, 4
mov dword [ebp - 0x6e8], eax
mov edx, dword [ebp - 0x6e8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x4122ba
xor eax, eax
jmp 0x4123c8
mov eax, dword [ebp - 0x220]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00474d50
add esp, 0xc
push 0
lea edx, [ebp - 0x69c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x698]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x698]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x4123b8
cmp dword [ebp - 0x220], 0
jbe 0x4123b8
mov dword [ebp - 0x6a4], 0
push 0x4caef8
call fcn.00474a50
add esp, 4
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a8], 0
jmp 0x41234f
mov ecx, dword [ebp - 0x6a8]
add ecx, 1
mov dword [ebp - 0x6a8], ecx
mov edx, dword [ebp - 0x6a8]
cmp edx, dword [ebp - 0x220]
jae 0x4123b8
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x6a8]
mov cl, byte [eax]
mov byte [ebp - 0x6a9], cl
movsx edx, byte [ebp - 0x6a9]
mov eax, dword [ebp - 0x6a4]
movsx ecx, byte [eax + 0x4caf00]
xor edx, ecx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x6a8]
mov byte [eax], dl
mov ecx, dword [ebp - 0x6a4]
add ecx, 1
mov dword [ebp - 0x6a4], ecx
mov edx, dword [ebp - 0x6a4]
cmp edx, dword [ebp - 0x6a0]
jl 0x4123b6
mov dword [ebp - 0x6a4], 0
jmp 0x412340
push str.Get_Server_Config_File_Successed___
call fcn.00425690
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.00474a3e
mov esp, ebp
pop ebp
ret