Function at 0x140023240
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.14002a6b0
sub rsp, rax
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x2548], rbx
mov qword [rbp + 0x2550], rsi
mov rax, qword [0x140054100]
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 [0x14005a840], rax
test rax, rax
je 0x1400236c5
lea rcx, [rbp + 0x20]
call fcn.14001f460
lea rcx, [rbp + 0x1180]
xor edx, edx
mov r8d, 0x104
call fcn.14002a480
xor ecx, ecx
call fcn.140027b10
mov dword [rbp + 4], 0x104
movabs rsi, 0xffffffffffffff0
mov qword [0x14005a9e0], rax
mov rdi, qword [rdi]
mov rbx, rax
test rdi, rdi
jne 0x1400232fc
mov eax, r14d
jmp 0x14002334a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x140023313
mov rax, r14
jmp 0x14002334a
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140023328
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14002a6b0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400119d0
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 0x140023360
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 0x1400236b1
lea rax, [0x1400442d8]
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.140028e80
lea r9, [rbp + 4]
lea r8, [rbp + 0x1180]
lea rdx, [rbp + 0x1290]
lea rcx, [rbp + 0x20]
call fcn.140023720
test eax, eax
jne 0x1400236b1
mov r8d, dword [rbp + 4]
lea rdx, [rbp + 0x1180]
lea rcx, [rbp + 8]
call fcn.14000d330
mov rdi, qword [rbp + 8]
cmp dword [rdi - 0x10], r14d
je 0x140023696
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 0x140023420
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x140023449
mov r8, r14
jmp 0x140023483
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14002345e
mov rcx, rsi
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14002a6b0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400119d0
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 0x1400234a0
lea rax, [rbp + 0x14]
lea r9, [rbp + 0x14a0]
lea r8, [0x140023200]
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 0x14002352f
mov rcx, qword [0x14005a840]
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 0x1400236e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400236e2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14005a838]
test rcx, rcx
je 0x140023692
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 0x14002367e
lea rcx, [rbp + 0x1390]
call fcn.140028e74
cmp eax, 0xc8
jne 0x14002367e
mov rcx, qword [0x14005a838]
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 0x14002367e
test eax, eax
je 0x14002367e
lea ecx, [rbx + 1]
call fcn.140027094
mov rsi, rax
test rax, rax
je 0x14002367e
lea rdx, [rbp + 0x1cd0]
mov r8d, ebx
mov rcx, rax
call fcn.140028b40
mov ebx, dword [rbp]
test ebx, ebx
je 0x140023676
test edi, edi
je 0x14002364c
mov rcx, qword [0x14005a838]
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 0x14002364c
test edi, edi
je 0x140023648
lea edx, [rbx + rax]
mov rcx, rsi
call fcn.1400288b8
mov r8d, dword [rbp]
mov ecx, ebx
lea rdx, [rbp + 0x1cd0]
add rcx, rax
mov rsi, rax
call fcn.140028b40
mov eax, dword [rbp]
add ebx, eax
test eax, eax
jne 0x1400235f1
test ebx, ebx
je 0x140023676
mov eax, ebx
lea r9, [0x14005a9dc]
lea r8, [0x14005a9d8]
lea rdx, str.count:_d_r_nrefresh:_d
mov rcx, rsi
mov byte [rax + rsi], r14b
call fcn.140029e18
mov r13d, r14d
mov rcx, rsi
call fcn.140027010
mov rcx, qword [0x14005a838]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x14005a838], r14
mov rdi, qword [rbp + 8]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x1400236b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x14005a840]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [0x14005a840], r14
mov ecx, dword [0x14005a9dc]
cmp ecx, 0x3c
jl 0x1400236d8
cmp ecx, 0x12c
jle 0x1400236e2
mov dword [0x14005a9dc], 0x5a
mov eax, r13d
mov rcx, qword [rbp + 0x2500]
xor rcx, rbp
call fcn.140026aa0
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