Function at 0x474870
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b53f1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x4de080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 1
mov dword [ecx], 0
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], str.Content_Type
call fcn.004133c0
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov edx, dword [ebp - 0x70]
mov ecx, edx
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x474920
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.0040d840
xorps xmm0, xmm0
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [ebp - 0x6c]
mov byte [ebp - 0x6c], 0
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [ebp - 0x5c]
movq qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x18]
call fcn.004753a0
lea ecx, [ebp - 0xa4]
call fcn.004617b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
push 7
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.MBSetup
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
call fcn.0040df90
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00467f40
mov byte [ebp - 4], 1
mov esi, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], esi
cmp ecx, 7
jbe 0x4749fc
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4749f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475313
push ecx
push edx
call fcn.0048355d
add esp, 8
test esi, esi
jne 0x474a09
mov byte [ebp - 0x41], 0
jmp 0x475147
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x474ae0
lea ecx, [ebp - 0x8c]
call fcn.00467c30
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x474a46
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xb1
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_on_WinHttpSetTimeouts:
mov ecx, eax
call fcn.00411040
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0041b4e0
push eax
call fcn.004113c0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x78]
cmp ecx, 7
jbe 0x474ae0
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474ad6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475318
push ecx
push edx
call fcn.0048355d
add esp, 8
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.00467d20
cmp dword [eax + 0x14], 7
jbe 0x474af3
mov eax, dword [eax]
push 0
push 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x474b42
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474b38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47531d
push ecx
push edx
call fcn.0048355d
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
lea ecx, [ebp - 0x8c]
mov word [ebp - 0x30], ax
test edi, edi
jne 0x474c17
call fcn.00467c30
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 7
mov edi, dword [eax + 0x10]
jbe 0x474b78
mov eax, dword [eax]
push edi
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xb7
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_on_WinHttpConnect:
mov ecx, eax
call fcn.00411040
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x78]
add esp, 4
cmp ecx, 7
jbe 0x474c0e
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474c04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475322
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 0x41], 0
jmp 0x475140
mov edx, dword [ebp - 0x54]
call fcn.00467d20
cmp dword [eax + 0x14], 7
jbe 0x474c27
mov eax, dword [eax]
push 0x800000
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
mov ecx, dword [ebp - 0x78]
cmp ecx, 7
jbe 0x474c85
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474c7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475327
push ecx
push edx
call fcn.0048355d
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
test esi, esi
jne 0x474d5d
lea ecx, [ebp - 0x30]
call fcn.00467c30
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x474cbb
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xbd
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_on_WinHttpOpenRequest:
mov ecx, eax
call fcn.00411040
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 7
jbe 0x474d4e
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474d44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47532c
push ecx
push edx
call fcn.0048355d
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 0x41], 0
jmp 0x47513a
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
cmp eax, ecx
je 0x474e84
push eax
lea ecx, [ebp - 0x30]
call fcn.004133c0
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cmp eax, 2
jb 0x474dad
lea eax, [ecx + 2]
cmp edx, 0xf
mov dword [ebp - 0x20], eax
mov edx, 0x203a
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x474dc1
push 2
push 0x4c1738
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
push 2
call fcn.004131f0
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
add eax, 0x18
push eax
call fcn.00413350
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x6c]
call fcn.00467d20
cmp dword [eax + 0x14], 7
jbe 0x474de3
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
cmp ecx, 7
jbe 0x474e32
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474e25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475313
push ecx
push edx
call fcn.0048355d
mov eax, dword [ebp - 0x54]
add esp, 8
test eax, eax
je 0x474f80
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x474e72
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x474e68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475336
push ecx
push edx
call fcn.0048355d
add esp, 8
mov eax, dword [ebp - 0x48]
add eax, 0x30
mov dword [ebp - 0x48], eax
cmp eax, dword [ebp - 0x4c]
jne 0x474d71
xor ecx, ecx
mov eax, ecx
inc ecx
mov dword [ebp - 0x48], ecx
cmp eax, 5
jae 0x47512d
mov edx, dword [ebp - 0x50]
mov eax, edx
cmp dword [edx + 0x14], 0xf
mov ecx, dword [edx + 0x10]
jbe 0x474ea5
mov eax, dword [edx]
push 0
push ecx
push ecx
push eax
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x475070
lea ecx, [ebp - 0x6c]
call fcn.00467c30
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x474ed4
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xd6
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_on_WinHttpSendRequest:
mov ecx, eax
call fcn.00411040
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0041b4e0
push eax
call fcn.004113c0
mov byte [ebp - 4], 8
add esp, 4
mov ecx, dword [ebp - 0x58]
cmp ecx, 7
jbe 0x474f6d
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474f63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475313
push ecx
push edx
call fcn.0048355d
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x48]
jmp 0x474e86
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x4c], eax
call fcn.00467c30
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x474fa0
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xca
mov ecx, eax
call fcn.0040f7e0
mov edx, 0x4c1738
mov ecx, eax
call fcn.00411040
mov edx, str.Error_calling_WinHttpAddRequestHeaders:
mov ecx, eax
call fcn.00411040
push dword [ebp - 0x4c]
mov ecx, eax
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x475039
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47502f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475331
push ecx
push edx
call fcn.0048355d
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x47512d
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x475123
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475336
jmp 0x475123
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x475170
lea ecx, [ebp - 0x6c]
call fcn.00467c30
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x475098
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xe5
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_on_WinHttpReceiveResponse:
mov ecx, eax
call fcn.00411040
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x47512d
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475123
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47533b
push ecx
push edx
call fcn.0048355d
add esp, 8
mov byte [ebp - 0x41], 0
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
mov esi, dword [ebp - 0x34]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebx + 0x18]
call fcn.0045e3d0
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483226
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], 4
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x47524d
lea ecx, [ebp - 0x6c]
call fcn.00467c30
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x4751b5
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xee
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_calling_WinHttpQueryHeaders_STATCODE_:
mov ecx, eax
call fcn.00411040
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
push eax
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x47512d
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x475123
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475340
jmp 0x475123
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
lea ecx, [ebp - 0x6c]
call fcn.00467c30
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x47526c
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4e14e8
call fcn.00412510
add esp, 4
mov edx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSimpleHttpPoster.cpp
mov ecx, eax
call fcn.00411040
mov edx, 0x4c14f8
mov ecx, eax
call fcn.00411040
push 0xf5
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Server_returned_a_status_code_of:
mov ecx, eax
call fcn.00411040
push dword [ebp - 0x18]
mov ecx, eax
call fcn.0041b4e0
push eax
call fcn.004113c0
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x4752f5
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4752eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475345
push ecx
push edx
call fcn.0048355d
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 0xc8
je 0x47530a
cmp eax, 0xc9
jne 0x475131
mov byte [ebp - 0x41], 1
jmp 0x475131
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
call fcn.0048878f
int3