Function at 0x491790
Capabilities:
Check if file exists
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d956d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x655140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
lea eax, [ebx + 0x20]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x491971
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x18], ecx
cmp dword [eax - 0xc], 0
jne 0x4917f4
push 3
push 0x6344c4
call fcn.00408fa0
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4921be
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4921c8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0xa0], xmm0
mov ecx, 1
mov dword [ebp - 0x98], 0
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
mov dword [ebp - 0x7c], 0
movlpd qword [ebp - 0x70], xmm0
mov dword [ebp - 0xa4], 0x3c
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x491892
push 0x104
lea ecx, [ebp - 0x28]
call fcn.00408f30
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x94], edi
mov ecx, 1
mov dword [ebp - 0x90], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4918c6
push 0x400
lea ecx, [ebp - 0x24]
call fcn.00408f30
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x78], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x74], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x1c], eax
push edi
call fcn.004b9625
add esp, 8
test eax, eax
js 0x4921b4
cmp eax, dword [edi - 8]
jg 0x4921b4
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.004b9625
add esp, 8
test eax, eax
js 0x4921b4
cmp eax, dword [esi - 8]
jg 0x4921b4
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x1c], ecx
jne 0x49199c
mov byte [ebp - 4], cl
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491955
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x491971
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x4919bb
mov byte [ebp - 4], al
jmp 0x49193b
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x491a24
cmp dword [0x65e938], ebx
jne 0x491a13
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0048ff30
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x1c]
neg eax
sbb eax, eax
add edx, 0xfffffff0
neg eax
mov dword [0x65e938], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491a10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp dword [0x65e938], 1
setne al
mov dword [ebp - 0x60], eax
jmp 0x491a2e
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 3
push 0xc
lea eax, [ebp - 0x60]
push eax
push 0x26
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x491a88
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491a5c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x491a78
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x491971
push 8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x20]
add eax, 0x40
cmp dword [eax], 0xffffffff
je 0x491ac0
mov ecx, dword [ebp - 0x2c]
push 4
push eax
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x8c]
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x491a41
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 5
jle 0x491b46
push 5
lea eax, [ebp - 0x1c]
push eax
call fcn.00408420
mov dword [ebp - 0x44], 1
mov ecx, 0x63bde4
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x491b36
test dx, dx
je 0x491b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x491b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x491b10
xor eax, eax
jmp 0x491b3b
sbb eax, eax
or eax, 1
mov dword [ebp - 0x14], 1
test eax, eax
je 0x491b4d
mov dword [ebp - 0x14], 0
test byte [ebp - 0x44], 1
je 0x491b6d
mov edx, dword [ebp - 0x1c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491b6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
push esi
push dword [eax]
push dword [ebp - 0x3c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x491be8
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491bb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x491bd3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x491971
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4921d2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], esi
mov eax, dword [eax + 0x28]
mov edi, dword [eax]
mov dword [ebp - 0x1c], edi
cmp edi, eax
je 0x491cf1
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4921be
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
push 0x63bdf0
mov dword [ebp - 0x14], eax
call fcn.00408c10
test al, al
jne 0x491c4f
push 1
push 0x63bdf0
lea ecx, [ebp - 0x14]
call fcn.00408fa0
lea eax, [edi + 0x14]
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00491030
mov edx, dword [ebp - 0x14]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491c7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x491c90
push 1
push 0x636dc8
lea ecx, [ebp - 0x30]
call fcn.00409100
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x30]
push dword [eax - 0xc]
push eax
call fcn.00409100
push 1
push 0x63be1c
lea ecx, [ebp - 0x30]
call fcn.00409100
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push dword [eax - 0xc]
push eax
call fcn.00409100
lea ecx, [ebp - 0x1c]
call fcn.00425d90
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491cdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
cmp edi, dword [eax + 0x28]
jne 0x491c15
mov edi, dword [ebp - 0x20]
mov ecx, 0
mov byte [ebp - 4], 2
mov edx, dword [edi + 0x34]
sub edx, dword [edi + 0x30]
push edx
cmovne ecx, dword [edi + 0x30]
push ecx
push dword [esi - 0xc]
push esi
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x492142
cmp dword [edi + 0x3c], 0
je 0x491dfd
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4921dc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x48], 0x100
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x100
or eax, ecx
jge 0x491d71
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.00408f30
mov edi, dword [ebp - 0x1c]
push 0
lea eax, [ebp - 0x48]
push eax
push edi
push 0x13
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [edi - 8]
mov dword [ebp - 0x18], eax
push edi
call fcn.004b9625
add esp, 8
test eax, eax
js 0x4921b4
cmp eax, dword [edi - 8]
jg 0x4921b4
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x18], ecx
je 0x492127
push edi
call fcn.004c2225
add esp, 4
cmp eax, 0x12d
je 0x491f3e
cmp eax, 0x12e
je 0x491f3e
cmp eax, 0x12f
je 0x491f3e
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x491dfa
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491e18
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491e36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x491e55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.004b4016
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp + 8]
push eax
call fcn.00492300
push 4
call fcn.004b4016
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 8]
push dword [ebp + 8]
push eax
call fcn.00492300
push 4
call fcn.004b4016
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 0x10]
push dword [ebp + 8]
push eax
call fcn.00492300
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x491ec2
lock inc dword [eax + 4]
mov eax, dword [edi + 0x10]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [edi + 0x14]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x491eea
lock inc dword [eax + 4]
mov eax, dword [edi + 8]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x491f12
lock inc dword [eax + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 8]
call fcn.00490dc0
mov eax, dword [ebp + 8]
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00402de0
mov ecx, eax
test ecx, ecx
je 0x4921e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov edx, 1
mov dword [ebp - 0x4c], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x491f88
push 0x400
lea ecx, [ebp - 0x14]
call fcn.00408f30
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x4c]
push ecx
push eax
push 0x21
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ecx - 8]
push ecx
call fcn.004b9625
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4921b4
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x4921b4
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x18], edx
je 0x49210c
cmp dword [eax - 0xc], edx
je 0x49210c
mov edx, dword [ebp - 0x38]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx]
sub edx, 0x10
mov dword [ebp - 0x54], edx
cmp ecx, edx
je 0x492044
cmp dword [edx + 0xc], 0
lea eax, [edx + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
jl 0x492038
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x492038
mov ecx, dword [ebp - 0x18]
call fcn.00408e50
mov dword [ebp - 0x40], eax
mov ecx, ebx
mov eax, dword [ebp - 0x50]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49202b
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [ecx], eax
jmp 0x492044
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x38]
push eax
call fcn.00408fa0
push dword [ebp - 0x34]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x3c]
call ebx
push dword [ebp - 0x2c]
call ebx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
call fcn.00491790
or ebx, 0xffffffff
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492082
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49209d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4920b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4920d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4920f5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x492127
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 2
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x492142
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49215d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49217b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x49219a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x491971
push 0x80070057
call fcn.00402a80
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
push 0x80004005
call fcn.00402a80
int3