Function at 0x412840
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 0x661e9d
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00602c00
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.00605e30
add esp, 0xc
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x412f46
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.00402ad0
test al, al
jne 0x4128ed
push 0
push 0x686f7f
lea ecx, [ebp - 0x1020]
call fcn.00408790
mov dword [ebp - 4], 1
mov dword [ebp - 0x103c], 0xc350
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x412f50
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.00423a0b
mov ecx, eax
test ecx, ecx
je 0x412f5a
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 0x41294a
xor ecx, ecx
jmp 0x412959
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412950
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x102c]
call fcn.00408790
mov edi, dword [ebp - 0x102c]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x412f3c
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x41299a
push esi
lea ecx, [ebp - 0x102c]
call fcn.00403540
mov edi, dword [ebp - 0x102c]
lea eax, [esi + 1]
push eax
push edi
call fcn.00627078
push eax
call fcn.0040b820
add esp, 0xc
cmp esi, dword [edi - 8]
jg 0x412f3c
mov eax, dword [ebp - 0x1044]
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov dword [eax], 0
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x412f64
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1014], esi
mov byte [ebp - 4], 4
call fcn.00423a0b
mov ecx, eax
test ecx, ecx
je 0x412f6e
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 0x412c12
push str.HTTP:__
push edi
call fcn.00626f27
add esp, 8
test eax, eax
je 0x412bba
sub eax, edi
cmp eax, 0xffffffff
jle 0x412bba
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 0x412bae
push 0x687b8c
push esi
call fcn.00626f27
add esp, 8
test eax, eax
je 0x412bae
sub eax, esi
cmp eax, 0xffffffff
jle 0x412bae
cmp dword [esi - 4], 1
jle 0x412aa4
push dword [esi - 0xc]
lea ecx, [ebp - 0x1014]
call fcn.00402c10
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 0x412ab0
sub ecx, edx
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x101c], ecx
jge 0x412aca
or edx, 0xffffffff
jmp 0x412aec
push 0x687b8c
push esi
call fcn.00626f27
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 0x412b12
or ecx, 0xffffffff
jmp 0x412b2e
push 0x687b8c
push esi
call fcn.00626f27
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.0040a060
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 0x412b75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x101c]
push esi
call fcn.00625d4b
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 0x412ba6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1014]
jmp 0x412c2a
mov dword [ebp - 0x1018], 0x50
jmp 0x412c2a
cmp dword [edi - 0xc], 0
jl 0x412c12
push str.HTTPS:__
push edi
call fcn.00626f27
add esp, 8
test eax, eax
je 0x412c12
sub eax, edi
cmp eax, 0xffffffff
jle 0x412c12
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 0x412c2a
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.0040b8b0
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 0x412d1f
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 0x412d13
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 0x412dd2
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 0x412d41
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 0x412d5f
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 0x412d7a
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 0x412d92
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 0x412db4
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.0060266e
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 0x412e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x412d07
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 0x412df4
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x412edd
cmp eax, 0x1000
jae 0x412f78
mov byte [ebp + eax - 0x1010], 0
add eax, dword [ebp - 0x1024]
push eax
mov eax, dword [ebp - 0x1040]
push dword [eax]
call fcn.00633ba9
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.00605330
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 0x412e32
push dword [ebp - 0x101c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x412d07
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 0x412db6
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.00602d4d
int3