Function at 0x412d90
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 0x4ba1d3
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x4e4260]
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.0046f350
add esp, 0xc
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0046f350
add esp, 0xc
call fcn.004144f0
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
push edx
push 0x4c348c
mov ecx, dword [ebp - 0x6ec]
add ecx, 0x40
call fcn.004017f0
push eax
push str._s_s_d.dat
lea eax, [ebp - 0x42c]
push eax
call fcn.0046f4c8
add esp, 0x14
push str.Config
mov ecx, dword [ebp - 0x6ec]
add ecx, 0x40
call fcn.004017f0
push eax
push 0x4c34c4
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0046f4c8
add esp, 0x10
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412ffc
push str..dat
lea eax, [ebp - 0x21c]
push eax
call fcn.0041a5c0
add esp, 8
mov word [ebp - 0x694], 0
push 0x206
push 0
lea ecx, [ebp - 0x692]
push ecx
call fcn.0046f350
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.00418170
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.00418290
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6e4]
call fcn.00401640
lea eax, [ebp - 0x468]
push eax
call fcn.00418780
add esp, 4
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x44c]
push edx
call fcn.00418170
add esp, 8
mov byte [ebp - 4], 6
push 0x1869f
push 0x2710
call fcn.00414460
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.004017f0
push eax
lea ecx, [ebp - 0x488]
call fcn.004017f0
push eax
push str.http:___s__s_common__s__d
lea ecx, [ebp - 0x694]
push ecx
call fcn.0046f4c8
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 0x412fcc
push str.Dowm_Load_Failed___
call fcn.004223b0
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 0x4130e0
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
lea edx, [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x698], eax
cmp dword [ebp - 0x698], 0xffffffff
jne 0x413057
xor eax, eax
jmp 0x4131a8
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.0044f370
add esp, 4
mov dword [ebp - 0x6e8], eax
mov edx, dword [ebp - 0x6e8]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41309a
xor eax, eax
jmp 0x4131a8
mov eax, dword [ebp - 0x220]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0046f350
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 0x413198
cmp dword [ebp - 0x220], 0
jbe 0x413198
mov dword [ebp - 0x6a4], 0
push 0x4c3578
call fcn.0046fbd0
add esp, 4
mov dword [ebp - 0x6a0], eax
mov dword [ebp - 0x6a8], 0
jmp 0x41312f
mov ecx, dword [ebp - 0x6a8]
add ecx, 1
mov dword [ebp - 0x6a8], ecx
mov edx, dword [ebp - 0x6a8]
cmp edx, dword [ebp - 0x220]
jae 0x413198
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 + str.GUANGSU]
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 0x413196
mov dword [ebp - 0x6a4], 0
jmp 0x413120
push str.Get_Server_Config_File_Successed___
call fcn.004223b0
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.0046f960
mov esp, ebp
pop ebp
ret