Function at 0x4174e0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x698c6d
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.0060a1b0
mov eax, dword [0x75f140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp + 0x10]
push 0x1000
mov dword [ebp - 0x1040], eax
lea eax, [ebp - 0x1010]
push 0
push eax
mov dword [ebp - 0x101c], esi
call fcn.006300b0
add esp, 0xc
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x417be6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1020], eax
push 0x6c1027
lea ecx, [ebp - 0x1020]
mov dword [ebp - 4], 0
call fcn.00402960
test al, al
jne 0x41758d
push 0
push 0x6c1027
lea ecx, [ebp - 0x1020]
call fcn.00403730
mov dword [ebp - 4], 1
mov dword [ebp - 0x103c], 0xc350
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x417bf0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1048], eax
mov byte [ebp - 4], 2
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x417bfa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 3
test esi, esi
jne 0x4175ea
xor ecx, ecx
jmp 0x4175f9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4175f0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x102c]
call fcn.00403730
mov edi, dword [ebp - 0x102c]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x417bdc
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x41763a
push esi
lea ecx, [ebp - 0x102c]
call fcn.00403440
mov edi, dword [ebp - 0x102c]
lea eax, [esi + 1]
push eax
push edi
call fcn.0065ac1b
push eax
call fcn.0040d920
add esp, 0xc
cmp esi, dword [edi - 8]
jg 0x417bdc
mov eax, dword [ebp - 0x1044]
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov dword [eax], 0
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x417c04
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1014], esi
mov byte [ebp - 4], 4
call fcn.0042a586
mov ecx, eax
test ecx, ecx
je 0x417c0e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1028], eax
cmp dword [edi - 0xc], 0
mov byte [ebp - 4], 5
jl 0x4178b2
push str.HTTP:__
push edi
call fcn.0065aaca
add esp, 8
test eax, eax
je 0x41785a
sub eax, edi
cmp eax, 0xffffffff
jle 0x41785a
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
call fcn.0040ebd0
mov esi, dword [ebp - 0x1014]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x1024], eax
cmp dword [esi - 0xc], eax
jl 0x41784e
push 0x6c1ab8
push esi
call fcn.0065aaca
add esp, 8
test eax, eax
je 0x41784e
sub eax, esi
cmp eax, 0xffffffff
jle 0x41784e
cmp dword [esi - 4], 1
jle 0x417744
push dword [esi - 0xc]
lea ecx, [ebp - 0x1014]
call fcn.00402aa0
mov esi, dword [ebp - 0x1014]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417750
sub ecx, edx
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x101c], ecx
jge 0x41776a
or edx, 0xffffffff
jmp 0x41778c
push 0x6c1ab8
push esi
call fcn.0065aaca
mov ecx, dword [ebp - 0x101c]
mov edx, eax
sub edx, esi
add esp, 8
test eax, eax
mov eax, 0xffffffff
cmove edx, eax
push ecx
lea eax, [edx + 1]
push eax
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1014]
call fcn.00410360
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 6
jge 0x4177b2
or ecx, 0xffffffff
jmp 0x4177ce
push 0x6c1ab8
push esi
call fcn.0065aaca
mov ecx, eax
add esp, 8
sub ecx, esi
test eax, eax
mov eax, 0xffffffff
cmove ecx, eax
push ecx
push 0
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x1014]
call fcn.00410360
push eax
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 7
call fcn.0040b610
mov edx, dword [ebp - 0x1034]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417815
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x101c]
push esi
call fcn.0065961f
add esp, 4
mov dword [ebp - 0x1018], eax
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x417846
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1014]
jmp 0x4178ca
mov dword [ebp - 0x1018], 0x50
jmp 0x4178ca
cmp dword [edi - 0xc], 0
jl 0x4178b2
push str.HTTPS:__
push edi
call fcn.0065aaca
add esp, 8
test eax, eax
je 0x4178b2
sub eax, edi
cmp eax, 0xffffffff
jle 0x4178b2
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
call fcn.0040ebd0
mov esi, dword [ebp - 0x1014]
mov eax, 0x801000
add esp, 0xc
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1018], 0x1bb
jmp 0x4178ca
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1018], eax
push 0
push 0x6c1027
lea ecx, [ebp - 0x1020]
call fcn.0040d9b0
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible__MSIE_5.5_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1030], eax
test eax, eax
je 0x4179bf
push 4
lea ecx, [ebp - 0x103c]
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 3
push 0x6c1aec
push 0x6c1aec
push dword [ebp - 0x1018]
push esi
push dword [ebp - 0x1030]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1018], eax
test eax, eax
je 0x4179b3
push 4
lea ecx, [ebp - 0x103c]
push ecx
push 6
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0x103c]
push eax
push 5
push dword [ebp - 0x1018]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [ebp - 0x1024]
push 1
or eax, 0x80680000
push eax
mov eax, dword [ebp - 0x1028]
push 0
push 0x6c1027
push str.HTTP_1.0
push eax
push 0x6c1afc
push dword [ebp - 0x1018]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, eax
mov dword [ebp - 0x101c], ecx
test ecx, ecx
jne 0x417a72
push dword [ebp - 0x1018]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1030]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x1028]
or eax, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4179e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4179ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov byte [ebp - 4], 2
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x417a1a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov byte [ebp - 4], 1
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x417a32
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1020]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x417a54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00609c1d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1020]
push 0
push 0x6c1027
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x417aa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4179a7
lea eax, [ebp - 0x1038]
mov dword [ebp - 0x1024], 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x417a94
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x417b7d
cmp eax, 0x1000
jae 0x417c18
mov byte [ebp + eax - 0x1010], 0
add eax, dword [ebp - 0x1024]
push eax
mov eax, dword [ebp - 0x1040]
push dword [eax]
call fcn.006690b8
mov ecx, dword [ebp - 0x1040]
push dword [ebp - 0x1038]
mov dword [ecx], eax
lea ecx, [ebp - 0x1010]
add eax, dword [ebp - 0x1024]
push ecx
push eax
call fcn.0062f5b0
mov ecx, dword [ebp - 0x1044]
add esp, 0x14
mov eax, dword [ebp - 0x1024]
add eax, dword [ebp - 0x1038]
mov dword [ebp - 0x1024], eax
mov dword [ecx], eax
lea eax, [ebp - 0x1038]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x417ad2
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4179a7
push dword [ebp - 0x101c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1018]
call esi
push dword [ebp - 0x1030]
call esi
lea ecx, [ebp - 0x1028]
call fcn.00402020
lea ecx, [ebp - 0x1014]
call fcn.00402020
lea ecx, [ebp - 0x102c]
call fcn.00402020
lea ecx, [ebp - 0x1048]
call fcn.00402020
lea ecx, [ebp - 0x1020]
call fcn.00402020
mov eax, 1
jmp 0x417a56
push 0x80070057
call fcn.00402130
push 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
push 0x80004005
call fcn.00402130
call fcn.0060a2fd
int3