Function at 0x48af90
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 0x4d34ac
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5000a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x23c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x228], eax
lea eax, [ebx + 0x20]
mov dword [ebp - 0x254], eax
mov eax, dword [eax]
mov dword [ebp - 0x250], 0
cmp dword [eax - 0xc], 0
je 0x48b1b3
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x24c], ecx
cmp dword [eax - 0xc], 0
jne 0x48b012
push 3
push 0x4ec234
call fcn.00404960
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x48bb51
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
mov dword [ebp - 4], 0
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x48bb5b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2a8], xmm0
mov ecx, 1
mov dword [ebp - 0x2a0], 0
movlpd qword [ebp - 0x294], xmm0
movlpd qword [ebp - 0x28c], xmm0
mov dword [ebp - 0x284], 0
movlpd qword [ebp - 0x278], xmm0
mov dword [ebp - 0x2ac], 0x3c
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x48b0c2
push 0x104
lea ecx, [ebp - 0x230]
call fcn.004048c0
mov edi, dword [ebp - 0x230]
mov dword [ebp - 0x29c], edi
mov ecx, 1
mov dword [ebp - 0x298], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x48b0fc
push 0x400
lea ecx, [ebp - 0x22c]
call fcn.004048c0
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x280], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x27c], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x234], eax
push edi
call fcn.004a8382
add esp, 8
test eax, eax
js 0x48bb47
cmp eax, dword [edi - 8]
jg 0x48bb47
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.004a8382
add esp, 8
test eax, eax
js 0x48bb47
cmp eax, dword [esi - 8]
jg 0x48bb47
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x234], ecx
jne 0x48b1eb
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 0x48b197
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 0x48b1b3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x248]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d3ed
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 edx, eax
mov dword [ebp - 0x240], edx
test edx, edx
jne 0x48b210
mov byte [ebp - 4], al
jmp 0x48b17d
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x264], xmm0
cmp dword [eax - 0xc], 0
jne 0x48b2a9
mov eax, dword [0x500e04]
cmp eax, 0xffffffff
jne 0x48b299
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0049edd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.full.data
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x240]
neg eax
sbb eax, eax
neg eax
mov dword [0x500e04], eax
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [ebp - 0x268], ecx
jmp 0x48b2b9
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], 3
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x268]
push 0xc
push eax
push 0x26
push edx
call ebx
test eax, eax
je 0x48bafa
push 8
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x26c], 0
call ebx
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x294]
push edi
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x48bafa
mov ebx, dword [ebp - 0x254]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 5
jle 0x48b41e
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x48b351
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x48b351
mov eax, dword [ebx]
mov dword [ebp - 0x224], eax
jmp 0x48b36f
call fcn.00404d30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [ebx]
mov dword [ebp - 0x224], eax
test ecx, ecx
je 0x48bb6a
test eax, eax
je 0x48bb47
mov eax, dword [ecx]
push 2
push 5
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x48bb65
cmp dword [ebx + 8], 5
lea ecx, [ebx + 0x10]
jl 0x48bb47
xor eax, eax
mov dword [ecx - 0xc], 5
mov word [ecx + 0xa], ax
test ecx, ecx
jne 0x48b3b9
call fcn.004a1bc9
mov dword [eax], 0x16
call fcn.004a1aef
jmp 0x48b3cf
mov eax, dword [ebp - 0x224]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov ax, word [eax + 8]
mov word [ecx + 8], ax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x250], 5
mov edx, 0x4ec6fc
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x48b409
test bx, bx
je 0x48b405
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x48b409
add ecx, 4
add edx, 4
test bx, bx
jne 0x48b3e3
xor ecx, ecx
jmp 0x48b40e
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x48b424
mov dword [ebp - 0x224], 1
jmp 0x48b42e
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x224], 0
or ebx, 0xffffffff
test byte [ebp - 0x250], 1
je 0x48b451
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b451
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x224], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x24c]
push 0
push 0
push 0
push esi
push dword [eax]
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x48b4de
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48b4a7
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 0x48b4c3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x244]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x48b1b3
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x48bb6a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x238], edi
mov eax, dword [eax + 0x28]
mov esi, dword [eax]
mov dword [ebp - 0x234], esi
cmp esi, eax
je 0x48b620
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x48bb51
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x220]
push 0x4ec6f8
mov dword [ebp - 0x220], eax
call fcn.00404690
test al, al
jne 0x48b557
push 1
push 0x4ec6f8
lea ecx, [ebp - 0x220]
call fcn.00404960
lea eax, [esi + 0x14]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x24c]
call fcn.00475f70
mov edx, dword [ebp - 0x220]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b58c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
je 0x48b5a4
push 1
push 0x4e54b0
lea ecx, [ebp - 0x238]
call fcn.004582a0
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x238]
push dword [eax - 0xc]
push eax
call fcn.004582a0
push 1
push 0x4ec744
lea ecx, [ebp - 0x238]
call fcn.004582a0
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x238]
push dword [eax - 0xc]
push eax
call fcn.004582a0
lea ecx, [ebp - 0x234]
call fcn.00403430
mov edx, dword [ebp - 0x24c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b605
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
cmp esi, dword [eax + 0x28]
jne 0x48b514
mov esi, dword [ebp - 0x23c]
mov eax, 0
mov byte [ebp - 4], 2
mov edx, dword [esi + 0x34]
sub edx, dword [esi + 0x30]
push edx
cmovne eax, dword [esi + 0x30]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x48ba79
cmp dword [esi + 0x3c], 0
je 0x48b74d
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x48bb74
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x258], 0x100
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x48b6b2
push 0x100
lea ecx, [ebp - 0x234]
call fcn.004048c0
mov esi, dword [ebp - 0x234]
push 0
lea eax, [ebp - 0x258]
push eax
push esi
push 0x13
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [esi - 8]
mov dword [ebp - 0x220], eax
push esi
call fcn.004a8382
add esp, 8
test eax, eax
js 0x48bb47
cmp eax, dword [esi - 8]
jg 0x48bb47
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x48ba5e
push esi
call fcn.004b09f7
add esp, 4
cmp eax, 0x12d
je 0x48b89d
cmp eax, 0x12e
je 0x48b89d
cmp eax, 0x12f
je 0x48b89d
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48b747
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x23c]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48b768
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b789
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48b7ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.0049cf47
mov ecx, dword [ebp - 0x240]
add esp, 4
mov dword [eax], ecx
mov ecx, esi
push dword [ebp - 0x228]
push eax
call fcn.0048bd00
push 4
call fcn.0049cf47
mov ecx, dword [ebp - 0x244]
add esp, 4
mov dword [eax], ecx
lea ecx, [esi + 8]
push dword [ebp - 0x228]
push eax
call fcn.0048bd00
push 4
call fcn.0049cf47
mov ecx, dword [ebp - 0x224]
add esp, 4
mov dword [eax], ecx
lea ecx, [esi + 0x10]
push dword [ebp - 0x228]
push eax
call fcn.0048bd00
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48b82a
lock inc dword [eax + 4]
mov eax, dword [esi + 0x10]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x48b852
lock inc dword [eax + 4]
mov eax, dword [esi + 8]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x48b87a
lock inc dword [eax + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x248]
call fcn.0048a5b0
mov eax, dword [ebp - 0x248]
add esp, 0x18
jmp 0x48b1cd
call fcn.00404d30
mov ecx, eax
test ecx, ecx
je 0x48bb7e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 4
mov edx, 1
mov dword [ebp - 0x25c], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x48b8f3
push 0x400
lea ecx, [ebp - 0x220]
call fcn.004048c0
mov eax, dword [ebp - 0x220]
push 0
lea ecx, [ebp - 0x25c]
push ecx
push eax
push 0x21
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x220]
push dword [eax - 8]
push eax
call fcn.004a8382
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x48bb47
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x48bb47
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x228], edx
je 0x48ba43
cmp dword [eax - 0xc], edx
je 0x48ba43
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x220]
push eax
call fcn.00403180
push dword [ebp - 0x224]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x244]
call ebx
push dword [ebp - 0x240]
call ebx
push dword [ebp - 0x248]
mov ecx, dword [ebp - 0x23c]
call fcn.0048af90
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b9bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48b9da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48b9f5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ba16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48ba38
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
jmp 0x48b1cd
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ba5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 2
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48ba79
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48ba94
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48bab5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48bad7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x244]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x48b1b3
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48bb18
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 0x48bb34
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x240]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x48b1b3
push 0x80070057
call fcn.00404b10
push 0x80004005
call fcn.00404b10
push 0x80004005
call fcn.00404b10
call fcn.00403b10
push 0x80004005
call fcn.00404b10
push 0x80004005
call fcn.00404b10
push 0x80004005
call fcn.00404b10
int3