Function at 0x1400357f0
Capabilities:
Check internet connectivity via wininet
Create thread

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
mov qword [rsp + 0x148], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1400ee620]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0xf8], rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov qword [r11 - 0x48], rcx
mov dword [r11 - 0x70], 0x2009
mov dword [r11 - 0x6c], 0x200a
mov dword [r11 - 0x68], 0x200b
mov dword [r11 - 0x64], 0x200c
mov dword [r11 - 0x60], 0x200d
or r14d, 0xffffffff
mov byte [0x1400efef1], 0
mov ecx, 0xee
call fcn.140001bf0
mov rdi, rax
mov ecx, 0xec
call fcn.140001bf0
mov rdx, rax
lea r9d, [r14 + 0x42]
mov r8, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x1400358c5
cmp qword [rbx + 0x20], 0x10
jb 0x1400358ac
mov rcx, qword [rbx + 8]
call fcn.140082dfc
mov qword [rbx + 0x20], reloc.WS2_32.dll_ntohs
xor ebp, ebp
mov qword [rbx + 0x18], rbp
mov byte [rbx + 8], bpl
xor eax, eax
jmp 0x140036f92
xor ebp, ebp
mov qword [0x1400efec8], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x1400efee8], rax
mov dword [rsp + 0x48], ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
xor r9d, r9d
lea r8, [0x1400187e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, ebp
mov dword [rsp + 0x44], ebp
nop dword [rax]
test edi, edi
jle 0x140035946
mov edi, 0x7d0
nop dword [rax]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0xffffff38
cmp byte [0x1400efef1], 0
jne 0x1400367e1
test edi, edi
jne 0x140035920
mov edi, dword [rsp + 0x44]
mov r15, rbp
nop dword [rax]
cmp byte [0x1400efef1], 0
jne 0x140036f6b
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x140035976
mov ebx, 0x12d
mov r14d, eax
jmp 0x14003647d
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
xor r8d, r8d
lea rdx, [0x1400b89c1]
lea rcx, [rsp + 0x250]
call fcn.1400016f0
nop
mov eax, edi
cdq
and eax, 1
xor eax, edx
cmp eax, edx
jne 0x1400359e4
mov ecx, 0xf0
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
jmp 0x140035a10
mov ecx, 0xef
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
lea r8, [rsp + 0x250]
lea rdx, str.http:__
lea rcx, [rsp + 0x278]
call fcn.140014db0
nop
lea rcx, [rsp + 0x280]
cmp qword [rsp + 0x298], 0x10
cmovae rcx, qword [rsp + 0x280]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
jne 0x140035abb
mov ebx, 0x12e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp qword [rsp + 0x298], 0x10
jb 0x140035a7e
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
lea rcx, [0x1400b9528]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
mov qword [rsp + 0xe0], rax
test rax, rax
jne 0x140035b49
mov ebx, 0x12f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp qword [rsp + 0x298], 0x10
jb 0x140035b0c
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
lea rdx, [rsp + 0x258]
cmp qword [rsp + 0x270], 0x10
cmovae rdx, qword [rsp + 0x258]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbp
xor r9d, r9d
movzx r8d, word [rsp + r15*4 + 0x2c8]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r13, rax
test rax, rax
jne 0x140035c03
mov ebx, 0x130
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x298], 0x10
jb 0x140035bc6
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
mov ecx, 0xf1
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2a0]
call fcn.140006860
mov r12, qword [rsp + 0xf8]
mov rax, qword [r12 + 0x30]
mov rcx, qword [rax]
mov qword [rsp + 0x118], rcx
mov rax, qword [r12]
mov qword [rsp + 0x110], rax
movaps xmm0, xmmword [rsp + 0x110]
movdqa xmmword [rsp + 0xd0], xmm0
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xd8]
mov rdi, qword [r12 + 0x30]
test rsi, rsi
je 0x140035ca0
cmp rsi, qword [r12]
je 0x140035ca5
call fcn.1400830b8
cmp rbx, rdi
je 0x140035dfb
lea rax, [rsp + 0x120]
mov qword [rsp + 0xf0], rax
test rsi, rsi
jne 0x140035ccd
call fcn.1400830b8
mov rdx, rbp
jmp 0x140035cd0
mov rdx, qword [rsi]
cmp rbx, qword [rdx + 0x30]
jne 0x140035cdb
call fcn.1400830b8
lea rdx, [rsp + 0x120]
mov rcx, qword [rbx + 0x20]
call fcn.140034940
mov rdi, rax
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xc8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xc0], rbp
mov byte [rsp + 0xb0], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.1400015d0
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x2a0]
call fcn.140034090
nop
cmp qword [rdi + 0x20], 0x10
jb 0x140035d50
mov rcx, qword [rdi + 8]
call fcn.140082dfc
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
mov ecx, 0xf2
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2a0]
call fcn.140006860
test rsi, rsi
jne 0x140035d96
call fcn.1400830b8
cmp byte [rbx + 0x29], 0
je 0x140035da6
call fcn.1400830b8
jmp 0x140035c90
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x29], 0
jne 0x140035dd1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
jne 0x140035c90
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x140035dc0
jmp 0x140035c90
mov rax, qword [rbx + 8]
cmp byte [rax + 0x29], 0
jne 0x140035df3
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140035df3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x29], 0
je 0x140035de0
mov rbx, rax
jmp 0x140035c90
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xc8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xc0], rbp
mov byte [rsp + 0xb0], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0xa8]
call fcn.1400015d0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x140], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x138], rbp
mov byte [rsp + 0x128], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x120]
call fcn.1400015d0
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x2a0]
call fcn.140034090
nop
cmp qword [rsp + 0xc8], 0x10
mov r12, qword [rsp + 0xe0]
jb 0x140035ec1
mov rcx, qword [rsp + 0xb0]
call fcn.140082dfc
mov qword [rsp + 0xc8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0xc0], rbp
mov byte [rsp + 0xb0], 0
mov ecx, 0xf2
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2a0]
call fcn.140006860
nop
mov r8d, 7
lea rdx, [0x1400b9518]
lea rcx, [rsp + 0x2a0]
call fcn.140006860
lea rdx, [0x140003a30]
lea rcx, [rsp + 0x2a0]
call fcn.140034380
mov ecx, 0xf4
call fcn.140001bf0
mov rdx, rax
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x803000
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea r8, [0x1400b89c1]
mov rcx, r13
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rsi, rax
test rax, rax
jne 0x140036025
mov ebx, 0x131
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x140035fb4
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140035fe8
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
mov dword [rsp + 0xa0], 4
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x58]
mov edx, 0x1f
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
jne 0x140036106
mov ebx, 0x132
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x140036095
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x1400360c9
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
bts dword [rsp + 0x58], 8
mov r9d, 4
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x1b]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x1400361df
mov ebx, 0x133
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x14003616e
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x1400361a2
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
lea r9, [rsp + 0x2a8]
cmp qword [rsp + 0x2c0], 0x10
cmovae r9, qword [rsp + 0x2a8]
mov eax, dword [rsp + 0x2b8]
mov dword [rsp + 0x20], eax
or r8d, 0xffffffff
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1400362ce
mov ebx, 0x134
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x14003625d
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140036291
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
mov dword [rsp + 0xa4], 4
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0xa4]
lea r8, [rsp + 0x5c]
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1400363b4
mov ebx, 0x135
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x140036343
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140036377
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
jmp 0x14003647d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x140036493
mov ebx, 0x136
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x140036415
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140036449
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x14003647d
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
inc r15
cmp r15, 5
mov edi, dword [rsp + 0x44]
jl 0x140035950
jmp 0x1400367b7
mov ecx, 8
call fcn.1400830d8
test rax, rax
je 0x1400364ac
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
jmp 0x1400364af
mov rax, rbp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rbp
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400365ee
cmp dword [rsp + 0x48], 1
jne 0x1400365e9
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
lea eax, [rdi + rcx]
test al, 0xf
jne 0x140036555
lea rax, [rcx + 0x10]
shr rax, 4
mov rdx, qword [rsp + 0x88]
cmp rdx, rax
ja 0x14003655d
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140015ae0
mov rcx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
jmp 0x14003655d
mov rdx, qword [rsp + 0x88]
lea rbx, [rcx + rdi]
mov rdi, rbx
shr rdi, 4
cmp rdx, rdi
ja 0x140036570
sub rdi, rdx
mov rax, qword [rsp + 0x80]
cmp qword [rax + rdi*8], 0
jne 0x1400365a5
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400830d8
mov rcx, qword [rsp + 0x80]
mov qword [rcx + rdi*8], rax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x80]
and ebx, 0xf
add rbx, qword [rax + rdi*8]
je 0x1400365bd
movzx eax, byte [rsp + 0x40]
mov byte [rbx], al
mov rcx, qword [rsp + 0x98]
inc rcx
mov qword [rsp + 0x98], rcx
lea r9, [rsp + 0x48]
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400364f5
mov rbx, qword [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140014120
cmp byte [rax], 0x41
je 0x140036ccc
mov ecx, 0xdf
call fcn.140001bf0
mov rdx, rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x1e]
lea rcx, [rsp + 0x150]
call fcn.140009b60
nop
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x160], 6
jne 0x140036ba9
cmp qword [rsp + 0x98], 0
je 0x1400366b8
lea rcx, [rsp + 0x60]
call fcn.1400141e0
movzx edx, byte [rax]
lea rcx, [rsp + 0x150]
call fcn.1400038e0
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x1400366b8
mov rcx, qword [rsp + 0x90]
inc rcx
mov rax, qword [rsp + 0x88]
shl rax, 4
cmp rax, rcx
cmovbe rcx, rbp
mov qword [rsp + 0x90], rcx
sub rdx, 1
mov qword [rsp + 0x98], rdx
jne 0x140036655
mov qword [rsp + 0x90], rbp
lea rcx, [rsp + 0x158]
call fcn.140007e80
test rax, rax
jne 0x1400366f6
mov rax, qword [rsp + 0x150]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x150]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400366ee
or edx, 4
xor r8d, r8d
call fcn.1400032f0
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
or ebx, 0xffffffff
lea rcx, [rsp + 0x150]
call fcn.140009aa0
nop
lea rcx, [rsp + 0x60]
call fcn.140012520
mov rcx, qword [rsp + 0x60]
call fcn.140082dfc
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x14003674f
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140036783
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x1400367b7
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
cmp byte [0x1400efef1], 0
jne 0x140036b7d
cmp ebx, 0xffffffff
je 0x14003698f
mov edi, dword [rsp + 0x44]
inc edi
mov dword [rsp + 0x44], edi
cmp edi, 5
jge 0x14003680d
jmp 0x140035910
mov rbx, qword [rsp + 0x50]
cmp qword [rbx + 0x20], 0x10
jb 0x1400367f6
mov rcx, qword [rbx + 8]
call fcn.140082dfc
mov qword [rbx + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x18], rbp
mov byte [rbx + 8], 0
xor eax, eax
jmp 0x140036f92
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
mov ecx, 0xf7
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
mov ecx, 0xfb
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
mov edx, ebx
lea rcx, [rsp + 0x250]
call fcn.140034fa0
mov r8d, 2
lea rdx, [0x1400b9510]
lea rcx, [rsp + 0x250]
call fcn.140006860
mov edx, r14d
lea rcx, [rsp + 0x250]
call fcn.140034fa0
mov r8d, 1
lea rdx, [0x1400b9200]
lea rcx, [rsp + 0x250]
call fcn.140006860
lea rdx, [0x140003a30]
lea rcx, [rsp + 0x250]
call fcn.140034380
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, qword [0x1400efec0]
call qword [sym.imp.USER32.dll_SendMessageA]
lea rdi, [rsp + 0x258]
cmp qword [rsp + 0x270], 0x10
cmovae rdi, qword [rsp + 0x258]
mov ecx, 0x3d
call fcn.140001bf0
mov rdx, rdi
mov rcx, rax
call fcn.140009e30
nop
cmp qword [rsp + 0x270], 0x10
jb 0x140036947
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
mov rdi, qword [rsp + 0x50]
cmp qword [rdi + 0x20], 0x10
jb 0x140036978
mov rcx, qword [rdi + 8]
call fcn.140082dfc
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor eax, eax
jmp 0x140036f92
mov eax, dword [rsp + 0x5c]
cmp eax, 0xc8
je 0x140036b48
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
cmp eax, 0x1f4
jne 0x140036a1e
mov ecx, pe_nt_image_headers64
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
mov ecx, 0xfa
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
jmp 0x140036aa1
mov ecx, 0xf9
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
mov edx, dword [rsp + 0x5c]
lea rcx, [rsp + 0x250]
call fcn.140034fa0
mov r8d, 2
lea rdx, [0x1400b950c]
lea rcx, [rsp + 0x250]
call fcn.140006860
mov ecx, 0xfa
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x250]
call fcn.140006860
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, qword [0x1400efec0]
call qword [sym.imp.USER32.dll_SendMessageA]
lea rdi, [rsp + 0x258]
cmp qword [rsp + 0x270], 0x10
cmovae rdi, qword [rsp + 0x258]
mov ecx, 0x3d
call fcn.140001bf0
mov rdx, rdi
mov rcx, rax
call fcn.140009e30
nop
cmp qword [rsp + 0x270], 0x10
jb 0x140036b00
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
mov rdi, qword [rsp + 0x50]
cmp qword [rdi + 0x20], 0x10
jb 0x140036b31
mov rcx, qword [rdi + 8]
call fcn.140082dfc
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor eax, eax
jmp 0x140036f92
call fcn.1400109c0
nop
mov rdi, qword [rsp + 0x50]
cmp qword [rdi + 0x20], 0x10
jb 0x140036b63
mov rcx, qword [rdi + 8]
call fcn.140082dfc
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
mov eax, 1
jmp 0x140036f92
mov rdi, qword [rsp + 0x50]
cmp qword [rdi + 0x20], 0x10
jb 0x140036b92
mov rcx, qword [rdi + 8]
call fcn.140082dfc
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x18], rbp
mov byte [rdi + 8], 0
xor eax, eax
jmp 0x140036f92
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, qword [0x1400efec0]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0xf6
call fcn.140001bf0
mov rdi, rax
mov ecx, 0x3d
call fcn.140001bf0
mov rdx, rdi
mov rcx, rax
call fcn.140009e30
nop
lea rcx, [rsp + 0x150]
call fcn.140009aa0
nop
lea rcx, [rsp + 0x60]
call fcn.140012520
mov rcx, qword [rsp + 0x60]
call fcn.140082dfc
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x140036c39
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140036c6d
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x140036ca1
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
mov rcx, rbx
call fcn.1400135e0
xor eax, eax
jmp 0x140036f92
mov ecx, 0xe0
call fcn.140001bf0
mov rcx, rax
call fcn.1400857ac
mov qword [rsp + 0x2e8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2e0], rbp
mov byte [rsp + 0x2d0], 0
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140036da6
mov rdi, qword [rsp + 0x90]
lea rax, [rcx + rdi]
cmp rdi, rax
jbe 0x140036d21
call fcn.1400830b8
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rdi
lea rcx, [rsp + 0xd0]
call fcn.140010ac0
movzx r8d, byte [rax]
mov edx, 1
lea rcx, [rsp + 0x2c8]
call fcn.1400065f0
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140036da6
mov rdi, qword [rsp + 0x90]
inc rdi
mov rax, qword [rsp + 0x88]
shl rax, 4
cmp rax, rdi
cmovbe rdi, rbp
mov qword [rsp + 0x90], rdi
sub rcx, 1
mov qword [rsp + 0x98], rcx
jne 0x140036d13
mov qword [rsp + 0x90], rbp
mov r8d, 1
lea rdx, [0x1400b9508]
lea rcx, [rsp + 0x2c8]
call fcn.140006860
mov ecx, 0xe2
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2c8]
call fcn.140006860
mov ecx, 0xfc
call fcn.140001bf0
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r9, [rcx - 1]
xor r8d, r8d
lea rcx, [rsp + 0x2c8]
call fcn.140011880
cmp rax, 0xffffffffffffffff
je 0x140036e33
mov ecx, 0xe0
call fcn.140001bf0
mov rcx, rax
call fcn.1400857ac
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, qword [0x1400efec0]
call qword [sym.imp.USER32.dll_SendMessageA]
lea rdi, [rsp + 0x2d0]
cmp qword [rsp + 0x2e8], 0x10
cmovae rdi, qword [rsp + 0x2d0]
mov ecx, 0x3d
call fcn.140001bf0
mov rdx, rdi
mov rcx, rax
call fcn.140009e30
nop
cmp qword [rsp + 0x2e8], 0x10
jb 0x140036e92
mov rcx, qword [rsp + 0x2d0]
call fcn.140082dfc
mov qword [rsp + 0x2e8], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2e0], rbp
mov byte [rsp + 0x2d0], 0
lea rcx, [rsp + 0x60]
call fcn.140012520
mov rcx, qword [rsp + 0x60]
call fcn.140082dfc
nop
cmp qword [rsp + 0x2c0], 0x10
jb 0x140036edb
mov rcx, qword [rsp + 0x2a8]
call fcn.140082dfc
mov qword [rsp + 0x2c0], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x2b8], rbp
mov byte [rsp + 0x2a8], 0
cmp qword [rsp + 0x298], 0x10
jb 0x140036f0f
mov rcx, qword [rsp + 0x280]
call fcn.140082dfc
mov qword [rsp + 0x298], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x290], rbp
mov byte [rsp + 0x280], 0
cmp qword [rsp + 0x270], 0x10
jb 0x140036f43
mov rcx, qword [rsp + 0x258]
call fcn.140082dfc
mov qword [rsp + 0x270], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x268], rbp
mov byte [rsp + 0x258], 0
mov rcx, rbx
call fcn.1400135e0
xor eax, eax
jmp 0x140036f92
mov rbx, qword [rsp + 0x50]
cmp qword [rbx + 0x20], 0x10
jb 0x140036f80
mov rcx, qword [rbx + 8]
call fcn.140082dfc
mov qword [rbx + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x18], rbp
mov byte [rbx + 8], 0
xor eax, eax
mov rcx, qword [rsp + 0x2f8]
xor rcx, rsp
call fcn.140083f40
mov rbx, qword [rsp + 0x350]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret