Function at 0x488940
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 0x4d1c42
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4fe0a8]
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 dword [ebp - 0x230], ecx
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x20]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x258], ebx
cmp dword [eax - 0xc], 0
je 0x488b58
mov eax, dword [ecx + 0x24]
add ecx, 0x24
mov dword [ebp - 0x254], ecx
cmp dword [eax - 0xc], 0
jne 0x4889c0
push 3
push 0x4ea3f4
call fcn.00404980
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x489804
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x234], esi
mov dword [ebp - 4], 0
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x48980e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x240], edi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x2bc], xmm0
mov ecx, 1
mov dword [ebp - 0x2b4], 0
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
mov dword [ebp - 0x298], 0
movlpd qword [ebp - 0x28c], xmm0
mov dword [ebp - 0x2c0], 0x3c
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x488a70
push 0x104
lea ecx, [ebp - 0x234]
call fcn.004048e0
mov esi, dword [ebp - 0x234]
mov dword [ebp - 0x2b0], esi
mov ecx, 1
mov dword [ebp - 0x2ac], 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
jge 0x488aaa
push 0x400
lea ecx, [ebp - 0x240]
call fcn.004048e0
mov edi, dword [ebp - 0x240]
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x294], edi
push eax
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x290], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.004a6ca5
add esp, 8
test eax, eax
js 0x4897fa
cmp eax, dword [esi - 8]
jg 0x4897fa
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi - 8]
push edi
call fcn.004a6ca5
add esp, 8
test eax, eax
js 0x4897fa
cmp eax, dword [edi - 8]
jg 0x4897fa
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
test ebx, ebx
jne 0x488b90
add edi, 0xfffffff0
mov byte [ebp - 4], cl
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x488b3c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x488b58
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x250]
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.0049d3dd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x230]
xorps xmm0, xmm0
movlpd qword [ebp - 0x278], xmm0
or ebx, 0xffffffff
mov eax, dword [ecx + 0x1c]
cmp dword [eax - 0xc], 0
jne 0x489032
mov eax, dword [0x4fee04]
cmp eax, ebx
jne 0x488c1b
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0049edc0
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]
neg eax
sbb eax, eax
neg eax
mov dword [0x4fee04], eax
xor ecx, ecx
mov edx, str.full.data
cmp eax, 1
setne cl
mov dword [ebp - 0x27c], ecx
push ecx
lea ecx, [ebp - 0x228]
call fcn.00474490
add esp, 4
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x228]
test eax, eax
mov eax, ebx
sete byte [ebp - 0x239]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488c6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x239], 0
je 0x488fa9
call fcn.0048e660
mov ebx, eax
lea eax, [ebx + 4]
push eax
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x228]
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0048e660
cmp ebx, 2
mov ebx, eax
lea eax, [ebx + 4]
push eax
jne 0x488f7c
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
lea eax, [ebx + 0x1c]
push eax
lea ecx, [ebp - 0x268]
call fcn.0048e5b0
lea eax, [ebx + 4]
mov dword [ebp - 0x248], 4
push eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call eax
mov byte [ebp - 4], 2
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x489818
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
push dword [ebp - 0x25c]
push dword [ebp - 0x260]
push 0x4ea898
push eax
call fcn.0041a070
mov eax, dword [ebp - 0x230]
add esp, 0x10
push 0
push 0
push dword [ebp - 0x220]
push 3
push dword [eax + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x488d81
mov byte [ebp - 4], 2
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 0x488d6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x268]
call fcn.00471bc0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
jmp 0x488b28
mov ebx, dword [ebp - 0x268]
mov ecx, 0x4e2530
mov eax, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x488db6
test dx, dx
je 0x488db2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x488db6
add eax, 4
add ecx, 4
test dx, dx
jne 0x488d90
xor eax, eax
jmp 0x488dbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x488dd9
mov eax, dword [ebx - 0xc]
mov ecx, dword [ebp - 0x238]
add eax, eax
push eax
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x1c
push ecx
call ebx
jmp 0x488ddf
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x264]
mov ecx, 0x4e2530
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x488e16
test dx, dx
je 0x488e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x488e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x488df0
xor eax, eax
jmp 0x488e1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x488e36
mov ecx, dword [ebp - 0x264]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 0x1d
push dword [ebp - 0x238]
call ebx
mov byte [ebp - 4], 2
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 0x488e5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488e7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x260]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488e98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x264]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488eb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x268]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488ed2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 8
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x280], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x230]
add eax, 0x40
cmp dword [eax], 0xffffffff
je 0x488f18
push 4
push eax
push 2
push dword [ebp - 0x238]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x2a8]
push esi
push dword [ebp - 0x238]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x488fe8
mov esi, dword [ebp - 0x258]
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 5
jle 0x48911b
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x489047
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x489047
mov eax, dword [esi]
mov dword [ebp - 0x220], eax
jmp 0x489065
mov dword [ebp - 0x228], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call eax
push dword [ebp - 0x228]
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebx]
call eax
test ebx, ebx
je 0x488fa6
mov dword [ebp - 0x27c], 0
or ebx, 0xffffffff
mov eax, dword [ebp - 0x230]
push 0
push 0
push 0
push 0
push dword [eax + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x488d75
push 0xc
lea ecx, [ebp - 0x27c]
push ecx
push 0x26
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x488ed2
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x489003
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 0x48901f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x238]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x488b58
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], 3
jmp 0x488fa9
call fcn.00404d50
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x220], eax
test ecx, ecx
je 0x489827
test eax, eax
je 0x4897fa
mov eax, dword [ecx]
push 2
push 5
call dword [eax]
test eax, eax
je 0x489822
cmp dword [eax + 8], 5
lea esi, [eax + 0x10]
jl 0x4897fa
xor eax, eax
mov dword [esi - 0xc], 5
mov word [esi + 0xa], ax
test esi, esi
jne 0x4890ad
call fcn.004a1bb9
mov dword [eax], 0x16
call fcn.004a1adf
jmp 0x4890c3
mov eax, dword [ebp - 0x220]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov ax, word [eax + 8]
mov word [esi + 8], ax
mov eax, dword [ebp - 0x248]
mov ecx, str.https
or eax, 9
mov dword [ebp - 0x248], eax
mov eax, esi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x489106
test dx, dx
je 0x489102
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x489106
add eax, 4
add ecx, 4
test dx, dx
jne 0x4890e0
xor eax, eax
jmp 0x48910b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x489121
mov dword [ebp - 0x220], 1
jmp 0x48912b
mov esi, dword [ebp - 0x22c]
mov dword [ebp - 0x220], 0
test byte [ebp - 0x248], 1
je 0x48914b
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48914b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x220], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x254]
push 0
push 0
push 0
push edi
push dword [eax]
push dword [ebp - 0x24c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x4891de
mov byte [ebp - 4], al
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4891a1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4891c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x238]
call esi
jmp 0x488b58
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x489827
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x244], edi
mov eax, dword [eax + 0x28]
mov esi, dword [eax]
mov dword [ebp - 0x228], esi
cmp esi, eax
je 0x489320
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x489804
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x224]
push 0x4ea894
mov dword [ebp - 0x224], eax
call fcn.004046b0
test al, al
jne 0x489257
push 1
push 0x4ea894
lea ecx, [ebp - 0x224]
call fcn.00404980
lea eax, [esi + 0x14]
push eax
lea edx, [ebp - 0x224]
lea ecx, [ebp - 0x254]
call fcn.00473420
mov edx, dword [ebp - 0x224]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48928c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
je 0x4892a4
push 1
push 0x4e27d0
lea ecx, [ebp - 0x244]
call fcn.00457960
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x244]
push dword [eax - 0xc]
push eax
call fcn.00457960
push 1
push 0x4ea904
lea ecx, [ebp - 0x244]
call fcn.00457960
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x244]
push dword [eax - 0xc]
push eax
call fcn.00457960
lea ecx, [ebp - 0x228]
call fcn.00403430
mov edx, dword [ebp - 0x254]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489305
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x244]
cmp esi, dword [eax + 0x28]
jne 0x489214
mov esi, dword [ebp - 0x230]
mov eax, 0
mov byte [ebp - 4], 4
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 - 0x220]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x489779
cmp dword [esi + 0x3c], 0
je 0x489447
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x489831
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 5
mov ecx, 1
mov dword [ebp - 0x26c], 0x100
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x4893b2
push 0x100
lea ecx, [ebp - 0x228]
call fcn.004048e0
mov esi, dword [ebp - 0x228]
push 0
lea eax, [ebp - 0x26c]
push eax
push esi
push 0x13
push dword [ebp - 0x220]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [esi - 8]
mov dword [ebp - 0x224], eax
push esi
call fcn.004a6ca5
add esp, 8
test eax, eax
js 0x4897fa
cmp eax, dword [esi - 8]
jg 0x4897fa
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x224], ecx
je 0x48975e
push esi
call fcn.004af317
add esp, 4
cmp eax, 0x12d
je 0x48959d
cmp eax, 0x12e
je 0x48959d
cmp eax, 0x12f
je 0x48959d
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489447
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 0x489462
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 - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489483
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4894a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.0049cf37
mov ecx, dword [ebp - 0x238]
add esp, 4
mov ebx, dword [ebp - 0x230]
mov dword [eax], ecx
mov ecx, ebx
push dword [ebp - 0x22c]
push eax
call fcn.004899c0
push 4
call fcn.0049cf37
mov ecx, dword [ebp - 0x24c]
add esp, 4
mov dword [eax], ecx
lea ecx, [ebx + 8]
push dword [ebp - 0x22c]
push eax
call fcn.004899c0
push 4
call fcn.0049cf37
mov ecx, dword [ebp - 0x220]
add esp, 4
mov dword [eax], ecx
lea ecx, [ebx + 0x10]
push dword [ebp - 0x22c]
push eax
call fcn.004899c0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x48952a
lock inc dword [eax + 4]
mov eax, dword [ebx + 0x10]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x489552
lock inc dword [eax + 4]
mov eax, dword [ebx + 8]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x48957a
lock inc dword [eax + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x250]
call fcn.00487f60
mov eax, dword [ebp - 0x250]
add esp, 0x18
jmp 0x488b72
call fcn.00404d50
mov ecx, eax
test ecx, ecx
je 0x48983b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
mov edx, 1
mov dword [ebp - 0x270], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x4895f3
push 0x400
lea ecx, [ebp - 0x224]
call fcn.004048e0
mov eax, dword [ebp - 0x224]
push 0
lea ecx, [ebp - 0x270]
push ecx
push eax
push 0x21
push dword [ebp - 0x220]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
push dword [eax - 8]
push eax
call fcn.004a6ca5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4897fa
mov eax, dword [ebp - 0x224]
cmp ecx, dword [eax - 8]
jg 0x4897fa
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x22c], edx
je 0x489743
cmp dword [eax - 0xc], edx
je 0x489743
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x224]
push eax
call fcn.00403180
push dword [ebp - 0x220]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x24c]
call ebx
push dword [ebp - 0x238]
call ebx
push dword [ebp - 0x250]
mov ecx, dword [ebp - 0x230]
call fcn.00488940
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x224]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4896bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4896da
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 0x4896f5
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 - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489716
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x489738
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x250]
jmp 0x488b72
lea edx, [eax - 0x10]
mov byte [ebp - 4], 5
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48975e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 4
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489779
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 0x489794
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 - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4897b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4897d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x220]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x24c]
call esi
push dword [ebp - 0x238]
call esi
jmp 0x488b58
push 0x80070057
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
call fcn.00403b10
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
push 0x80004005
call fcn.00404b30
int3