Function at 0x48c680
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 0x4d75dc
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5010c0]
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 - 0x22c], 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 0x48c895
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x48c6f4
push 3
push 0x4ec954
call fcn.00404b80
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x48d248
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x230], esi
mov dword [ebp - 4], 0
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x48d252
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 0x48c7a4
push 0x104
lea ecx, [ebp - 0x230]
call fcn.00404ae0
mov esi, dword [ebp - 0x230]
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 0x48c7de
push 0x400
lea ecx, [ebp - 0x234]
call fcn.00404ae0
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.004abf56
add esp, 8
test eax, eax
js 0x48d23e
cmp eax, dword [esi - 8]
jg 0x48d23e
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi - 8]
push edi
call fcn.004abf56
add esp, 8
test eax, eax
js 0x48d23e
cmp eax, dword [edi - 8]
jg 0x48d23e
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x238], ecx
jne 0x48c8cd
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 0x48c879
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 0x48c895
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.0049fb4b
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 0x48c8f2
mov byte [ebp - 4], al
jmp 0x48c85f
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x260], xmm0
cmp dword [eax - 0xc], 0
jne 0x48c98b
mov eax, dword [0x501e64]
cmp eax, 0xffffffff
jne 0x48c97b
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a15c0
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 0x4ecc00
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 [0x501e64], eax
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [ebp - 0x264], ecx
jmp 0x48c99b
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 0x48d1f1
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]
cmp dword [ebx + 0x40], 0xffffffff
lea eax, [ebx + 0x40]
je 0x48c9f7
mov ecx, dword [ebp - 0x240]
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 - 0x290]
push esi
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x48d1f1
mov ecx, dword [ebx + 0x20]
cmp dword [ecx - 0xc], 5
jle 0x48cb0b
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x48ca48
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x48ca48
mov ebx, dword [ebx + 0x20]
mov eax, ebx
jmp 0x48ca63
call fcn.00404f80
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 0x48d261
test eax, eax
je 0x48d23e
mov eax, dword [ecx]
push 2
push 5
call dword [eax]
test eax, eax
je 0x48d25c
cmp dword [eax + 8], 5
lea esi, [eax + 0x10]
jl 0x48d23e
xor eax, eax
mov dword [esi - 0xc], 5
mov word [esi + 0xa], ax
test esi, esi
jne 0x48caab
call fcn.004a4c8d
mov dword [eax], 0x16
call fcn.004a4b8f
jmp 0x48cabb
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, 0x4ecc18
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48caf6
test dx, dx
je 0x48caf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48caf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x48cad0
xor eax, eax
jmp 0x48cafb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48cb11
mov dword [ebp - 0x228], 1
jmp 0x48cb1b
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x228], 0
or ebx, 0xffffffff
test byte [ebp - 0x24c], 1
je 0x48cb3e
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48cb3e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x228], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x22c]
push 0
push 0
push 0
push edi
push dword [eax + 0x24]
push dword [ebp - 0x244]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x48cbd2
mov byte [ebp - 4], al
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48cb95
mov ecx, dword [edi]
push edi
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 0x48cbb7
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 0x48c895
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x48d261
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x23c], esi
mov eax, dword [eax + 0x28]
mov edi, dword [eax]
mov dword [ebp - 0x238], edi
cmp edi, eax
je 0x48cd14
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x48d248
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x220]
push 0x4ecc14
mov dword [ebp - 0x220], eax
call fcn.004048d0
test al, al
jne 0x48cc4b
push 1
push 0x4ecc14
lea ecx, [ebp - 0x220]
call fcn.00404b80
lea eax, [edi + 0x14]
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x250]
call fcn.00477ee0
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 0x48cc80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
je 0x48cc98
push 1
push 0x4e56f0
lea ecx, [ebp - 0x23c]
call fcn.00439ff0
mov eax, dword [edi + 0x10]
lea ecx, [ebp - 0x23c]
push dword [eax - 0xc]
push eax
call fcn.00439ff0
push 1
push 0x4ecc4c
lea ecx, [ebp - 0x23c]
call fcn.00439ff0
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x23c]
push dword [eax - 0xc]
push eax
call fcn.00439ff0
lea ecx, [ebp - 0x238]
call fcn.00403640
mov edx, dword [ebp - 0x250]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ccf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x238]
mov esi, dword [ebp - 0x23c]
cmp edi, dword [eax + 0x28]
jne 0x48cc08
mov edi, dword [ebp - 0x22c]
mov eax, 0
mov byte [ebp - 4], 2
mov edx, dword [edi + 0x34]
sub edx, dword [edi + 0x30]
push edx
cmovne eax, dword [edi + 0x30]
push eax
push dword [esi - 0xc]
push esi
push dword [ebp - 0x228]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x48d170
cmp dword [edi + 0x3c], 0
je 0x48ce41
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x48d26b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x238], edi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x254], 0x100
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x100
or eax, ecx
jge 0x48cda6
push 0x100
lea ecx, [ebp - 0x238]
call fcn.00404ae0
mov edi, dword [ebp - 0x238]
push 0
lea eax, [ebp - 0x254]
push eax
push edi
push 0x13
push dword [ebp - 0x228]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [edi - 8]
mov dword [ebp - 0x220], eax
push edi
call fcn.004abf56
add esp, 8
test eax, eax
js 0x48d23e
cmp eax, dword [edi - 8]
jg 0x48d23e
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x48d155
push edi
call fcn.004b48b5
add esp, 4
cmp eax, 0x12d
je 0x48cf91
cmp eax, 0x12e
je 0x48cf91
cmp eax, 0x12f
je 0x48cf91
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48ce3b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x22c]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48ce5c
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 0x48ce7d
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 0x48ce9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.0049f7ce
mov ecx, dword [ebp - 0x240]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp - 0x224]
push eax
call fcn.0048d3f0
push 4
call fcn.0049f7ce
mov ecx, dword [ebp - 0x244]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 8]
push dword [ebp - 0x224]
push eax
call fcn.0048d3f0
push 4
call fcn.0049f7ce
mov ecx, dword [ebp - 0x228]
add esp, 4
mov dword [eax], ecx
lea ecx, [edi + 0x10]
push dword [ebp - 0x224]
push eax
call fcn.0048d3f0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x48cf1e
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 0x48cf46
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 0x48cf6e
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 - 0x248]
call fcn.0048bc40
mov eax, dword [ebp - 0x248]
add esp, 0x18
jmp 0x48c8af
call fcn.00404f80
mov ecx, eax
test ecx, ecx
je 0x48d275
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 0x48cfe7
push 0x400
lea ecx, [ebp - 0x220]
call fcn.00404ae0
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.004abf56
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x48d23e
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x48d23e
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x224], edx
je 0x48d13a
cmp dword [eax - 0xc], edx
je 0x48d13a
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ecx + 0x20]
call fcn.00403390
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 - 0x22c]
call fcn.0048c680
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 0x48d0b6
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 0x48d0d1
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 0x48d0ec
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 0x48d10d
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 0x48d12f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x248]
jmp 0x48c8af
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d155
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 0x48d170
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 0x48d18b
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 0x48d1ac
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 0x48d1ce
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 0x48c895
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 0x48d20f
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 0x48d22b
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 0x48c895
push 0x80070057
call fcn.00404d50
push 0x80004005
call fcn.00404d50
push 0x80004005
call fcn.00404d50
call fcn.00403d00
push 0x80004005
call fcn.00404d50
push 0x80004005
call fcn.00404d50
push 0x80004005
call fcn.00404d50
int3