Function at 0x48a520
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 0x4d637c
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x4fe0c0]
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 - 0x230], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x224], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x24c], 0
cmp dword [eax - 0xc], 0
je 0x48a735
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x48a594
push 3
push 0x4ea444
call fcn.004049e0
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x48b0c3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x48b0cd
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x234], edi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2a4], xmm0
mov ecx, 1
mov dword [ebp - 0x29c], 0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
mov dword [ebp - 0x280], 0
movlpd qword [ebp - 0x274], xmm0
mov dword [ebp - 0x2a8], 0x3c
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x48a644
push 0x104
lea ecx, [ebp - 0x22c]
call fcn.00404940
mov esi, dword [ebp - 0x22c]
mov dword [ebp - 0x298], esi
mov ecx, 1
mov dword [ebp - 0x294], 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
jge 0x48a67e
push 0x400
lea ecx, [ebp - 0x234]
call fcn.00404940
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x27c], edi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x278], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [esi - 8]
mov dword [ebp - 0x238], eax
push esi
call fcn.004ab044
add esp, 8
test eax, eax
js 0x48b0b9
cmp eax, dword [esi - 8]
jg 0x48b0b9
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi - 8]
push edi
call fcn.004ab044
add esp, 8
test eax, eax
js 0x48b0b9
cmp eax, dword [edi - 8]
jg 0x48b0b9
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x238], ecx
jne 0x48a76d
mov byte [ebp - 4], cl
or ebx, 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48a719
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48a735
mov ecx, dword [esi]
push esi
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.0049cdfb
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 0x48a792
mov byte [ebp - 4], al
jmp 0x48a6ff
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x260], xmm0
cmp dword [eax - 0xc], 0
jne 0x48a82b
mov eax, dword [0x4fee64]
cmp eax, 0xffffffff
jne 0x48a81b
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0049e870
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 0x4ea908
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 [0x4fee64], eax
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [ebp - 0x264], ecx
jmp 0x48a83b
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], 3
push 0xc
lea eax, [ebp - 0x264]
push eax
push 0x26
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x48b06c
push 8
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x268], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x290]
push esi
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x48b06c
mov ecx, dword [ebx + 0x20]
cmp dword [ecx - 0xc], 5
jle 0x48a98c
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x48a8cd
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x48a8cd
mov ebx, dword [ebx + 0x20]
mov eax, ebx
jmp 0x48a8e8
call fcn.00404dd0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ebx, dword [ebx + 0x20]
mov ecx, eax
mov eax, ebx
test ecx, ecx
je 0x48b0dc
test eax, eax
je 0x48b0b9
mov eax, dword [ecx]
push 2
push 5
call dword [eax]
test eax, eax
je 0x48b0d7
cmp dword [eax + 8], 5
lea esi, [eax + 0x10]
jl 0x48b0b9
xor eax, eax
mov dword [esi - 0xc], 5
mov word [esi + 0xa], ax
test esi, esi
jne 0x48a930
call fcn.004a1f3d
mov dword [eax], 0x16
call fcn.004a1e3f
jmp 0x48a940
movq xmm0, qword [ebx]
movq qword [esi], xmm0
mov ax, word [ebx + 8]
mov word [esi + 8], ax
mov dword [ebp - 0x24c], 5
mov ecx, 0x4ea920
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48a977
test dx, dx
je 0x48a973
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48a977
add eax, 4
add ecx, 4
test dx, dx
jne 0x48a951
xor eax, eax
jmp 0x48a97c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48a992
mov dword [ebp - 0x228], 1
jmp 0x48a99c
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x228], 0
or ebx, 0xffffffff
test byte [ebp - 0x24c], 1
je 0x48a9bf
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48a9bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x228], 0
mov ecx, 0xc81000
mov esi, dword [ebp - 0x230]
mov eax, 0x680000
push 1
cmovne eax, ecx
push eax
push 0
push 0
push 0
push edi
push dword [esi + 0x24]
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x48aa53
mov byte [ebp - 4], al
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48aa16
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48aa38
mov ecx, dword [edx]
push edx
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 0x48a735
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x48b0dc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x23c], edi
mov esi, dword [eax]
mov dword [ebp - 0x238], esi
cmp esi, eax
je 0x48ab8f
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x48b0c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x220]
push 0x4ea91c
mov dword [ebp - 0x220], eax
call fcn.00404730
test al, al
jne 0x48aac6
push 1
push 0x4ea91c
lea ecx, [ebp - 0x220]
call fcn.004049e0
lea eax, [esi + 0x14]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x250]
call fcn.004752e0
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 0x48aafb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
je 0x48ab13
push 1
push 0x4e36d0
lea ecx, [ebp - 0x23c]
call fcn.00457680
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x23c]
push dword [eax - 0xc]
push eax
call fcn.00457680
push 1
push 0x4ea954
lea ecx, [ebp - 0x23c]
call fcn.00457680
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x23c]
push dword [eax - 0xc]
push eax
call fcn.00457680
lea ecx, [ebp - 0x238]
call fcn.004034a0
mov edx, dword [ebp - 0x250]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ab74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
mov esi, dword [ebp - 0x238]
mov edi, dword [ebp - 0x23c]
cmp esi, dword [eax + 0x28]
jne 0x48aa83
mov esi, dword [ebp - 0x230]
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 - 0x228]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x48afeb
cmp dword [esi + 0x3c], 0
je 0x48acbc
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x48b0e6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x238], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x254], 0x100
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x48ac21
push 0x100
lea ecx, [ebp - 0x238]
call fcn.00404940
mov esi, dword [ebp - 0x238]
push 0
lea eax, [ebp - 0x254]
push eax
push esi
push 0x13
push dword [ebp - 0x228]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [esi - 8]
mov dword [ebp - 0x220], eax
push esi
call fcn.004ab044
add esp, 8
test eax, eax
js 0x48b0b9
cmp eax, dword [esi - 8]
jg 0x48b0b9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x48afd0
push esi
call fcn.004b3995
add esp, 4
cmp eax, 0x12d
je 0x48ae0c
cmp eax, 0x12e
je 0x48ae0c
cmp eax, 0x12f
je 0x48ae0c
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48acb6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x230]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48acd7
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 - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48acf8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48ad1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.0049ca7e
mov ecx, dword [ebp - 0x240]
add esp, 4
mov dword [eax], ecx
mov ecx, esi
push dword [ebp - 0x224]
push eax
call fcn.0048b270
push 4
call fcn.0049ca7e
mov ecx, dword [ebp - 0x244]
add esp, 4
mov dword [eax], ecx
lea ecx, [esi + 8]
push dword [ebp - 0x224]
push eax
call fcn.0048b270
push 4
call fcn.0049ca7e
mov ecx, dword [ebp - 0x228]
add esp, 4
mov dword [eax], ecx
lea ecx, [esi + 0x10]
push dword [ebp - 0x224]
push eax
call fcn.0048b270
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ad99
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 0x48adc1
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 0x48ade9
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.00489ae0
mov eax, dword [ebp - 0x248]
add esp, 0x18
jmp 0x48a74f
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x48b0f0
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 - 0x258], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x48ae62
push 0x400
lea ecx, [ebp - 0x220]
call fcn.00404940
mov eax, dword [ebp - 0x220]
push 0
lea ecx, [ebp - 0x258]
push ecx
push eax
push 0x21
push dword [ebp - 0x228]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x220]
push dword [eax - 8]
push eax
call fcn.004ab044
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x48b0b9
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x48b0b9
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x224], edx
je 0x48afb5
cmp dword [eax - 0xc], edx
je 0x48afb5
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ecx + 0x20]
call fcn.004031f0
push dword [ebp - 0x228]
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 - 0x230]
call fcn.0048a520
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 0x48af31
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 0x48af4c
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 0x48af67
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 - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48af88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48afaa
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
jmp 0x48a74f
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48afd0
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 0x48afeb
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 0x48b006
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 - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48b027
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48b049
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x228]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x244]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x48a735
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48b08a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48b0a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x240]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x48a735
push 0x80070057
call fcn.00404bb0
push 0x80004005
call fcn.00404bb0
push 0x80004005
call fcn.00404bb0
call fcn.00403b60
push 0x80004005
call fcn.00404bb0
push 0x80004005
call fcn.00404bb0
push 0x80004005
call fcn.00404bb0
int3