Function at 0x1400ddef0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

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, 0x13460
call fcn.1401d4c90
sub rsp, rax
mov qword [rsp + 0x13428], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x13450], rax
mov dword [rsp + 0x13420], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x13180], rax
cmp qword [rsp + 0x13180], 0
jne 0x1400ddf9b
lea rdx, [0x140214e8c]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
xor eax, eax
mov word [rsp + 0x2760], ax
lea rdi, [rsp + 0x2762]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x2530], ax
lea rdi, [rsp + 0x2532]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x131a0], ax
lea rdi, [rsp + 0x131a2]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x2310], ax
lea rdi, [rsp + 0x2312]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x2070], ax
lea rdi, [rsp + 0x2072]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x50], ax
lea rdi, [rsp + 0x52]
xor eax, eax
mov ecx, 0x2000
rep stosb byte [rdi], al
mov dword [rsp + 0x2290], 0x68
lea rax, [rsp + 0x2760]
mov qword [rsp + 0x2298], rax
lea rax, [rsp + 0x2530]
mov qword [rsp + 0x22a8], rax
lea rax, [rsp + 0x131a0]
mov qword [rsp + 0x22b8], rax
lea rax, [rsp + 0x2310]
mov qword [rsp + 0x22c8], rax
lea rax, [rsp + 0x2070]
mov qword [rsp + 0x22d8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x22e8], rax
mov dword [rsp + 0x22a0], 0x104
mov dword [rsp + 0x22b0], 0x104
mov dword [rsp + 0x22c0], 0x104
mov dword [rsp + 0x22d0], 0x104
mov dword [rsp + 0x22e0], 0x104
mov dword [rsp + 0x22f0], 0x1000
mov rdx, qword [rsp + 0x13478]
lea rcx, [rsp + 0x133f0]
call fcn.1400db9e0
mov qword [rsp + 0x13430], rax
mov rcx, qword [rsp + 0x13430]
call fcn.140023510
lea r9, [rsp + 0x2290]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
lea rcx, [rsp + 0x133f0]
call fcn.140001490
mov dword [rsp + 0x2308], 2
mov r9d, 4
lea r8, [rsp + 0x2308]
mov edx, 0x58
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x2524], eax
cmp dword [rsp + 0x22a4], 2
jne 0x1400de1ca
mov dword [rsp + 0x133b0], 0x800
mov r9d, 4
lea r8, [rsp + 0x133b0]
mov edx, 0x54
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x2308], 0x3300
mov r9d, 4
lea r8, [rsp + 0x2308]
mov edx, 0x1f
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [rsp + 0x2524], eax
xor r9d, r9d
movzx r8d, word [rsp + 0x22b4]
mov rdx, qword [rsp + 0x22a8]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x2280], rax
cmp qword [rsp + 0x2280], 0
jne 0x1400de23f
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x140214f2c]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
mov dword [rsp + 0x2748], 0x100
cmp dword [rsp + 0x22a4], 2
jne 0x1400de267
mov eax, dword [rsp + 0x2748]
or eax, 0x800000
mov dword [rsp + 0x2748], eax
mov rcx, qword [rsp + 0x22d8]
call fcn.1400a8204
mov rdi, rax
mov rcx, qword [rsp + 0x22e8]
call fcn.1400a8204
lea rcx, [rdi + rax + 1]
mov eax, 2
mul rcx
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.140071ab0
mov qword [rsp + 0x133f8], rax
mov rax, qword [rsp + 0x133f8]
mov qword [rsp + 0x13190], rax
mov rdx, qword [rsp + 0x22d8]
mov rcx, qword [rsp + 0x13190]
call fcn.1400a9470
mov rdx, qword [rsp + 0x22e8]
mov rcx, qword [rsp + 0x13190]
call fcn.1400a9444
mov edx, dword [rsp + 0x2748]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x13190]
lea rdx, [0x140215508]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x2060], rax
cmp qword [rsp + 0x2060], 0
jne 0x1400de3a1
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x13190]
mov qword [rsp + 0x13400], rax
mov rcx, qword [rsp + 0x13400]
call fcn.140071aa8
lea rdx, [0x140214f7c]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
mov rax, qword [rsp + 0x13190]
mov qword [rsp + 0x13408], rax
mov rcx, qword [rsp + 0x13408]
call fcn.140071aa8
mov rdx, qword [rsp + 0x13490]
lea rcx, [rsp + 0x13410]
call fcn.1400db9e0
mov qword [rsp + 0x13438], rax
mov rax, qword [rsp + 0x13438]
mov qword [rsp + 0x13440], rax
mov rdx, qword [rsp + 0x13488]
lea rcx, [rsp + 0x13418]
call fcn.1400db9e0
mov qword [rsp + 0x13448], rax
mov rcx, qword [rsp + 0x13440]
call fcn.140023510
mov rdi, rax
mov rcx, qword [rsp + 0x13448]
call fcn.140023510
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
mov r9, rax
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
lea rcx, [rsp + 0x13418]
call fcn.140001490
nop
lea rcx, [rsp + 0x13410]
call fcn.140001490
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400de4f6
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x140214fcc]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
xor edx, edx
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x2520], 0
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2520]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [rsp + 0x2520], 0xc8
je 0x1400de5e7
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [rsp + 0x2520], 0x191
jne 0x1400de59d
mov ecx, 0x41
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0x2520], 0x192
jne 0x1400de5b5
mov ecx, 0x701
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14021517c]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
xor eax, eax
mov word [rsp + 0x12980], ax
lea rdi, [rsp + 0x12982]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov dword [rsp + 0x13188], 0x400
mov qword [rsp + 0x2300], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x13188]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x12980]
xor r8d, r8d
mov edx, 5
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400de666
lea rcx, [rsp + 0x12980]
call fcn.1400a9498
mov qword [rsp + 0x2300], rax
mov byte [rsp + 0x2970], 0
lea rdi, [rsp + 0x2971]
xor eax, eax
mov ecx, 0x10000
rep stosb byte [rdi], al
mov qword [rsp + 0x2740], 0
cmp qword [rsp + 0x13480], 0
je 0x1400de6b2
mov r9d, 0x640000
xor r8d, r8d
mov edx, 0x401
mov rcx, qword [rsp + 0x13480]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x2750]
call fcn.140002db0
nop
cmp qword [rsp + 0x13498], 0
je 0x1400de741
mov rax, qword [rsp + 0x13498]
cmp dword [rax], 0
jne 0x1400de741
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x140215264]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
lea rcx, [rsp + 0x2750]
call fcn.140001490
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
lea r9, [rsp + 0x2288]
mov r8d, 0x10000
lea rdx, [rsp + 0x2970]
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [rsp + 0x133b8], eax
mov eax, dword [rsp + 0x2288]
mov dword [rsp + 0x133b4], eax
cmp dword [rsp + 0x133b8], 0
je 0x1400de85b
cmp dword [rsp + 0x2288], 0
jbe 0x1400de85b
mov ecx, dword [rsp + 0x2288]
mov rax, qword [rsp + 0x2740]
add rax, rcx
mov qword [rsp + 0x2740], rax
cmp qword [rsp + 0x13480], 0
je 0x1400de835
cmp qword [rsp + 0x2300], 0
je 0x1400de7f5
mov rax, qword [rsp + 0x2740]
imul rax, rax, 0x64
xor edx, edx
div qword [rsp + 0x2300]
xor r9d, r9d
mov r8, rax
mov edx, 0x402
mov rcx, qword [rsp + 0x13480]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x133c0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400de835
lea rcx, [rsp + 0x133c0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x133c0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400de7f5
mov eax, dword [rsp + 0x133b4]
mov byte [rsp + rax + 0x2970], 0
lea rdx, [rsp + 0x2970]
lea rcx, [rsp + 0x2750]
call fcn.14004f8f0
jmp 0x1400de8d0
cmp dword [rsp + 0x133b8], 0
jne 0x1400de8ce
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x1402152ec]
mov rcx, qword [rsp + 0x13470]
call fcn.1400020d0
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
lea rcx, [rsp + 0x2750]
call fcn.140001490
mov rax, qword [rsp + 0x13470]
jmp 0x1400de967
jmp 0x1400de8fa
cmp qword [rsp + 0x2300], 0
je 0x1400de8ef
mov rax, qword [rsp + 0x2300]
cmp qword [rsp + 0x2740], rax
jb 0x1400de8ef
jmp 0x1400de8fa
xor eax, eax
cmp eax, 1
jne 0x1400de6c0
mov rcx, qword [rsp + 0x2060]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x2280]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x13180]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rcx, [rsp + 0x2750]
call fcn.140023510
mov rdx, rax
mov rcx, qword [rsp + 0x13470]
call fcn.1400dd060
mov eax, dword [rsp + 0x13420]
or eax, 1
mov dword [rsp + 0x13420], eax
lea rcx, [rsp + 0x2750]
call fcn.140001490
mov rax, qword [rsp + 0x13470]
mov rcx, qword [rsp + 0x13450]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x13460
pop rdi
ret