Function at 0x54b6f9
Capabilities:
Check http status code
Receive http response

Disassembly:
push 0x3f8
mov eax, 0x5d456d
call fcn.00573e45
mov esi, ecx
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [esi + 0x38]
and dword [ebp - 0x30], 0
push 7
mov dword [ebp - 0x3f4], edx
mov byte [ebp - 0x3e2], dl
mov dword [ebp - 0x3f8], edx
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x400], edx
mov byte [ebp - 0x3e3], dl
pop edx
mov dword [ebp - 0x3f0], ebx
mov dword [ebp - 0x3ec], ecx
mov dword [ebp - 0x3e8], edi
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x40], ax
and dword [ebp - 4], eax
and dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp dword [ecx + 0x10], 0
mov byte [ebp - 0x3e1], 0
sete al
test al, al
je 0x54b782
xor eax, eax
jmp 0x54b78e
cmp dword [ecx + 0x14], 8
jb 0x54b78c
mov eax, dword [ecx]
jmp 0x54b78e
mov eax, ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x54b830
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x2f00
jne 0x54b7fc
call fcn.0054c579
mov edx, dword [ebp - 0x400]
inc edx
mov dword [ebp - 0x400], edx
cmp edx, 0xa
jle 0x54ba2c
cmp byte [ebp + 0x14], 0
je 0x54ba3d
push ecx
push ebx
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.0054534c
push 0x6bd4a4
lea eax, [ebp - 0x3e0]
push eax
call fcn.00575c7a
lea eax, [ebp - 0x3f4]
mov ecx, esi
push eax
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c1e6
test al, al
je 0x54ba5c
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c5ca
mov edi, dword [ebp - 0x3e8]
jmp 0x54ba2c
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x54b8d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3fc], eax
cmp eax, 0x2eef
jne 0x54b893
cmp byte [ebp - 0x3e2], 0
jne 0x54b893
push 3
mov edx, str._retrying_request_with_NTLM_authentication
pop ecx
call fcn.00520c72
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x54ba7a
mov byte [ebp - 0x3e2], 1
mov ecx, dword [ebp - 0x3ec]
jmp 0x54b76c
lea eax, [ebp - 0x3fc]
push eax
call fcn.0054c61c
lea eax, [ebp - 0x3f4]
mov ecx, esi
push eax
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c1e6
test al, al
je 0x54baa1
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c66e
mov edi, dword [ebp - 0x3e8]
jmp 0x54b888
push 0
push 0x13
push ebx
lea eax, [ebp - 0x58]
push eax
call fcn.0054bd22
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push 0xa
cmovae eax, dword [ebp - 0x58]
push 0
push eax
call fcn.00598804
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp - 0x3ec]
mov ecx, 0xce
cmp dword [eax + 0x10], 0
sete al
test al, al
lea eax, [ecx - 6]
cmovne ecx, eax
cmp ecx, ebx
je 0x54ba08
cmp ebx, eax
je 0x54ba08
cmp ebx, 0x191
jne 0x54b970
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
cmp eax, 3
jg 0x54bac4
cmp eax, 1
mov ecx, esi
setle al
movzx eax, al
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3f0]
call fcn.0054be7f
mov byte [ebp - 0x3e1], 1
jmp 0x54b9b5
mov eax, dword [ebp - 0x3f8]
inc eax
mov dword [ebp - 0x3f8], eax
cmp eax, 3
jle 0x54ba0f
lea eax, [ebp - 0x3f4]
mov ecx, esi
push eax
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c1e6
mov edi, dword [ebp - 0x3e8]
mov cl, al
xor eax, eax
mov byte [ebp - 0x3e1], cl
mov dword [ebp - 0x3f8], eax
test cl, cl
je 0x54ba0f
mov al, byte [esi + 0x9c]
test al, al
jne 0x54b9de
sub esp, 0x18
lea eax, [esi + 0x6c]
mov ecx, esp
push eax
call fcn.00409657
push dword [esi + 0xa4]
lea ecx, [esi + 0x84]
call fcn.00550054
mov eax, dword [esi + 0x94]
sub eax, dword [esi + 0x90]
push 0x18
cdq
pop ecx
idiv ecx
cmp edi, eax
jae 0x54ba0f
push dword [esi + 0xa4]
lea ecx, [esi + 0x84]
push edi
call fcn.005502c9
jmp 0x54ba0f
mov byte [ebp - 0x3e3], 1
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040968b
cmp byte [ebp - 0x3e1], 0
je 0x54bad4
mov ecx, dword [ebp - 0x3ec]
mov ebx, dword [ebp - 0x3f0]
jmp 0x54b76c
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040968b
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040968b
xor al, al
jmp 0x54bb22
cmp byte [ebp + 0x14], 0
je 0x54ba3d
push str.OHttp::SendRequest:_Http_Send_request_failed
push ebx
push 0x7d
lea ecx, [ebp - 0x3e0]
call fcn.004f3708
jmp 0x54b7eb
cmp byte [ebp + 0x14], 0
je 0x54ba3d
push str.OHttp::SendRequest:_Failed_to_set_authentication_scheme
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x85
lea ecx, [ebp - 0x3e0]
call fcn.00545e49
jmp 0x54b7eb
cmp byte [ebp + 0x14], 0
je 0x54ba3d
push str.OHttp::SendRequest:_Http_Receive_request_failed
push dword [ebp - 0x3fc]
lea ecx, [ebp - 0x3e0]
push 0x7e
call fcn.00537c8a
jmp 0x54b7eb
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040968b
mov al, byte [ebp - 0x3e3]
test al, al
jne 0x54bafa
cmp byte [ebp + 0x14], al
je 0x54ba3d
push ecx
push ebx
push ecx
lea ecx, [ebp - 0x3e0]
call fcn.0054c6c0
jmp 0x54b7eb
test edi, edi
jne 0x54bb02
xor eax, eax
jmp 0x54bb05
lea eax, [edi - 1]
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [esi + 0x38], eax
call fcn.0040968b
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040968b
mov al, 1
call fcn.00573def
ret 0x10