Function at 0x140022240
Capabilities:
Check http status code
Create http request
Create thread
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
mov eax, 0x2540
call fcn.1400296b0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x2548], rbx
mov qword [rbp + 0x2550], rsi
mov rax, qword [0x140053100]
xor rax, rbp
mov qword [rbp + 0x2500], rax
mov rdi, rcx
lea rcx, str.AOL_Toolbar___Mail_Count
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov r13d, 0x80004005
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [0x140059840], rax
test rax, rax
je 0x1400226c5
lea rcx, [rbp + 0x20]
call fcn.14001e460
lea rcx, [rbp + 0x1180]
xor edx, edx
mov r8d, 0x104
call fcn.140029480
xor ecx, ecx
call fcn.140026b10
mov dword [rbp + 4], 0x104
movabs rsi, 0xffffffffffffff0
mov qword [0x1400599e0], rax
mov rdi, qword [rdi]
mov rbx, rax
test rdi, rdi
jne 0x1400222fc
mov eax, r14d
jmp 0x14002234a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x140022313
mov rax, r14
jmp 0x14002234a
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140022328
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400296b0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400109d0
lea rdx, [rbp + 0x1070]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
inc rax
mov byte [rdx + rax - 1], cl
test cl, cl
jne 0x140022360
or r12, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x1070]
mov rcx, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp ecx, 0xc8
ja 0x1400226b1
lea rax, [0x1400432d8]
mov r9d, ecx
lea rdx, str._.8lx_.8lx_s_s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1070]
lea rcx, [rbp + 0x1290]
mov r8d, ebx
mov qword [rsp + 0x20], rax
call fcn.140027e80
lea r9, [rbp + 4]
lea r8, [rbp + 0x1180]
lea rdx, [rbp + 0x1290]
lea rcx, [rbp + 0x20]
call fcn.140022720
test eax, eax
jne 0x1400226b1
mov r8d, dword [rbp + 4]
lea rdx, [rbp + 0x1180]
lea rcx, [rbp + 8]
call fcn.14000c330
mov rdi, qword [rbp + 8]
cmp dword [rdi - 0x10], r14d
je 0x140022696
mov rcx, r14
lea rdx, str.http:__mailcount.oscar.aol.com_MailCount_keynum2enc_sn
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
inc rcx
mov byte [rbp + rcx + 0x149f], al
test al, al
jne 0x140022420
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x140022449
mov r8, r14
jmp 0x140022483
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002245e
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400296b0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400109d0
mov r8, rax
xor eax, eax
lea rdi, [rbp + 0x14a0]
mov rcx, r12
repne scasb al, byte [rdi]
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
inc rdx
mov byte [rdi + rdx - 2], cl
test cl, cl
jne 0x1400224a0
lea rax, [rbp + 0x14]
lea r9, [rbp + 0x14a0]
lea r8, [0x140022200]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0x4e20
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14002252f
mov rcx, qword [0x140059840]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x1400226e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400226e2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140059838]
test rcx, rcx
je 0x140022692
lea r9, [rbp + 0x10]
lea r8, [rbp + 0x1390]
mov edx, 0x13
mov dword [rbp + 0x10], 0x104
mov qword [rsp + 0x20], r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x14002267e
lea rcx, [rbp + 0x1390]
call fcn.140027e74
cmp eax, 0xc8
jne 0x14002267e
mov rcx, qword [0x140059838]
lea r9, [rbp]
lea rdx, [rbp + 0x1cd0]
mov r8d, 0x824
mov dword [rbp], r14d
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, dword [rbp]
mov edi, eax
test ebx, ebx
je 0x14002267e
test eax, eax
je 0x14002267e
lea ecx, [rbx + 1]
call fcn.140026094
mov rsi, rax
test rax, rax
je 0x14002267e
lea rdx, [rbp + 0x1cd0]
mov r8d, ebx
mov rcx, rax
call fcn.140027b40
mov ebx, dword [rbp]
test ebx, ebx
je 0x140022676
test edi, edi
je 0x14002264c
mov rcx, qword [0x140059838]
lea r9, [rbp]
lea rdx, [rbp + 0x1cd0]
mov r8d, 0x824
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
mov eax, dword [rbp]
test eax, eax
je 0x14002264c
test edi, edi
je 0x140022648
lea edx, [rbx + rax]
mov rcx, rsi
call fcn.1400278b8
mov r8d, dword [rbp]
mov ecx, ebx
lea rdx, [rbp + 0x1cd0]
add rcx, rax
mov rsi, rax
call fcn.140027b40
mov eax, dword [rbp]
add ebx, eax
test eax, eax
jne 0x1400225f1
test ebx, ebx
je 0x140022676
mov eax, ebx
lea r9, [0x1400599dc]
lea r8, [0x1400599d8]
lea rdx, str.count:_d_r_nrefresh:_d
mov rcx, rsi
mov byte [rax + rsi], r14b
call fcn.140028e18
mov r13d, r14d
mov rcx, rsi
call fcn.140026010
mov rcx, qword [0x140059838]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x140059838], r14
mov rdi, qword [rbp + 8]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x1400226b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x140059840]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x140059840], r14
mov ecx, dword [0x1400599dc]
cmp ecx, 0x3c
jl 0x1400226d8
cmp ecx, 0x12c
jle 0x1400226e2
mov dword [0x1400599dc], 0x5a
mov eax, r13d
mov rcx, qword [rbp + 0x2500]
xor rcx, rbp
call fcn.140025aa0
mov rbx, qword [rbp + 0x2548]
mov rsi, qword [rbp + 0x2550]
lea rsp, [rbp + 0x2510]
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret