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

Disassembly:
push 0x400
mov eax, 0x6a451c
call fcn.0064d018
mov esi, ecx
mov edx, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f8], ecx
mov dword [ebp - 0x3ec], edi
mov dword [ebp - 0x3fc], ebx
mov byte [ebp - 0x3e6], bl
mov dword [ebp - 0x400], ebx
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x404], ebx
mov byte [ebp - 0x3e7], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
mov byte [ebp - 0x3e5], bl
cmp dword [ecx + 0x10], ebx
jne 0x5073f4
mov eax, ebx
jmp 0x5073fe
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x5073fe
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x5074a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3f4], eax
cmp eax, 0x2f00
jne 0x507464
push str._WinHttp_request_resend_is_required
push 0x64
mov edx, 0x7c1
mov ecx, 0x25408c3
call fcn.004f4c26
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
pop ecx
pop ecx
cmp eax, 0xa
jle 0x5076c9
cmp byte [ebp + 0x14], 0
jne 0x5077b3
jmp 0x5076da
lea eax, [ebp - 0x3fc]
mov ecx, esi
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00507e5d
test al, al
je 0x5076f1
lea eax, [ebp - 0x3ec]
push eax
push str.OHttp::SendRequest:_Http_Send_request_failed__trying_proxy_index__d.
push ecx
mov ecx, 0x25408c4
call fcn.005081ca
mov edi, dword [ebp - 0x3ec]
jmp 0x5076c9
push ebx
push dword [ebp - 0x3f0]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x50755e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3f4], eax
cmp eax, 0x2eef
jne 0x507512
cmp byte [ebp - 0x3e6], 0
jne 0x507512
push str._retrying_request_with_NTLM_authentication
push 0x64
mov edx, 0x7c1
mov ecx, 0x25408c5
call fcn.004f4c26
pop ecx
pop ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x3f0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x507714
mov byte [ebp - 0x3e6], 1
jmp 0x5076c9
lea eax, [ebp - 0x3f4]
mov ecx, 0x25408c6
push eax
push str._WinHttpReceiveResponse_failed__error_d
push 0x64
call fcn.0050207b
lea eax, [ebp - 0x3fc]
mov ecx, esi
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00507e5d
test al, al
je 0x50773b
lea eax, [ebp - 0x3ec]
push eax
push str.OHttp::SendRequest:_Http_Receive_request_failed__trying_proxy_index__d.
push ecx
mov ecx, 0x25408c7
jmp 0x507493
push ebx
push 0x13
push dword [ebp - 0x3f0]
lea eax, [ebp - 0x58]
push eax
call fcn.005079cf
mov byte [ebp - 4], 2
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push 0xa
cmovae eax, dword [ebp - 0x58]
push ebx
push eax
call fcn.0067202d
mov edx, dword [ebp - 0x3f8]
mov ecx, eax
mov eax, 0xce
mov dword [ebp - 0x40c], ecx
add esp, 0xc
cmp dword [edx + 0x10], ebx
lea edx, [eax - 6]
cmove eax, edx
cmp eax, ecx
je 0x5076a9
cmp ecx, edx
je 0x5076a9
cmp ecx, 0x191
jne 0x507601
mov eax, dword [ebp - 0x408]
inc eax
mov dword [ebp - 0x408], eax
cmp eax, 3
jg 0x50775b
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.00507b14
mov byte [ebp - 0x3e5], 1
jmp 0x507646
mov eax, dword [ebp - 0x400]
inc eax
mov dword [ebp - 0x400], eax
cmp eax, 3
jle 0x5076b0
lea eax, [ebp - 0x3fc]
mov ecx, esi
push eax
lea eax, [ebp - 0x3ec]
push eax
call fcn.00507e5d
mov edi, dword [ebp - 0x3ec]
mov cl, al
mov byte [ebp - 0x3e5], cl
mov eax, ebx
mov dword [ebp - 0x400], eax
test cl, cl
je 0x5076b0
cmp byte [esi + 0x9c], 0
jne 0x507674
sub esp, 0x18
lea eax, [esi + 0x6c]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040d595
push dword [esi + 0xa4]
lea ecx, [esi + 0x84]
call fcn.00508869
mov eax, dword [esi + 0x94]
lea ecx, [esi + 0x84]
sub eax, dword [esi + 0x90]
cdq
mov dword [ebp - 0x3f4], 0x18
idiv dword [ebp - 0x3f4]
cmp edi, eax
jae 0x5076b0
push dword [esi + 0xa4]
push edi
call fcn.00508b27
jmp 0x5076b0
mov byte [ebp - 0x3e7], 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040d475
cmp byte [ebp - 0x3e5], 0
je 0x507767
mov ecx, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
jmp 0x5073e5
lea ecx, [ebp - 0x28]
call fcn.0040d475
lea ecx, [ebp - 0x40]
call fcn.0040d475
xor al, al
jmp 0x5077ab
cmp byte [ebp + 0x14], 0
je 0x5076da
push str.OHttp::SendRequest:_Http_Send_request_failed
push dword [ebp - 0x3f4]
lea ecx, [ebp - 0x3e4]
push 0x7d
call fcn.0047fb54
jmp 0x5077c5
cmp byte [ebp + 0x14], 0
je 0x5076da
push str.OHttp::SendRequest:_Failed_to_set_authentication_scheme
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x85
lea ecx, [ebp - 0x3e4]
call fcn.004fcc77
jmp 0x5077c5
cmp byte [ebp + 0x14], 0
je 0x5076da
push str.OHttp::SendRequest:_Http_Receive_request_failed
push dword [ebp - 0x3f4]
lea ecx, [ebp - 0x3e4]
push 0x7e
call fcn.004fcc97
jmp 0x5077c5
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040d475
mov al, byte [ebp - 0x3e7]
test al, al
jne 0x50778f
cmp byte [ebp + 0x14], al
je 0x5076da
push ecx
push dword [ebp - 0x40c]
push ecx
lea ecx, [ebp - 0x3e4]
call fcn.005082d3
jmp 0x5077c5
test edi, edi
je 0x507796
lea ebx, [edi - 1]
lea ecx, [ebp - 0x28]
mov dword [esi + 0x38], ebx
call fcn.0040d475
lea ecx, [ebp - 0x40]
call fcn.0040d475
mov al, 1
call fcn.0064cfc2
ret 0x10
push ecx
push 0x2f00
push ecx
lea ecx, [ebp - 0x3e4]
call fcn.005081ae
push 0x811494
lea eax, [ebp - 0x3e4]
push eax
call fcn.0064f293
int3