Function at 0x464ce0
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 0x4b1150
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4e006c]
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.00407d50
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 0x464e21
lea ecx, [ebp - 0x58]
call fcn.0045b1b0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x464d84
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x38
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_on_WinHttpOpen:
mov ecx, eax
call fcn.0040be10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041e4e0
push eax
call fcn.0040c180
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x464e14
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464e0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x4652f8
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x464eef
lea ecx, [ebp - 0x58]
call fcn.0045b1b0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x464e5b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x3f
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_on_WinHttpSetTimeouts:
mov ecx, eax
call fcn.0040be10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041e4e0
push eax
call fcn.0040c180
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x464eef
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464ee5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653f0
push edx
push ecx
call fcn.0046a609
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 0x464f63
lea ecx, [ebp - 0x58]
call fcn.0045b1b0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x464f28
mov eax, dword [eax]
push esi
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x45
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_on_WinHttpConnect:
jmp 0x464dba
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 0x465056
lea ecx, [ebp - 0x58]
call fcn.0045b1b0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x464fae
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x4b
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_on_WinHttpOpenRequest:
mov ecx, eax
call fcn.0040be10
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0041e4e0
push eax
call fcn.0040c180
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x46503e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465034
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
add esp, 8
xor bl, bl
test esi, esi
je 0x4652ed
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x4652f3
xor ecx, ecx
mov eax, ecx
inc ecx
mov dword [ebp - 0x60], ecx
cmp eax, 5
jae 0x46503e
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
mov edx, dword [ebx + 0x10]
jb 0x465070
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 0x465154
lea ecx, [ebp - 0x58]
call fcn.0045b1b0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4650aa
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x56
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_on_WinHttpSendRequest:
mov ecx, eax
call fcn.0040be10
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0041e4e0
push eax
call fcn.0040c180
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46513e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465134
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
jmp 0x465058
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4651b3
lea ecx, [ebp - 0x58]
call fcn.0045b1b0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x465178
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x65
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_on_WinHttpReceiveResponse:
jmp 0x464fe4
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 0x46522f
call fcn.0045b1b0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4651f4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x6e
mov ecx, eax
call fcn.00408660
mov edx, str.:_Error_calling_WinHttpQueryHeaders_STATCODE_:
jmp 0x464fe4
call fcn.0045b1b0
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x465243
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e45b8
call fcn.0040d910
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040be10
mov edx, str.:.
mov ecx, eax
call fcn.0040be10
push 0x73
mov ecx, eax
call fcn.00408660
mov edx, str.:_Server_returned_a_status_code_of:
mov ecx, eax
call fcn.0040be10
push dword [ebp - 0x14]
mov ecx, eax
call fcn.0041e4e0
push eax
call fcn.0040c180
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x4652cd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4652c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0xc8
je 0x4652de
cmp eax, 0xc9
jne 0x4652e5
mov bl, 1
jmp 0x465040
mov bl, byte [ebp - 0x3d]
jmp 0x465040
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x38]
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x465332
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465328
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
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 0x46534d
push edi
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x465383
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465379
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
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 0x4653cd
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4653c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4653eb
push edx
push ecx
call fcn.0046a609
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.0046a0e8
mov esp, ebp
pop ebp
ret
call fcn.0048552c
call fcn.0048552c
int3