Function at 0x1400e4720
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x358], rbx
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov r12, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
xor esi, esi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x80], rsi
lea rdx, str.Content_Type:_application_json
lea rcx, [rbp - 0x60]
call fcn.14000d360
nop
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, str.MBSetup
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r13, rax
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1400e48a6
mov qword [rbp - 0x78], rsi
lea rcx, [rbp - 0x78]
call fcn.140298a4c
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x40]
call fcn.140298898
lea r9, [rbp - 0x40]
lea r8, str._F__T__UTC__z_
mov edx, 0x100
lea rcx, [rbp - 0x10]
call fcn.140298558
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000d360
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
lea edx, [rsi + 0x38]
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpOpen:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
nop
lea rcx, [rbp - 0x60]
call fcn.14000c300
nop
jmp 0x1400e4f9b
mov dword [rsp + 0x20], 0x2710
mov edx, 0x2710
mov r9d, edx
mov r8d, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1400e4971
lea rcx, [rsp + 0x40]
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400e48e3
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, 0x3f
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpSetTimeouts:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
mov qword [rsp + 0x78], rsi
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x1400e4983
mov rdx, qword [r15]
xor r8d, r8d
xor r9d, r9d
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400e4a64
lea rcx, [rsp + 0x40]
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400e49b9
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, 0x45
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpConnect:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
nop
lea rcx, [rbp - 0x60]
call fcn.14000c300
nop
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbp - 0x80], rsi
jmp 0x1400e4f9b
mov qword [rbp - 0x78], rsi
mov r8, r12
cmp qword [r12 + 0x18], 8
jb 0x1400e4a77
mov r8, qword [r12]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
mov qword [rbp - 0x78], rax
test rax, rax
jne 0x1400e4b69
lea rcx, [rsp + 0x40]
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400e4ac5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, 0x4b
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpOpenRequest:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x78], rsi
jmp 0x1400e4a48
xor ebx, ebx
mov esi, ebx
nop dword [rax]
mov eax, esi
inc esi
cmp eax, 5
jae 0x1400e4f67
mov rax, qword [rdi + 0x10]
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400e4b8e
mov r9, qword [rdi]
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, dword [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1400e4cb3
mov qword [rbp - 0x68], rbx
lea rcx, [rbp - 0x68]
call fcn.140298a4c
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x40]
call fcn.140298898
lea r9, [rbp - 0x40]
lea r8, str._F__T__UTC__z_
mov edx, 0x100
lea rcx, [rbp - 0x10]
call fcn.140298558
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x40]
call fcn.14000d360
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, 0x56
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpSendRequest:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x1400e4b70
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1400e4d92
lea rcx, [rsp + 0x40]
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400e4cdf
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, 0x65
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpReceiveResponse:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
nop
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor esi, esi
mov qword [rbp - 0x78], rsi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x78], rsi
jmp 0x1400e4a48
mov dword [rbp - 0x70], ebx
mov dword [rbp - 0x6c], 4
mov qword [rsp + 0x28], rbx
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x1400e4e69
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400e4de0
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, WSASetLastError
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Error_calling_WinHttpQueryHeaders_STATCODE_:
call fcn.14002fb80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
jmp 0x1400e4d63
call fcn.1400e4560
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400e4e7d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404784e0]
call fcn.14003fb60
lea rdx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov rcx, rax
call fcn.14002fb80
mov rcx, rax
lea rdx, [0x1403b9014]
call fcn.14002fb80
mov edx, reloc.WS2_32.dll_WSAStartup
mov rcx, rax
call fcn.140026f80
mov rcx, rax
lea rdx, str.:_Server_returned_a_status_code_of:
call fcn.14002fb80
mov edx, dword [rbp - 0x70]
mov rcx, rax
call fcn.140026dc0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002bcc0
movzx edx, ax
mov rcx, rbx
call fcn.140056640
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rsp + 0x40]
call fcn.14000c300
mov eax, dword [rbp - 0x70]
add eax, 0xffffff38
xor cl, cl
movzx ebx, cl
cmp eax, 1
mov eax, 1
cmovbe ebx, eax
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor esi, esi
mov qword [rbp - 0x78], rsi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x78], rsi
lea rcx, [rbp - 0x60]
call fcn.14000c300
nop
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbp - 0x80], rsi
mov rcx, r15
call fcn.14000c300
nop
mov rcx, r12
call fcn.14000c300
movzx eax, bl
jmp 0x1400e4fae
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbp - 0x78], rbx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x78], rbx
lea rcx, [rbp - 0x60]
call fcn.14000c300
nop
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbp - 0x80], rbx
mov rcx, r15
call fcn.14000c300
nop
mov rcx, r12
call fcn.14000c300
xor al, al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140282c10
mov rbx, qword [rsp + 0x358]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret