Function at 0x48e6b0
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 0x4db1fc
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5060c0]
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 - 0x24c], eax
mov dword [ebp - 0x22c], 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 0x48e8d3
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x238], ecx
cmp dword [eax - 0xc], 0
jne 0x48e732
push 3
push 0x4f1650
call fcn.00404cd0
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x48f27a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x228], edi
mov dword [ebp - 4], 0
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x48f284
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
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 [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x48e7e2
push 0x104
lea ecx, [ebp - 0x228]
call fcn.00404c30
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x298], edi
mov ecx, 1
mov dword [ebp - 0x294], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x48e81c
push 0x400
lea ecx, [ebp - 0x234]
call fcn.00404c30
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x27c], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x278], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x244], eax
push edi
call fcn.004aec96
add esp, 8
test eax, eax
js 0x48f270
cmp eax, dword [edi - 8]
jg 0x48f270
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.004aec96
add esp, 8
test eax, eax
js 0x48f270
cmp eax, dword [esi - 8]
jg 0x48f270
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x244], ecx
jne 0x48e90b
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 0x48e8b7
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 0x48e8d3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24c]
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.004a2700
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 0x48e930
mov byte [ebp - 4], al
jmp 0x48e89d
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x260], xmm0
cmp dword [eax - 0xc], 0
jne 0x48e9c9
mov eax, dword [0x506e74]
cmp eax, 0xffffffff
jne 0x48e9b9
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a4300
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 [0x506e74], eax
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [ebp - 0x264], ecx
jmp 0x48e9d9
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 0x48f223
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]
add ebx, 0x40
cmp dword [ebx], 0xffffffff
je 0x48ea34
mov ecx, dword [ebp - 0x240]
push 4
push ebx
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x290]
push edi
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x48f223
mov ebx, dword [ebp - 0x254]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 5
jle 0x48eb4b
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x48ea89
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x48ea89
mov ebx, dword [ebx]
mov eax, ebx
jmp 0x48eaa3
call fcn.004050c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ebx, dword [ebx]
mov ecx, eax
mov eax, ebx
test ecx, ecx
je 0x48f293
test eax, eax
je 0x48f270
mov eax, dword [ecx]
push 2
push 5
call dword [eax]
test eax, eax
je 0x48f28e
cmp dword [eax + 8], 5
lea edi, [eax + 0x10]
jl 0x48f270
xor eax, eax
mov dword [edi - 0xc], 5
mov word [edi + 0xa], ax
test edi, edi
jne 0x48eaeb
call fcn.004a79cd
mov dword [eax], 0x16
call fcn.004a78cf
jmp 0x48eafb
movq xmm0, qword [ebx]
movq qword [edi], xmm0
mov ax, word [ebx + 8]
mov word [edi + 8], ax
mov dword [ebp - 0x250], 5
mov ecx, 0x4f18f4
mov eax, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48eb36
test dx, dx
je 0x48eb32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48eb36
add eax, 4
add ecx, 4
test dx, dx
jne 0x48eb10
xor eax, eax
jmp 0x48eb3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48eb51
mov dword [ebp - 0x224], 1
jmp 0x48eb5b
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x224], 0
or ebx, 0xffffffff
test byte [ebp - 0x250], 1
je 0x48eb7e
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48eb7e
mov ecx, dword [edi]
push edi
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 - 0x238]
push 0
push 0
push 0
push esi
push dword [eax]
push dword [ebp - 0x248]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x48ec11
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48ebd4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48ebf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x248]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x48e8d3
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x48f293
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x230], esi
mov eax, dword [eax + 0x28]
mov edi, dword [eax]
mov dword [ebp - 0x244], edi
cmp edi, eax
je 0x48ed53
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x48f27a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x220]
push 0x4f18f0
mov dword [ebp - 0x220], eax
call fcn.00404a20
test al, al
jne 0x48ec8a
push 1
push 0x4f18f0
lea ecx, [ebp - 0x220]
call fcn.00404cd0
lea eax, [edi + 0x14]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x224]
call fcn.004796b0
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 0x48ecbf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x48ecd7
push 1
push 0x4e97b0
lea ecx, [ebp - 0x230]
call fcn.00439e80
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x230]
push dword [eax - 0xc]
push eax
call fcn.00439e80
push 1
push 0x4f193c
lea ecx, [ebp - 0x230]
call fcn.00439e80
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x230]
push dword [eax - 0xc]
push eax
call fcn.00439e80
lea ecx, [ebp - 0x244]
call fcn.00403720
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ed38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x244]
mov esi, dword [ebp - 0x230]
cmp edi, dword [eax + 0x28]
jne 0x48ec47
mov edi, dword [ebp - 0x23c]
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 - 0x238]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x48f1a2
cmp dword [edi + 0x3c], 0
je 0x48ee80
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x48f29d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x244], 0x100
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x100
or eax, ecx
jge 0x48ede5
push 0x100
lea ecx, [ebp - 0x224]
call fcn.00404c30
mov edi, dword [ebp - 0x224]
push 0
lea eax, [ebp - 0x244]
push eax
push edi
push 0x13
push dword [ebp - 0x238]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [edi - 8]
mov dword [ebp - 0x220], eax
push edi
call fcn.004aec96
add esp, 8
test eax, eax
js 0x48f270
cmp eax, dword [edi - 8]
jg 0x48f270
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x48f187
push edi
call fcn.004b75f5
add esp, 4
cmp eax, 0x12d
je 0x48efd0
cmp eax, 0x12e
je 0x48efd0
cmp eax, 0x12f
je 0x48efd0
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48ee7a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x23c]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48ee9b
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 - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48eebc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48eede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.004a2383
mov ecx, dword [ebp - 0x240]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp - 0x22c]
push eax
call fcn.0048f430
push 4
call fcn.004a2383
mov ecx, dword [ebp - 0x248]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 8]
push dword [ebp - 0x22c]
push eax
call fcn.0048f430
push 4
call fcn.004a2383
mov ecx, dword [ebp - 0x238]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 0x10]
push dword [ebp - 0x22c]
push eax
call fcn.0048f430
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x48ef5d
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 0x48ef85
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 0x48efad
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 - 0x24c]
call fcn.0048dcc0
mov eax, dword [ebp - 0x24c]
add esp, 0x18
jmp 0x48e8ed
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x48f2a7
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 0x48f026
push 0x400
lea ecx, [ebp - 0x220]
call fcn.00404c30
mov eax, dword [ebp - 0x220]
push 0
lea ecx, [ebp - 0x258]
push ecx
push eax
push 0x21
push dword [ebp - 0x238]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x220]
push dword [eax - 8]
push eax
call fcn.004aec96
mov edx, eax
add esp, 8
test edx, edx
js 0x48f270
mov eax, dword [ebp - 0x220]
cmp edx, dword [eax - 8]
jg 0x48f270
xor ecx, ecx
mov dword [eax - 0xc], edx
mov word [eax + edx*2], cx
cmp dword [ebp - 0x22c], ecx
je 0x48f16c
cmp dword [eax - 0xc], ecx
je 0x48f16c
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x220]
push eax
call fcn.00403470
push dword [ebp - 0x238]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x248]
call esi
push dword [ebp - 0x240]
call esi
mov eax, dword [ebp - 0x23c]
inc dword [eax + 0x44]
cmp dword [eax + 0x44], 0xa
jl 0x48f120
lea ecx, [ebp - 0x220]
call fcn.004034e0
lea ecx, [ebp - 0x224]
call fcn.004034e0
lea ecx, [ebp - 0x230]
call fcn.004034e0
lea ecx, [ebp - 0x234]
call fcn.004034e0
lea ecx, [ebp - 0x228]
call fcn.004034e0
push dword [ebp - 0x238]
call esi
push dword [ebp - 0x248]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x48e8d3
mov esi, dword [ebp - 0x24c]
mov ecx, eax
push esi
call fcn.0048e6b0
lea ecx, [ebp - 0x220]
call fcn.004034e0
lea ecx, [ebp - 0x224]
call fcn.004034e0
lea ecx, [ebp - 0x230]
call fcn.004034e0
lea ecx, [ebp - 0x234]
call fcn.004034e0
lea ecx, [ebp - 0x228]
call fcn.004034e0
mov eax, esi
jmp 0x48e8ed
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48f187
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 0x48f1a2
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 0x48f1bd
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 - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48f1de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x48f200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x238]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x248]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x48e8d3
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 0x48f241
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 0x48f25d
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 0x48e8d3
push 0x80070057
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
call fcn.00403e20
push 0x80004005
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
push 0x80004005
call fcn.00404ea0
int3