Function at 0x14002ded0
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x12c0
call fcn.140029ba0
sub rsp, rax
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rax, qword [0x14005bd60]
xor rax, rsp
mov qword [rsp + 0x12b0], rax
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x6c], 0
mov rax, qword [rsp + 0x12d0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov eax, 0x50
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x90], 0
xor edx, edx
lea rcx, [rsp + 0x90]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], 0
jne 0x14002e5cf
mov rax, qword [rsp + 0x12d8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12d8]
mov dword [rcx], eax
mov dword [rsp + 0x78], 0x2000000
mov dword [rsp + 0x48], 0x824
mov dword [rsp + 0x7c], 0
mov r9d, dword [rsp + 0x78]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x14002e061
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002e05f
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x108], rax
mov eax, 2
mov rcx, qword [rsp + 0x108]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.mfc120u.dll_Ordinal_265
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14002e05f
mov dword [rsp + 0x7c], 1
mov r9d, dword [rsp + 0x78]
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
mov dword [rsp + 0x4c], eax
jmp 0x14002e071
lea rax, [rsp + 0x260]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x4c], 0
je 0x14002e085
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x70]
call sub.mfc120u.dll_Ordinal_2256
test eax, eax
je 0x14002e0b6
mov byte [rsp + 0x31], 1
jmp 0x14002e0bb
mov byte [rsp + 0x31], 0
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14002e5aa
cmp dword [rsp + 0x6c], 0x1001
jne 0x14002e108
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x32], al
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x32]
jmp 0x14002e5f9
mov rax, qword [rsp + 0x12d8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12d8]
mov dword [rcx], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14004ce78]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14002e5aa
mov qword [rsp + 0x60], 0
mov dword [rsp + reloc.mfc120u.dll_Ordinal_320], Ordinal_286
mov dword [rsp + reloc.mfc120u.dll_Ordinal_324], 0
mov dword [rsp + 0x148], 0
mov dword [rsp + 0x14c], 0
mov dword [rsp + 0x150], 0
xor eax, eax
mov word [rsp + 0x154], ax
lea rax, [rsp + 0x156]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x254], ax
xor eax, eax
mov word [rsp + 0x256], ax
lea rax, [rsp + 0x258]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x150], 2
mov dword [rsp + reloc.mfc120u.dll_Ordinal_324], 6
mov r8b, 1
mov edx, 8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 4
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov qword [rsp + 0xe8], rax
mov r8, qword [rsp + 0xe8]
mov edx, 0xa
lea rcx, [rsp + reloc.mfc120u.dll_Ordinal_320]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14002e28d
mov ecx, InitCommonControls
call sub.mfc120u.dll_Ordinal_1484
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
je 0x14002e264
mov rcx, qword [rsp + 0xc8]
call fcn.14002c330
mov qword [rsp + 0xc0], rax
jmp 0x14002e270
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0xc0]
mov qword [rsp + reloc.mfc120u.dll_Ordinal_280], rax
mov rax, qword [rsp + reloc.mfc120u.dll_Ordinal_280]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_5576]
cmp eax, 1
jle 0x14002e327
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_4467]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jle 0x14002e327
mov r8d, dword [rsp + 0x68]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_7940]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + reloc.mfc120u.dll_Ordinal_296], rax
mov rdx, qword [rsp + reloc.mfc120u.dll_Ordinal_296]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1496]
nop
lea rcx, [rsp + 0xd0]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov dword [rsp + 0x38], 0xbb8
cmp dword [rsp + 0x38], 0
je 0x14002e387
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1636]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x84240200
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x14002e525
mov rax, qword [rsp + 0x12d8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12d8]
mov dword [rcx], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x12e0]
mov dword [rcx], eax
mov rax, qword [rsp + 0x12e8]
mov rcx, qword [rsp + 0x12e0]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x12f0]
test eax, eax
je 0x14002e523
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x14002e469
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0xa0]
call qword [rax]
mov qword [rsp + 0xe0], rax
jmp 0x14002e475
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0x60], 0
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x14002e523
mov rax, qword [rsp + 0x12d8]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x12d8]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + 0x12d8]
mov rcx, qword [rsp + 0x12d0]
call fcn.14002ded0
mov byte [rsp + 0x34], al
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x34]
jmp 0x14002e5f9
jmp 0x14002e533
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x60], 0
je 0x14002e593
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x14002e587
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call qword [rax]
mov qword [rsp + 0x100], rax
jmp 0x14002e593
mov qword [rsp + 0x100], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
cmp dword [rsp + 0x7c], 0
je 0x14002e5cf
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x110], rax
mov rcx, qword [rsp + 0x110]
call sub.mfc120u.dll_Ordinal_266
nop
jmp 0x14002e5d1
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x33], al
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, byte [rsp + 0x33]
mov rcx, qword [rsp + 0x12b0]
xor rcx, rsp
call fcn.140029b50
add rsp, 0x12c0
pop rdi
ret