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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b49b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push 0x1e
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.Content_Type:_application_json
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00407cf0
push 0
push 0
push 0
push 1
push str.MBSetup
mov byte [ebp - 4], 3
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x468051
lea ecx, [ebp - 0x58]
call fcn.0045e3b0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x467fb4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x38
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_on_WinHttpOpen:
mov ecx, eax
call fcn.0040f940
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004196c0
push eax
call fcn.0040fcb0
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x468044
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46803a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x468528
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x46811f
lea ecx, [ebp - 0x58]
call fcn.0045e3b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x46808b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x3f
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_on_WinHttpSetTimeouts:
mov ecx, eax
call fcn.0040f940
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004196c0
push eax
call fcn.0040fcb0
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46811f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468115
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468620
push edx
push ecx
call fcn.0046d84e
add esp, 8
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 6
test eax, eax
jne 0x468193
lea ecx, [ebp - 0x58]
call fcn.0045e3b0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x468158
mov eax, dword [eax]
push esi
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x45
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_on_WinHttpConnect:
jmp 0x467fea
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push 0x800000
cmovae ecx, dword [ebp + 0x20]
push 0
push 0
push 0
push ecx
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 8
test esi, esi
jne 0x468286
lea ecx, [ebp - 0x58]
call fcn.0045e3b0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4681de
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x4b
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_on_WinHttpOpenRequest:
mov ecx, eax
call fcn.0040f940
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.004196c0
push eax
call fcn.0040fcb0
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x46826e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468264
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
xor bl, bl
test esi, esi
je 0x46851d
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x468523
xor ecx, ecx
mov eax, ecx
inc ecx
mov dword [ebp - 0x60], ecx
cmp eax, 5
jae 0x46826e
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
mov edx, dword [ebx + 0x10]
jb 0x4682a0
mov ecx, dword [ebx]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push edx
push edx
push ecx
push dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x468384
lea ecx, [ebp - 0x58]
call fcn.0045e3b0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4682da
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x56
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_on_WinHttpSendRequest:
mov ecx, eax
call fcn.0040f940
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.004196c0
push eax
call fcn.0040fcb0
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46836e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468364
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
jmp 0x468288
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4683e3
lea ecx, [ebp - 0x58]
call fcn.0045e3b0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4683a8
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x65
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_on_WinHttpReceiveResponse:
jmp 0x468214
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 4
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x58]
test eax, eax
jne 0x46845f
call fcn.0045e3b0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x468424
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x6e
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Error_calling_WinHttpQueryHeaders_STATCODE_:
jmp 0x468214
call fcn.0045e3b0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x468473
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e84e8
call fcn.00410760
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040f940
mov edx, 0x4c7114
mov ecx, eax
call fcn.0040f940
push 0x73
mov ecx, eax
call fcn.0040df40
mov edx, str.:_Server_returned_a_status_code_of:
mov ecx, eax
call fcn.0040f940
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004196c0
push eax
call fcn.0040fcb0
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x4684fd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4684f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0xc8
je 0x46850e
cmp eax, 0xc9
jne 0x468515
mov bl, 1
jmp 0x468270
mov bl, byte [ebp - 0x3d]
jmp 0x468270
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x38]
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x468562
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test edi, edi
je 0x46857d
push edi
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4685b3
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4685a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x4685fd
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4685f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46861b
push edx
push ecx
call fcn.0046d84e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d32d
mov esp, ebp
pop ebp
ret
call fcn.0048879c
call fcn.0048879c
int3