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

Disassembly:
push 0xffffffffffffffff
push 0x47c766
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
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.004412f5
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4140dc
push 0x80004005
call fcn.004011b0
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 0x414103
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 0x414135
cmp dword [esp + 0x1c], 0
jne 0x414454
mov eax, dword [esp + 0x30]
inc eax
cmp eax, dword [0x4a2320]
mov dword [esp + 0x30], eax
jge 0x4145fd
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x86c]
lea esi, [ecx + edx]
call fcn.004412f5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4140d2
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 0x41419f
push esi
lea ecx, [esp + 0x1c]
push str.Range:bytes_ld_
push ecx
call fcn.004029f0
mov ebx, dword [esp + 0x24]
add esp, 0xc
test edi, edi
je 0x4141aa
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x1c], 0
je 0x4141bc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x4a567c]
inc eax
push eax
mov dword [0x4a567c], eax
lea eax, [esp + 0x38]
push str.down_d
xor edi, edi
push eax
mov dword [esp + 0x28], edi
call fcn.004029f0
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x20]
push edx
call fcn.00413d80
cmp dword [esp + 0x1c], edi
jne 0x41423c
cmp byte [esp + 0x87c], 0
jne 0x41461c
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 0x414126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x414126
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.00413920
mov edi, eax
test edi, edi
jne 0x41426e
cmp byte [esp + 0x87c], al
jne 0x414651
jmp 0x414207
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 0x4142df
lea eax, [esp + 0x4c]
push eax
call fcn.0045c5cc
add esp, 4
cmp eax, 0xce
je 0x4142df
lea ecx, [esp + 0x4c]
push ecx
call fcn.0045c5cc
add esp, 4
test eax, eax
je 0x4142df
cmp esi, 0x400
mov eax, esi
jle 0x4142c3
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 0x4142b4
test ebp, ebp
jg 0x41442c
lea ecx, [esp + 0x4c]
push ecx
call fcn.0045c5cc
add esp, 4
cmp eax, 0x194
je 0x414649
lea edx, [esp + 0x4c]
push edx
call fcn.0045c5cc
add esp, 4
cmp eax, 0xc8
je 0x41432b
lea eax, [esp + 0x4c]
push eax
call fcn.0045c5cc
add esp, 4
cmp eax, 0xce
jne 0x41466b
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.0045c5cc
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 0x40e
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x888], ebp
call ebx
mov edx, dword [esp + 0x24]
push ebp
push esi
push 0x423
push edx
call ebx
mov eax, dword [esp + 0x24]
push 1
push esi
push 0x410
push eax
call ebx
cmp dword [0x4a231c], 1
je 0x414424
push 0x800
lea ecx, [esp + 0x50]
push 0
push ecx
mov dword [esp + 0x20], 0x400
call fcn.0045c3c0
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.00401ab0
lea ecx, [esp + 0x4c]
push ecx
push eax
call fcn.00403540
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 0x414416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x414424
mov dword [0x4a231c], 1
test ebp, ebp
jle 0x414686
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 0x414454
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.00415f60
add esp, 8
test eax, eax
setne al
test al, al
jne 0x4145ba
test ebp, ebp
jle 0x4145ba
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 0x414509
cmp esi, ebp
je 0x414509
test esi, esi
ja 0x4145fd
cmp byte [esp + 0x87c], 0
jne 0x414511
cmp dword [esp + 0x18], 3
jne 0x4144f9
test edi, edi
je 0x4144e2
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x4144f1
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 0x414490
jmp 0x414511
mov dword [esp + 0x30], 0
test edi, edi
je 0x4145ea
test ebx, ebx
je 0x4145ea
xor al, al
test esi, esi
ja 0x414529
mov al, 1
cmp dword [esp + 0x18], 4
jl 0x414532
mov al, 1
cmp esi, ebp
je 0x414542
cmp esi, 0x400
jne 0x4146bc
test al, al
jne 0x4146bc
cmp dword [esp + 0x44], 0
je 0x4145ba
cmp esi, ebp
jb 0x414557
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.00413a10
sub ebp, dword [esp + 0x14]
push ebx
push 0xe0001
call fcn.00415f60
add esp, 8
test eax, eax
setne al
test al, al
je 0x414126
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 0x4146d8
cmp esi, edx
jne 0x4146d8
mov eax, 1
jmp 0x4146da
cmp byte [esp + 0x87c], 0
je 0x414126
jmp 0x4146ec
mov ecx, dword [esp + 0x874]
push 0x270f
push ecx
push 0xe0001
call fcn.00416030
add esp, 0xc
jmp 0x4146ec
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 0x4146ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4146ec
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 0x414634
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0
mov byte [esp + 0x858], 0
call fcn.00401430
jmp 0x4146ec
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 0x414734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x414734
mov edx, dword [esp + 0x874]
push 0x270f
push edx
push 0xe0001
call fcn.00416030
add esp, 0xc
jmp 0x4146ec
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x4146e8
mov dword [esp + 0x20], ebx
jmp 0x4146ec
test eax, eax
jne 0x414734
mov esi, dword [esp + 0x874]
push 0x270f
push esi
push 0xe0001
call fcn.00416030
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.00413a10
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test edi, edi
je 0x41474a
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x414759
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 0x414784
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.0045bdbc
add esp, 0x848
ret 0x28