Function at 0x412760
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 0x661c1d
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00602a30
mov eax, dword [0x714f78]
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.00605c60
add esp, 0xc
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x412e66
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1020], eax
push 0x686f7f
lea ecx, [ebp - 0x1020]
mov dword [ebp - 4], 0
call fcn.00402920
test al, al
jne 0x41280d
push 0
push 0x686f7f
lea ecx, [ebp - 0x1020]
call fcn.00408780
mov dword [ebp - 4], 1
mov dword [ebp - 0x103c], 0xc350
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x412e70
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.004237e3
mov ecx, eax
test ecx, ecx
je 0x412e7a
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 0x41286a
xor ecx, ecx
jmp 0x412879
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412870
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 0x412e5c
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4128ba
push esi
lea ecx, [ebp - 0x102c]
call fcn.004033e0
mov edi, dword [ebp - 0x102c]
lea eax, [esi + 1]
push eax
push edi
call fcn.00626e58
push eax
call fcn.0040b6b0
add esp, 0xc
cmp esi, dword [edi - 8]
jg 0x412e5c
mov eax, dword [ebp - 0x1044]
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov dword [eax], 0
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x412e84
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1014], esi
mov byte [ebp - 4], 4
call fcn.004237e3
mov ecx, eax
test ecx, ecx
je 0x412e8e
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 0x412b32
push str.HTTP:__
push edi
call fcn.00626d07
add esp, 8
test eax, eax
je 0x412ada
sub eax, edi
cmp eax, 0xffffffff
jle 0x412ada
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
call fcn.0040c6a0
mov esi, dword [ebp - 0x1014]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x1024], eax
cmp dword [esi - 0xc], eax
jl 0x412ace
push 0x687b8c
push esi
call fcn.00626d07
add esp, 8
test eax, eax
je 0x412ace
sub eax, esi
cmp eax, 0xffffffff
jle 0x412ace
cmp dword [esi - 4], 1
jle 0x4129c4
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 0x4129d0
sub ecx, edx
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x101c], ecx
jge 0x4129ea
or edx, 0xffffffff
jmp 0x412a0c
push 0x687b8c
push esi
call fcn.00626d07
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.0040dcc0
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 6
jge 0x412a32
or ecx, 0xffffffff
jmp 0x412a4e
push 0x687b8c
push esi
call fcn.00626d07
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.0040dcc0
push eax
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 7
call fcn.00409ef0
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 0x412a95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x101c]
push esi
call fcn.00625b2b
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 0x412ac6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1014]
jmp 0x412b4a
mov dword [ebp - 0x1018], 0x50
jmp 0x412b4a
cmp dword [edi - 0xc], 0
jl 0x412b32
push str.HTTPS:__
push edi
call fcn.00626d07
add esp, 8
test eax, eax
je 0x412b32
sub eax, edi
cmp eax, 0xffffffff
jle 0x412b32
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x101c]
call fcn.0040c6a0
mov esi, dword [ebp - 0x1014]
mov eax, 0x801000
add esp, 0xc
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1018], 0x1bb
jmp 0x412b4a
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1024], eax
mov eax, dword [ebp - 0x1034]
mov dword [ebp - 0x1018], eax
push 0
push 0x686f7f
lea ecx, [ebp - 0x1020]
call fcn.0040b740
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 0x412c3f
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 0x687bc0
push 0x687bc0
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 0x412c33
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 0x686f7f
push str.HTTP_1.0
push eax
push 0x687bd0
push dword [ebp - 0x1018]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, eax
mov dword [ebp - 0x101c], ecx
test ecx, ecx
jne 0x412cf2
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 0x412c61
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 0x412c7f
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 0x412c9a
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 0x412cb2
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 0x412cd4
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.0060249b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1020]
push 0
push 0x686f7f
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x412d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x412c27
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 0x412d14
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x412dfd
cmp eax, 0x1000
jae 0x412e98
mov byte [ebp + eax - 0x1010], 0
add eax, dword [ebp - 0x1024]
push eax
mov eax, dword [ebp - 0x1040]
push dword [eax]
call fcn.00633989
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.00605160
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 0x412d52
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x412c27
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 0x412cd6
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.00602b7d
int3