Function at 0x4a7850
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x779784
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x88bba0]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x44]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1ac], 4
mov byte [ebp - 0x181], al
test eax, eax
je 0x4a7976
push 0x48
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 0
push str.HTTPClient::performHandshake___Failed_to_send_credentials_to_the_server.
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
call fcn.0042fb60
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x2c]
cmp dword [ebp + 0x40], 8
lea eax, [ebp + 0x14]
push 0
cmovae ecx, dword [ebp + 0x2c]
cmp dword [ebp + 0x28], 8
push ecx
cmovae eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x188]
push eax
push 1
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
lea ecx, [ebp - 0x88]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x74], 0x10
jb 0x4a795c
push dword [ebp - 0x88]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
jmp 0x4a7a0f
cmp byte [ebp + 0x10], 0
je 0x4a7a0f
push 0x48
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.HTTPClient::performHandshake___Failed_to_send_credentials_to_the_server.
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042fb60
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x2c]
cmp dword [ebp + 0x40], 8
lea eax, [ebp + 0x14]
push 0
cmovae ecx, dword [ebp + 0x2c]
cmp dword [ebp + 0x28], 8
push ecx
cmovae eax, dword [ebp + 0x14]
push eax
push 1
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
lea ecx, [ebp - 0x28]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
jb 0x4a79fd
push dword [ebp - 0x28]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x1a8]
push 0x3a
push str.HTTPClient::performHandshake___Failed_to_send_the_request.
cmp dword [eax + 0x10], 0
jbe 0x4a7aac
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0042fb60
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1a8]
push 0
mov eax, dword [ecx + 0x10]
push eax
push eax
call fcn.00405420
push eax
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
lea ecx, [ebp - 0x40]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x4a7a95
push dword [ebp - 0x40]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x4a7b46
mov dword [ebp - 0xa8], 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
call fcn.0042fb60
mov byte [ebp - 4], 5
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
lea ecx, [ebp - 0xb8]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa4], 0x10
jb 0x4a7b2b
push dword [ebp - 0xb8]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
cmp byte [ebx + 0x20], 0
je 0x4a7b95
cmp byte [ebp + 0x50], 1
jne 0x4a7b95
push esi
mov ecx, ebx
call fcn.004a92e0
test al, al
jne 0x4a7b95
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x194], esp
push 0x28
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.The_certificate_verification_has_failed.
mov byte [ecx], al
call fcn.0042fb60
mov byte [ebp - 4], 6
mov byte [ebp - 4], 1
call fcn.004a9c10
add esp, 0x18
push 0x3d
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x8c], 0
push str.HTTPClient::performHandshake___Receiving_response_has_failed.
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
call fcn.0042fb60
mov byte [ebp - 4], 7
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea ecx, [ebp - 0xa0]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x8c], 0x10
jb 0x4a7c11
push dword [ebp - 0xa0]
call fcn.00489b60
add esp, 4
cmp dword [edi], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
jne 0x4a7c48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
mov eax, dword [ebp - 0x188]
je 0x4a78c6
push 0x3f
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xbc], 0
push str.HTTPClient::performHandshake___Querying_for_headers_has_failed.
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
call fcn.0042fb60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1ac]
push 0
push eax
push dword [ebp - 0x1a4]
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0xd0]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0xbc], 0x10
jb 0x4a7cd8
push dword [ebp - 0xd0]
call fcn.00489b60
add esp, 4
cmp dword [edi], 0
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
je 0x4a8158
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
mov eax, dword [eax]
add eax, 0xffffff38
cmp eax, 0xcf
ja case.0x4a7d35.200
movzx eax, byte [eax + 0x4a8214]
jmp dword [eax*4 + 0x4a8204]
mov cl, 1
mov byte [ebp - 0x181], cl
jmp 0x4a815e
push 0x4c
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0
push str.HTTPClient::performHandshake___Failed_to_retrieve_the_authentication_scheme.
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.0042fb60
mov byte [ebp - 4], 9
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x18c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
lea ecx, [ebp - 0x58]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0x10
jb 0x4a7dbd
push dword [ebp - 0x58]
call fcn.00489b60
add esp, 4
cmp dword [edi], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
je 0x4a7f7d
mov eax, dword [ebp - 0x18c]
test al, 0x10
je 0x4a7dee
mov dword [ebp - 0x198], 0x10
jmp 0x4a7dfa
movzx eax, al
and eax, 2
mov dword [ebp - 0x198], eax
push str._s:_Authentication_scheme_selected__401__:__lu
lea ecx, [ebp - 0xe8]
call fcn.00404f70
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x180]
call fcn.00483380
mov esi, eax
mov byte [ebp - 4], 0xb
mov ecx, esi
push str.Absolute::Ctes::NextGen::HTTPClient::performHandshake
call fcn.00483720
push dword [ebp - 0x198]
mov ecx, esi
call fcn.00483710
lea eax, [ebp - 0x148]
mov ecx, esi
push eax
call fcn.00483750
mov byte [ebp - 4], 0xc
push eax
call fcn.00480c90
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x134], 0x10
jb 0x4a7e75
push dword [ebp - 0x148]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x180]
call fcn.00483470
mov byte [ebp - 4], 1
cmp dword [ebp - 0xd4], 0x10
jb 0x4a7eba
push dword [ebp - 0xe8]
call fcn.00489b60
add esp, 4
mov esi, dword [ebp - 0x198]
mov dword [ebp - 0xd4], 0xf
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xe8], 0
test esi, esi
jne 0x4a7ef2
mov esi, dword [ebp - 0x1a0]
mov cl, 1
mov byte [ebp - 0x181], cl
jmp 0x4a7f83
push str.HTTPClient::performHandshake___Failed_to_send_credentials_to_the_server._Challenge_1__401_.
lea ecx, [ebp - 0x118]
call fcn.00404f70
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x2c]
cmp dword [ebp + 0x40], 8
lea eax, [ebp + 0x14]
push 0
cmovae ecx, dword [ebp + 0x2c]
cmp dword [ebp + 0x28], 8
push ecx
cmovae eax, dword [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x190]
mov esi, dword [ebp - 0x1a0]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
lea ecx, [ebp - 0x118]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x104], 0x10
jb 0x4a7f62
push dword [ebp - 0x118]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], 0
mov byte [ebp - 0x118], 0
mov cl, byte [ebp - 0x181]
mov eax, dword [ebp - 0x19c]
cmp dword [eax], 0x191
jne 0x4a815e
mov cl, 1
mov byte [ebp - 0x181], cl
jmp 0x4a815e
push 0x4c
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0
push str.HTTPClient::performHandshake___Failed_to_retrieve_the_authentication_scheme.
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.0042fb60
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x18c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
lea ecx, [ebp - 0x70]
mov dword [edi], eax
push ecx
push 6
push eax
mov ecx, ebx
call fcn.004a1000
mov byte [ebp - 4], 1
cmp dword [ebp - 0x5c], 0x10
jb 0x4a8016
push dword [ebp - 0x70]
call fcn.00489b60
add esp, 4
cmp dword [edi], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
je 0x4a813a
mov eax, dword [ebp - 0x18c]
test al, 0x10
je 0x4a8047
mov dword [ebp - 0x188], 0x10
jmp 0x4a8053
movzx eax, al
and eax, 2
mov dword [ebp - 0x188], eax
push str._s:_Authentication_Schemme_selected__407_:__lu
lea ecx, [ebp - 0x100]
call fcn.00404f70
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x164]
call fcn.00483380
mov esi, eax
mov byte [ebp - 4], 0x10
mov ecx, esi
push str.Absolute::Ctes::NextGen::HTTPClient::performHandshake
call fcn.00483720
push 0
mov ecx, esi
call fcn.00483710
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.00483750
mov byte [ebp - 4], 0x11
push eax
call fcn.00480c90
add esp, 4
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x11c], 0x10
jb 0x4a80ca
push dword [ebp - 0x130]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x164]
call fcn.00483470
mov byte [ebp - 4], 1
cmp dword [ebp - 0xec], 0x10
jb 0x4a810f
push dword [ebp - 0x100]
call fcn.00489b60
add esp, 4
mov esi, dword [ebp - 0x1a0]
mov cl, 1
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0x100], 0
mov byte [ebp - 0x181], cl
jmp 0x4a8140
mov cl, byte [ebp - 0x181]
mov eax, dword [ebp - 0x19c]
cmp dword [eax], 0x197
jne 0x4a815e
mov cl, 1
mov byte [ebp - 0x181], cl
jmp 0x4a815e
mov cl, byte [ebp - 0x181]
mov eax, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x19c]
mov eax, dword [eax]
mov dword [edx], eax
cmp dword [edi], 0
je 0x4a8182
test cl, cl
jne 0x4a8186
mov eax, dword [ebp - 0x188]
jmp 0x4a78c6
mov bl, 1
jmp 0x4a818c
mov bl, byte [ebp - 0x181]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x28], 8
jb 0x4a81a1
push dword [ebp + 0x14]
call fcn.00489b60
add esp, 4
xor eax, eax
mov dword [ebp + 0x28], 7
mov dword [ebp + 0x24], 0
mov word [ebp + 0x14], ax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x40], 8
jb 0x4a81cd
push dword [ebp + 0x2c]
call fcn.00489b60
add esp, 4
xor eax, eax
mov dword [ebp + 0x40], 7
mov word [ebp + 0x2c], ax
mov al, bl
mov dword [ebp + 0x3c], 0
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.00722035
mov esp, ebp
pop ebp
ret 0x4c