Function at 0x415310
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x46e796
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x490d1c]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d1c]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
mov eax, dword [esp + 0x860]
mov edx, dword [esp + 0x884]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x864]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], edx
call fcn.0043b055
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41538c
push 0x80004005
call fcn.00401530
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
cmp dword [esp + 0x86c], edi
mov dword [esp + 0x858], edi
jge 0x4153b3
mov dword [esp + 0x86c], edi
mov ebp, dword [esp + 0x870]
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
test edi, edi
je 0x4153e5
cmp dword [esp + 0x1c], 0
jne 0x415704
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [0x48f3c8]
mov dword [esp + 0x30], eax
jge 0x4158ad
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x86c]
lea esi, [ecx + edx]
call fcn.0043b055
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x415382
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x858], 1
test esi, esi
jle 0x41544f
push esi
lea ecx, [esp + 0x1c]
push str.Range:bytes_ld_
push ecx
call fcn.00402e00
mov ebx, dword [esp + 0x24]
add esp, 0xc
test edi, edi
je 0x41545a
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x1c], 0
je 0x41546c
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x4921fc]
inc eax
push eax
mov dword [0x4921fc], eax
lea eax, [esp + 0x38]
push str.down_d
xor edi, edi
push eax
mov dword [esp + 0x28], edi
call fcn.00402e00
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x20]
push edx
call fcn.00415030
cmp dword [esp + 0x1c], edi
jne 0x4154ec
cmp byte [esp + 0x87c], 0
jne 0x4158cc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebx - 0x10]
mov byte [esp + 0x858], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4153d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4153d6
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
push 0
push 0x84000100
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push edx
call fcn.00414bd0
mov edi, eax
test edi, edi
jne 0x41551e
cmp byte [esp + 0x87c], al
jne 0x415901
jmp 0x4154b7
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x54]
push edx
push 0x13
push edi
mov dword [esp + 0x28], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test esi, esi
jle 0x41558f
lea eax, [esp + 0x4c]
push eax
call fcn.0045607c
add esp, 4
cmp eax, 0xce
je 0x41558f
lea ecx, [esp + 0x4c]
push ecx
call fcn.0045607c
add esp, 4
test eax, eax
je 0x41558f
cmp esi, 0x400
mov eax, esi
jle 0x415573
mov eax, 0x400
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
sub esi, 0x400
test esi, esi
jg 0x415564
test ebp, ebp
jg 0x4156dc
lea ecx, [esp + 0x4c]
push ecx
call fcn.0045607c
add esp, 4
cmp eax, 0x194
je 0x4158f9
lea edx, [esp + 0x4c]
push edx
call fcn.0045607c
add esp, 4
cmp eax, 0xc8
je 0x4155db
lea eax, [esp + 0x4c]
push eax
call fcn.0045607c
add esp, 4
cmp eax, 0xce
jne 0x41591b
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x54]
push edx
push 5
push edi
mov dword [esp + 0x28], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [esp + 0x4c]
push eax
call fcn.0045607c
mov esi, dword [esp + 0x884]
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
mov ebp, eax
push ebp
push esi
push 0x414
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x888], ebp
call ebx
mov edx, dword [esp + 0x24]
push ebp
push esi
push 0x42d
push edx
call ebx
mov eax, dword [esp + 0x24]
push 1
push esi
push 0x416
push eax
call ebx
cmp dword [0x48f3c4], 1
je 0x4156d4
push 0x800
lea ecx, [esp + 0x50]
push 0
push ecx
mov dword [esp + 0x20], 0x400
call fcn.00455e70
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
push 0x25
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push str.qupdater2.xx
lea ecx, [esp + 0x4c]
call fcn.00401e60
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.00403950
mov bl, al
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4156c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4156d4
mov dword [0x48f3c4], 1
test ebp, ebp
jle 0x415936
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x858], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x874]
push ecx
push 0xe0001
call fcn.00417190
add esp, 8
test eax, eax
setne al
test al, al
jne 0x41586a
test ebp, ebp
jle 0x41586a
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
lea ebx, [ebx]
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
cmp esi, 0x400
je 0x4157b9
cmp esi, ebp
je 0x4157b9
test esi, esi
ja 0x4158ad
cmp byte [esp + 0x87c], 0
jne 0x4157c1
cmp dword [esp + 0x18], 3
jne 0x4157a9
test edi, edi
je 0x415792
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x4157a1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x14]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x415740
jmp 0x4157c1
mov dword [esp + 0x30], 0
test edi, edi
je 0x41589a
test ebx, ebx
je 0x41589a
xor al, al
test esi, esi
ja 0x4157d9
mov al, 1
cmp dword [esp + 0x18], 4
jl 0x4157e2
mov al, 1
cmp esi, ebp
je 0x4157f2
cmp esi, 0x400
jne 0x41596c
test al, al
jne 0x41596c
cmp dword [esp + 0x44], 0
je 0x41586a
cmp esi, ebp
jb 0x415807
mov esi, ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add dword [esp + 0x28], esi
push esi
lea eax, [esp + 0x50]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x868]
mov edx, dword [esp + 0x880]
mov ebx, dword [esp + 0x874]
push eax
mov eax, dword [esp + 0x87c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
push ebx
push esi
call fcn.00414cc0
sub ebp, dword [esp + 0x14]
push ebx
push 0xe0001
call fcn.00417190
add esp, 8
test eax, eax
setne al
test al, al
je 0x4153d6
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov ebx, dword [esp + 0x3c]
mov ecx, eax
mov eax, ebx
mov esi, edx
cdq
cmp ecx, eax
jne 0x415988
cmp esi, edx
jne 0x415988
mov eax, 1
jmp 0x41598a
cmp byte [esp + 0x87c], 0
je 0x4153d6
jmp 0x41599c
mov ecx, dword [esp + 0x874]
push 0x270f
push ecx
push 0xe0001
call fcn.00417260
add esp, 0xc
jmp 0x41599c
lea eax, [ebx - 0x10]
mov byte [esp + 0x858], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41599c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41599c
mov dword [esp + 0x20], 0
lea eax, [ebx - 0x10]
mov byte [esp + 0x858], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4158e4
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
mov byte [esp + 0x858], 0
call fcn.00401990
jmp 0x41599c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x20], 1
mov byte [esp + 0x858], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4159e4
mov edx, dword [esp + 0x874]
push 0x270f
push edx
push 0xe0001
call fcn.00417260
add esp, 0xc
jmp 0x41599c
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x415998
mov dword [esp + 0x20], ebx
jmp 0x41599c
test eax, eax
jne 0x4159e4
mov esi, dword [esp + 0x874]
push 0x270f
push esi
push 0xe0001
call fcn.00417260
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x874]
mov edx, dword [esp + 0x88c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x87c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x38]
push esi
neg eax
push eax
call fcn.00414cc0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test edi, edi
je 0x4159fa
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415a09
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x858], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415a34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.00455930
add esp, 0x848
ret 0x28