Function at 0x405560
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c77ae
mov eax, dword fs:[0]
push eax
mov eax, 0x1916c
call fcn.004b7690
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x19158], ebx
push ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
jne 0x4055ef
lea eax, [ebp - 0x19090]
mov dword [ebp - 0x19094], eax
xor ecx, ecx
lea eax, [edi + 4]
xor edx, edx
mov dword [edi], eax
mov word [eax], dx
lea eax, [ebp - 0x19090]
mov word [ebp - 0x19090], cx
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.004083b0
mov eax, dword [ebp - 0x19094]
lea ecx, [ebp - 0x19090]
jmp 0x405818
mov eax, dword [ebp + 8]
push ebx
push 0x102
push ebx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x405639
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
lea ecx, [ebp - 0x19090]
mov dword [ebp - 0x19094], ecx
mov word [ebp - 0x19090], dx
lea eax, [edi + 4]
xor ecx, ecx
lea edx, [ebp - 0x19090]
mov dword [edi], eax
mov word [eax], cx
push edx
jmp 0x4055d4
push eax
mov dword [ebp - 0x1915c], eax
mov dword [ebp - 0x19158], eax
lea eax, [ebp - 0x19158]
push eax
lea ecx, [ebp - 0x1915c]
push ecx
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x1915c], 0x190
jbe 0x40569d
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
xor eax, eax
lea edx, [ebp - 0x19090]
mov word [ebp - 0x19090], ax
lea eax, [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x19094], edx
mov dword [edi], eax
mov word [eax], cx
push edx
jmp 0x4055d4
push 0x19000
lea eax, [ebp - 0x19010]
push 0
push eax
mov dword [ebp - 0x19154], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x19154]
push ecx
push 0x19000
lea edx, [ebp - 0x19010]
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4057d0
mov eax, dword [ebp - 0x19154]
test eax, eax
je 0x4057d0
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp + eax - 0x19010], 0
call ebx
push esi
call ebx
lea eax, [ebp - 0x19010]
push eax
lea ecx, [ebp - 0x190b0]
call fcn.004030a0
push str.GB2312
lea ecx, [ebp - 0x19178]
mov byte [ebp - 4], 1
call fcn.004030a0
lea ecx, [ebp - 0x19178]
push ecx
lea ecx, [ebp - 0x190b0]
lea esi, [ebp - 0x190cc]
mov byte [ebp - 4], 2
call fcn.0040d370
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40574e
mov eax, dword [eax]
lea edx, [ebp - 0x19090]
xor ecx, ecx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x19094]
mov dword [ebp - 0x19094], edx
mov word [ebp - 0x19090], cx
call fcn.004083b0
lea ecx, [ebp - 0x190cc]
call fcn.00409690
lea ecx, [ebp - 0x19178]
call fcn.004030e0
push 0x19000
lea edx, [ebp - 0x19010]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, esi
mov eax, edi
call fcn.00408220
mov eax, dword [ebp - 0x19094]
mov esi, dword [sym.imp.MSVCR100.dll_free]
lea ecx, [ebp - 0x19090]
cmp eax, ecx
je 0x4057c3
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x190b0]
call fcn.004030e0
jmp 0x405828
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
lea eax, [ebp - 0x1914c]
mov dword [ebp - 0x19150], eax
lea eax, [edi + 4]
xor edx, edx
mov dword [edi], eax
mov word [eax], dx
lea eax, [ebp - 0x1914c]
xor ecx, ecx
push eax
or eax, 0xffffffff
mov esi, edi
mov word [ebp - 0x1914c], cx
call fcn.004083b0
mov eax, dword [ebp - 0x19150]
lea ecx, [ebp - 0x1914c]
mov esi, dword [sym.imp.MSVCR100.dll_free]
cmp eax, ecx
je 0x405828
push eax
call esi
add esp, 4
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
cmp eax, edx
je 0x405838
push eax
call esi
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret 0x84