Function at 0x4047e0
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x404806
push 0
push 0
push 0
push 1
push str.GetFetion_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x3c], eax
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x404bdd
mov eax, dword [0x4120d8]
mov ecx, dword [0x4120d4]
mov edx, dword [str.if.ghostcn.com]
push 0
push 0
push 3
push eax
push ecx
push 0
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x404bdd
mov al, byte [esp + 0x13]
mov ebx, dword [str._PostData.aspx_channelID]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.004015c0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [esp + 0x34]
call fcn.00401520
mov edi, str.10000
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.10000
lea ecx, [esp + 0x34]
call fcn.00405320
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40489d
mov eax, 0x410280
push 0
push 0x480000
push 0
push 0
push str.HTTP_1.0
push eax
push 0x412074
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x4048da
push 1
lea ecx, [esp + 0x30]
call fcn.004015c0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, str.Accept:__
or ecx, 0xffffffff
xor eax, eax
push 0x20000000
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Accept:__
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x4049b5
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4049b5
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
mov ebp, 4
push 0x20000013
push ebx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x30], ebp
call edi
mov eax, dword [esp + 0x14]
cmp eax, 0xc8
je 0x404957
cmp eax, 0xce
jne 0x4049b5
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x20000005
push ebx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x30], ebp
call edi
mov edi, dword [esp + 0x14]
cmp edi, 0xffffffff
je 0x4049b5
lea edx, [edi + 1]
push edx
call fcn.00405f70
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4049b5
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4049d4
push ebp
call fcn.004056b6
add esp, 4
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push 1
lea ecx, [esp + 0x30]
call fcn.004015c0
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x18]
push str.url
push ebp
mov byte [ecx + ebp], 0
call fcn.00405ef0
push str.ex_url
push ebp
mov dword [esp + 0x24], eax
call fcn.00405ef0
push str.oemtag
push ebp
mov esi, eax
call fcn.00405ef0
push str.showad
push ebp
mov dword [esp + 0x3c], eax
call fcn.00405ef0
mov edi, eax
push str.adurl
push ebp
mov dword [esp + 0x50], edi
call fcn.00405ef0
mov ecx, dword [esp + 0x3c]
add esp, 0x28
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x404bb9
test esi, esi
je 0x404bb9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x404bb9
test edi, edi
je 0x404bb9
test eax, eax
je 0x404bb9
mov byte [esi - 1], 0
mov byte [ecx - 1], 0
mov byte [edi - 1], 0
mov byte [eax - 1], 0
mov edi, str.url
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
mov ecx, 0x4163c8
call fcn.00402d40
mov edi, str.ex_url
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
mov ecx, 0x4163c8
call fcn.00402ec0
mov edi, str.oemtag
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
mov esi, ecx
or ecx, 0xffffffff
add esi, eax
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, 0x416418
push edi
mov dword [esp + 0x24], edi
call fcn.00401630
test al, al
je 0x404b03
mov ecx, edi
mov edi, dword [0x41641c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x416418
call fcn.00401610
mov edi, str.adurl
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
mov esi, ecx
or ecx, 0xffffffff
add esi, eax
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, 0x416408
push edi
mov dword [esp + 0x2c], edi
call fcn.00401630
test al, al
je 0x404b60
mov ecx, edi
mov edi, dword [0x41640c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x416408
call fcn.00401610
mov edi, str.showad
or ecx, 0xffffffff
xor eax, eax
push 3
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
push 0x4128ac
not ecx
dec ecx
add eax, ecx
push eax
call fcn.0040eef0
test eax, eax
sete cl
push ebp
mov byte [0x416428], cl
call fcn.004056b6
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push ebx
call esi
push 1
lea ecx, [esp + 0x30]
call fcn.004015c0
mov edx, dword [esp + 0x20]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push ebp
call fcn.004056b6
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push ebx
call esi
push 1
lea ecx, [esp + 0x30]
call fcn.004015c0
mov eax, dword [esp + 0x20]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret