Function at 0x41a400
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
mov eax, dword [0x5a4e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x4b4]
cmp dword [eax - 4], 1
push edi
jle 0x41a42f
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 0x4b4]
call fcn.00404480
mov edi, dword [esi + 0x4b4]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x24a]
push edx
mov dword [ebp - 0xa50], 0x50
mov dword [ebp - 0xa58], 0
mov word [ebp - 0x24c], cx
call fcn.00525e90
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0xa4a]
push ecx
mov word [ebp - 0xa4c], ax
call fcn.00525e90
push str.5054399.com
push edi
call fcn.00523c27
add esp, 0x20
test eax, eax
jne 0x41a4c4
push str.4399.com
push edi
call fcn.00523c27
add esp, 8
test eax, eax
jne 0x41a4c4
push str.4399pk.com
push edi
call fcn.00523c27
add esp, 8
test eax, eax
jne 0x41a4c4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523022
mov esp, ebp
pop ebp
ret
push ebx
add edi, 0xe
push 0x2f
push edi
call fcn.00523e32
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41a4fc
mov edx, ebx
sub edx, edi
sar edx, 1
inc edx
push edx
push edi
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add ebx, 2
push ebx
lea ecx, [ebp - 0xa4c]
push ecx
jmp 0x41a504
push edi
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x24c]
push 0x3a
push eax
call fcn.00523e32
xor edi, edi
add esp, 8
cmp eax, edi
je 0x41a537
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00523a62
add esp, 4
movzx ebx, ax
jmp 0x41a53d
mov ebx, dword [ebp - 0xa50]
push edi
push edi
push edi
push edi
push 0x57cfd0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x6c4], eax
cmp eax, edi
je 0x41a7d3
push edi
push edi
push 3
push edi
push edi
push ebx
lea edx, [ebp - 0x24c]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0x6c8], eax
cmp eax, edi
je 0x41a7d3
push edi
push SysReAllocStringLen
push edi
push edi
push str.HTTP_1.1
lea ecx, [ebp - 0xa4c]
push ecx
push 0x57cfec
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x6cc], eax
cmp eax, edi
je 0x41a7d3
push edi
push edi
push 0x4a
push str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x41a7d3
mov ecx, dword [esi + 0x6cc]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push edi
lea edx, [ebp - 0xa54]
push edx
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x24]
push eax
push 0x13
push ecx
mov byte [ebp - 0x24], 0
mov dword [ebp - 0xa54], 0x20
call ebx
test eax, eax
je 0x41a7d3
lea edx, [ebp - 0x24]
push edx
call fcn.00523a62
add esp, 4
cmp eax, 0x194
je 0x41a7d3
mov edx, dword [esi + 0x6cc]
push edi
lea eax, [ebp - 0xa54]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x20000005
push edx
call ebx
test eax, eax
je 0x41a7d3
cmp dword [ebp - 0xa54], 4
jne 0x41a7d3
mov eax, dword [ebp - 0x24]
push 0x3ff
lea ecx, [ebp - 0x64b]
push edi
push ecx
mov dword [ebp - 0xa54], eax
mov byte [ebp - 0x64c], 0
call fcn.00525e90
xor eax, eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
push 0x57d018
lea eax, [esi + 0x4b8]
push eax
xor edx, edx
lea ebx, [esi + 0x6c0]
push ebx
mov dword [ebp - 0xa50], edi
mov word [ebp - 0x44], dx
call fcn.00523f17
add esp, 0x18
cmp dword [ebx], edi
je 0x41a7d1
jmp 0x41a6d0
mov eax, dword [esi + 0x6cc]
lea ecx, [ebp - 0xa50]
push ecx
push 0x400
lea edx, [ebp - 0x64c]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41a7b0
mov ecx, dword [esi + 0x6c0]
mov edx, dword [ebp - 0xa50]
push ecx
push 1
push edx
lea eax, [ebp - 0x64c]
push eax
call fcn.005240b5
add edi, dword [ebp - 0xa50]
xor edx, edx
mov eax, edi
imul eax, eax, 0x64
div dword [ebp - 0xa54]
mov ecx, dword [esi + 0x6f4]
add esp, 0x10
push 0
mov ebx, eax
push ebx
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x580dc0
lea edx, [ebp - 0x44]
push 0x10
push edx
call fcn.0052350d
lea eax, [ebp - 0x44]
add esp, 0x10
lea ecx, [esi + 0xa5c]
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x41a761
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404630
mov ecx, dword [esi + 0xa08]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0x6cc]
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
test eax, eax
je 0x41a7b0
cmp dword [ebp - 0xa50], 0
jne 0x41a6d0
mov eax, dword [esi + 0x6c0]
push eax
call fcn.0052419c
add esp, 4
cmp dword [ebp - 0xa54], edi
ja 0x41a7d1
mov dword [ebp - 0xa58], 1
xor edi, edi
mov eax, dword [esi + 0x6cc]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, edi
je 0x41a7e6
push eax
call ebx
mov eax, dword [esi + 0x6c8]
cmp eax, edi
je 0x41a7f3
push eax
call ebx
mov eax, dword [esi + 0x6c4]
cmp eax, edi
je 0x41a800
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa58]
pop ebx
mov dword [esi + 0x6cc], edi
mov dword [esi + 0x6c8], edi
mov dword [esi + 0x6c4], edi
xor ecx, ebp
pop edi
call fcn.00523022
mov esp, ebp
pop ebp
ret