Function at 0x412af0
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 0x66aebd
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00602d70
mov eax, dword [0x71cf78]
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.00605fb0
add esp, 0xc
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x4131f6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1020], eax
push 0x68ffcf
lea ecx, [ebp - 0x1020]
mov dword [ebp - 4], 0
call fcn.00402920
test al, al
jne 0x412b9d
push 0
push 0x68ffcf
lea ecx, [ebp - 0x1020]
call fcn.00408780
mov dword [ebp - 4], 1
mov dword [ebp - 0x103c], 0xc350
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x413200
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.00423b74
mov ecx, eax
test ecx, ecx
je 0x41320a
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 0x412bfa
xor ecx, ecx
jmp 0x412c09
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412c00
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x102c]
call fcn.00408780
mov edi, dword [ebp - 0x102c]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x4131ec
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x412c4a
push esi
lea ecx, [ebp - 0x102c]
call fcn.004033e0
mov edi, dword [ebp - 0x102c]
lea eax, [esi + 1]
push eax
push edi
call fcn.0062fa02
push eax
call fcn.0040b840
add esp, 0xc
cmp esi, dword [edi - 8]
jg 0x4131ec
mov eax, dword [ebp - 0x1044]
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov dword [eax], 0
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x413214
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1014], esi
mov byte [ebp - 4], 4
call fcn.00423b74
mov ecx, eax
test ecx, ecx
je 0x41321e
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 0x412ec2
push str.HTTP:__
push edi
call fcn.0062f8b1
add esp, 8
test eax, eax
je 0x412e6a
sub eax, edi
cmp eax, 0xffffffff
jle 0x412e6a
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
call fcn.0040c7f0
mov esi, dword [ebp - 0x1014]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x1024], eax
cmp dword [esi - 0xc], eax
jl 0x412e5e
push 0x690bec
push esi
call fcn.0062f8b1
add esp, 8
test eax, eax
je 0x412e5e
sub eax, esi
cmp eax, 0xffffffff
jle 0x412e5e
cmp dword [esi - 4], 1
jle 0x412d54
push dword [esi - 0xc]
lea ecx, [ebp - 0x1014]
call fcn.00402a60
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 0x412d60
sub ecx, edx
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x101c], ecx
jge 0x412d7a
or edx, 0xffffffff
jmp 0x412d9c
push 0x690bec
push esi
call fcn.0062f8b1
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.0040de10
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 6
jge 0x412dc2
or ecx, 0xffffffff
jmp 0x412dde
push 0x690bec
push esi
call fcn.0062f8b1
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.0040de10
push eax
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 7
call fcn.00409f70
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 0x412e25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x101c]
push esi
call fcn.0062e676
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 0x412e56
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1014]
jmp 0x412eda
mov dword [ebp - 0x1018], 0x50
jmp 0x412eda
cmp dword [edi - 0xc], 0
jl 0x412ec2
push str.HTTPS:__
push edi
call fcn.0062f8b1
add esp, 8
test eax, eax
je 0x412ec2
sub eax, edi
cmp eax, 0xffffffff
jle 0x412ec2
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
call fcn.0040c7f0
mov esi, dword [ebp - 0x1014]
mov eax, 0x801000
add esp, 0xc
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1018], 0x1bb
jmp 0x412eda
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1018], eax
push 0
push 0x68ffcf
lea ecx, [ebp - 0x1020]
call fcn.0040b8d0
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 0x412fcf
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 0x690c20
push 0x690c20
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 0x412fc3
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 0x68ffcf
push str.HTTP_1.0
push eax
push 0x690c30
push dword [ebp - 0x1018]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, eax
mov dword [ebp - 0x101c], ecx
test ecx, ecx
jne 0x413082
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 0x412ff1
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 0x41300f
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 0x41302a
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 0x413042
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 0x413064
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.006027d7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1020]
push 0
push 0x68ffcf
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4130b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x412fb7
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 0x4130a4
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x41318d
cmp eax, 0x1000
jae 0x413228
mov byte [ebp + eax - 0x1010], 0
add eax, dword [ebp - 0x1024]
push eax
mov eax, dword [ebp - 0x1040]
push dword [eax]
call fcn.0063c99d
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.006054b0
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 0x4130e2
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x412fb7
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.00401fd0
lea ecx, [ebp - 0x1014]
call fcn.00401fd0
lea ecx, [ebp - 0x102c]
call fcn.00401fd0
lea ecx, [ebp - 0x1048]
call fcn.00401fd0
lea ecx, [ebp - 0x1020]
call fcn.00401fd0
mov eax, 1
jmp 0x413066
push 0x80070057
call fcn.004020e0
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
push 0x80004005
call fcn.004020e0
call fcn.00602ebd
int3