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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fb80
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4cb06c]
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 - 0x18], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
push 0x1e
xor eax, eax
mov dword [ebp - 0x20], 0
push str.Content_Type:_application_json
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00407780
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 - 0x18], edi
test edi, edi
jne 0x4581f1
lea ecx, [ebp - 0x58]
call fcn.0044e680
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x458154
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x38
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_on_WinHttpOpen:
mov ecx, eax
call fcn.0040ab10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004167c0
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x4581e4
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4581da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45883e
push edx
push ecx
call fcn.0045d989
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x458747
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x4582bf
lea ecx, [ebp - 0x58]
call fcn.0044e680
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x45822b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x3f
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_on_WinHttpSetTimeouts:
mov ecx, eax
call fcn.0040ab10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004167c0
push eax
call fcn.0040ae80
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4582bf
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4582b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458843
push edx
push ecx
call fcn.0045d989
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 edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 6
test edi, edi
jne 0x45839b
lea ecx, [ebp - 0x58]
call fcn.0044e680
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x4582fe
mov eax, dword [eax]
push esi
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x45
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_on_WinHttpConnect:
mov ecx, eax
call fcn.0040ab10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004167c0
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x45838e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458384
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458848
push edx
push ecx
call fcn.0045d989
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
jmp 0x458744
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push 0x800000
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push 0
push eax
push str.POST
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 8
test esi, esi
jne 0x458479
lea ecx, [ebp - 0x58]
call fcn.0044e680
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4583e6
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x4b
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_on_WinHttpOpenRequest:
mov ecx, eax
call fcn.0040ab10
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.004167c0
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x4585e9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4585df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45884d
jmp 0x4585df
xor ecx, ecx
nop dword [eax + eax]
mov eax, ecx
inc ecx
mov dword [ebp - 0x60], ecx
cmp eax, 5
jae 0x4585e9
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
mov edx, dword [ebx + 0x10]
jb 0x45849c
mov ecx, dword [ebx]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push edx
push edx
push ecx
push dword [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x458580
lea ecx, [ebp - 0x58]
call fcn.0044e680
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4584d6
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x56
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_on_WinHttpSendRequest:
mov ecx, eax
call fcn.0040ab10
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.004167c0
push eax
call fcn.0040ae80
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x45856a
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458560
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45883e
push edx
push ecx
call fcn.0045d989
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
jmp 0x458480
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x458601
lea ecx, [ebp - 0x58]
call fcn.0044e680
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4585a4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x65
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_on_WinHttpReceiveResponse:
jmp 0x45841c
push edx
push ecx
call fcn.0045d989
add esp, 8
xor bl, bl
test esi, esi
je 0x45873b
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x458741
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 0x45867d
call fcn.0044e680
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x458642
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x6e
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Error_calling_WinHttpQueryHeaders_STATCODE_:
jmp 0x45841c
call fcn.0044e680
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x458691
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_n_sucommon_src_sucommon_simplehttpposter.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x73
mov ecx, eax
call fcn.00407be0
mov edx, str.:_Server_returned_a_status_code_of:
mov ecx, eax
call fcn.0040ab10
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004167c0
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 8
jb 0x45871b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458711
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45884d
push edx
push ecx
call fcn.0045d989
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0xc8
je 0x45872c
cmp eax, 0xc9
jne 0x458733
mov bl, 1
jmp 0x4585eb
mov bl, byte [ebp - 0x3d]
jmp 0x4585eb
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x458781
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458777
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45884d
push edx
push ecx
call fcn.0045d989
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
test edi, edi
je 0x45879c
push edi
call esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4587d6
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4587cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45884d
push edx
push ecx
call fcn.0045d989
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 0x458820
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458816
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45884d
push edx
push ecx
call fcn.0045d989
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.0045d468
mov esp, ebp
pop ebp
ret
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
int3