Function at 0x512b40
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x68a7e7
mov eax, dword fs:[0]
push eax
sub esp, 0x5b0
mov eax, dword [0x78f694]
xor eax, esp
mov dword [esp + 0x5ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x5c4]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x5d8]
mov eax, dword [esp + 0x5d4]
mov edx, dword [esp + 0x5e8]
mov edi, dword [esp + 0x5f8]
mov ebx, dword [esp + 0x5dc]
mov ebp, dword [esp + 0x5e0]
mov esi, dword [esp + 0x5f0]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x5f4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x5ec]
push str.computeAuthorization
mov dword [esp + 0x3c], ecx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], eax
call fcn.004b1850
mov ecx, esi
mov dword [esp + 0x5cc], 0
call fcn.00484e60
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x11c]
mov byte [edx], 0
call fcn.0047f3a0
push 1
lea ecx, [esp + 0x120]
mov byte [esp + 0x5d0], 1
call fcn.0047f370
push edi
lea eax, [esp + 0x120]
push eax
mov ecx, ebp
call fcn.00529540
cmp dword [ebx + 0x2d4], 0x191
je 0x512c94
mov edx, dword [edi]
push str.Expected_a_response_status_of_401...
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x5cc], 0
call fcn.0047f440
lea ecx, [esp + 0x14]
mov dword [esp + 0x5cc], 0xffffffff
call fcn.004b18c0
xor al, al
mov ecx, dword [esp + 0x5c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5ac]
xor ecx, esp
call fcn.0062cbd3
add esp, 0x5bc
ret
lea ecx, [esp + 0x11c]
call fcn.00481390
test al, al
jne 0x512c42
add ebx, 0x190
push 0x6e3754
push str.WWW_Authenticate
mov ecx, ebx
mov dword [esp + 0x3c], ebx
call fcn.0050e8f0
test al, al
je 0x512d85
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x512cde
push str.Starting_Digest_Authentication
push str.HttpAuth
call fcn.004d0ba0
lea ecx, [esp + 0xa8]
call fcn.00485650
lea ecx, [esp + 0xa8]
push ecx
push str.WWW_Authenticate
mov ecx, ebx
mov byte [esp + 0x5d4], 2
call fcn.0050e9d0
push edi
push esi
lea ecx, [esp + 0xb0]
call fcn.00483ec0
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x130]
call fcn.00480da0
push eax
lea ecx, [ebp + 0x240]
call fcn.00480160
push eax
call fcn.0057be60
add esp, 0x1c
lea ecx, [esp + 0xa8]
mov bl, al
mov byte [esp + 0x5cc], 1
call fcn.00485710
lea ecx, [esp + 0x11c]
mov byte [esp + 0x5cc], 0
call fcn.0047f440
lea ecx, [esp + 0x14]
mov dword [esp + 0x5cc], 0xffffffff
call fcn.004b18c0
mov al, bl
jmp 0x512c6c
push str.NTLM
push str.WWW_Authenticate
mov ecx, ebx
call fcn.0050e8f0
test al, al
je 0x5130cc
lea ecx, [ebp + 0x240]
call fcn.00481390
test al, al
jne 0x5130cc
call fcn.0057ad60
mov ebx, eax
test ebx, ebx
je 0x512c42
lea ecx, [esp + 0x28]
call fcn.0047a6d0
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5d0], 3
call fcn.0047a680
lea eax, [ebp + 0x240]
push eax
mov ecx, ebx
call fcn.0057a940
lea ecx, [esp + 0x11c]
push ecx
mov ecx, ebx
call fcn.0057a9b0
add ebp, 0x358
push ebp
mov ecx, ebx
call fcn.0057a860
mov edx, dword [0x77f690]
push edx
mov ecx, ebx
call fcn.00579e90
lea ecx, [esp + 0xa8]
call fcn.00485650
lea eax, [esp + 0xa8]
push eax
mov byte [esp + 0x5d0], 4
call fcn.004ab950
add esp, 4
lea ecx, [esp + 0xa8]
call fcn.005d5d40
test eax, eax
je 0x512e98
lea ecx, [esp + 0x31c]
call fcn.0047f3a0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], 5
call fcn.00483ec0
push eax
lea ecx, [esp + 0x320]
call fcn.00483120
lea ecx, [esp + 0x31c]
push ecx
mov ecx, ebx
call fcn.0057a8d0
lea ecx, [esp + 0x31c]
mov byte [esp + 0x5cc], 4
call fcn.0047f440
lea ecx, [esp + 0x31c]
call fcn.0047f3a0
cmp byte [esp + 0x5e4], 0
jne 0x512f5a
push edi
lea edx, [esp + 0x320]
push edx
mov ecx, ebx
mov byte [esp + 0x5d4], 6
call fcn.0057a110
test al, al
je 0x512fcc
push 0x6e2d94
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0x31c]
call fcn.00480da0
push eax
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0x31c]
mov byte [esp + 0x5cc], 4
call fcn.0047f440
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], 3
call fcn.00485710
lea ecx, [esp + 0x28]
mov byte [esp + 0x5cc], 1
call fcn.0047a6f0
lea ecx, [esp + 0x11c]
mov byte [esp + 0x5cc], 0
call fcn.0047f440
lea ecx, [esp + 0x14]
mov dword [esp + 0x5cc], 0xffffffff
call fcn.004b18c0
mov al, 1
jmp 0x512c6c
lea ecx, [esp + 0x4a8]
mov byte [esp + 0x5cc], 7
call fcn.0047f3a0
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x5cc], 8
call fcn.00485650
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x2a8]
push eax
push str.WWW_Authenticate
mov byte [esp + 0x5d4], 9
call fcn.0050e9d0
test al, al
lea ecx, [esp + 0x2a8]
jne 0x51300a
mov byte [esp + 0x5cc], 8
call fcn.00485710
lea ecx, [esp + 0x4a8]
mov byte [esp + 0x5cc], 7
call fcn.0047f440
lea ecx, [esp + 0x31c]
mov byte [esp + 0x5cc], 4
call fcn.0047f440
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], 3
call fcn.00485710
lea ecx, [esp + 0x28]
mov byte [esp + 0x5cc], 1
call fcn.0047a6f0
jmp 0x512c42
call fcn.00484060
lea ecx, [esp + 0x2a8]
call fcn.005d5d40
test eax, eax
lea ecx, [esp + 0x2a8]
je 0x512fab
push 0
push 0x7589ce
push 0x6e2d8c
call fcn.00485a70
lea ecx, [esp + 0x2a8]
call fcn.00484060
lea ecx, [esp + 0x2a8]
push ecx
lea ecx, [esp + 0x320]
call fcn.00482710
push edi
lea edx, [esp + 0x4ac]
push edx
lea eax, [esp + 0x324]
push eax
mov ecx, ebx
call fcn.0057ae20
test al, al
jne 0x51307f
lea ecx, [esp + 0x2a8]
jmp 0x512fab
push 0x6e2d94
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0x4a8]
call fcn.00480da0
push eax
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x5cc], 8
call fcn.00485710
lea ecx, [esp + 0x4a8]
mov byte [esp + 0x5cc], 7
call fcn.0047f440
jmp 0x512ef2
push str.NTLM
push str.WWW_Authenticate
mov ecx, ebx
call fcn.0050e8f0
test al, al
je 0x513105
mov ebx, 0x6e2d8c
cmp dword [esp + 0x20], 0
jne 0x513260
mov edx, dword [edi]
mov eax, dword [edx + 0x2c]
push ebx
push str.notSupported
mov ecx, edi
call eax
jmp 0x512c42
push str.Negotiate
push str.WWW_Authenticate
mov ecx, ebx
call fcn.0050e8f0
test al, al
je 0x513121
mov ebx, 0x6e2d9c
jmp 0x5130e6
push str.Kerberos
push str.WWW_Authenticate
mov ecx, ebx
call fcn.0050e8f0
test al, al
je 0x51313d
mov ebx, 0x6e2dd4
jmp 0x5130e6
push str.Basic
push str.WWW_Authenticate
mov ecx, ebx
call fcn.0050e8f0
test al, al
je 0x513254
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x51316d
push str.Server_requests_Basic_Authentication
push str.HttpAuth
call fcn.004d0ba0
lea ecx, [esp + 0x48]
call fcn.00468060
lea edi, [ebp + 0x240]
mov ecx, edi
mov byte [esp + 0x5cc], 0xa
call fcn.00481430
push eax
mov ecx, edi
call fcn.00480da0
push eax
lea ecx, [esp + 0x50]
call fcn.00469150
push 0x3a
lea ecx, [esp + 0x4c]
call fcn.00468d30
lea ecx, [esp + 0x11c]
call fcn.00481430
push eax
lea ecx, [esp + 0x120]
call fcn.00480da0
push eax
lea ecx, [esp + 0x50]
call fcn.00469150
lea ecx, [esp + 0x28]
call fcn.004b6700
mov bl, 0xb
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], bl
call fcn.00485650
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5d0], 0xc
call fcn.00544a30
push eax
lea ecx, [esp + 0x50]
call fcn.00467d80
push eax
call fcn.004b9cd0
add esp, 0xc
push 0x6e36c0
mov ecx, esi
call fcn.00487f90
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], bl
call fcn.00485710
mov byte [esp + 0x5cc], 0xa
lea ecx, [esp + 0x28]
call fcn.004b6720
lea ecx, [esp + 0x48]
mov byte [esp + 0x5cc], 1
call fcn.00468860
jmp 0x512f2b
mov edx, dword [edi]
push str.No_useful_WWW_Authenticate_response_header_was_found.
jmp 0x512c3b
cmp byte [esp + 0x5e4], 0
jne 0x51334e
lea ecx, [esp + 0x48]
call fcn.00468060
push edi
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x124]
push edx
lea eax, [ebp + 0x240]
push eax
add ebp, 0x358
push ebp
push ebx
mov byte [esp + 0x5e4], 0xd
call fcn.00578fc0
test al, al
jne 0x5132bf
lea ecx, [esp + 0x48]
mov byte [esp + 0x5cc], 1
call fcn.00468860
jmp 0x512c42
lea ecx, [esp + 0x28]
call fcn.004b6700
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], 0xe
call fcn.00485650
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5d0], 0xf
call fcn.00544a30
push eax
lea ecx, [esp + 0x50]
call fcn.00467d80
push eax
call fcn.004b9cd0
add esp, 0xc
push ebx
mov ecx, esi
call fcn.00485280
push 0x20
mov ecx, esi
call fcn.00487e40
lea ecx, [esp + 0xa8]
call fcn.00483ec0
push eax
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0xa8]
mov byte [esp + 0x5cc], 0xe
call fcn.00485710
mov byte [esp + 0x5cc], 0xd
jmp 0x513235
lea ecx, [esp + 0x234]
call fcn.00485650
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x234]
push edx
push str.WWW_Authenticate
mov byte [esp + 0x5d4], 0x10
call fcn.0050e9d0
test al, al
lea ecx, [esp + 0x234]
jne 0x513395
mov byte [esp + 0x5cc], 1
call fcn.00485710
jmp 0x512c42
call fcn.00484060
lea ecx, [esp + 0x234]
call fcn.005d5d40
test eax, eax
lea ecx, [esp + 0x234]
je 0x513383
push 0
push 0x7589ce
push ebx
call fcn.00485a70
lea ecx, [esp + 0x234]
call fcn.00484060
lea ecx, [esp + 0x80]
call fcn.00468060
push str.base64
lea ecx, [esp + 0x238]
mov byte [esp + 0x5d0], 0x11
call fcn.00483ec0
push eax
lea ecx, [esp + 0x88]
call fcn.0046cd60
lea ecx, [esp + 0x64]
call fcn.00468060
mov ecx, dword [esp + 0x3c]
push edi
lea eax, [esp + 0x2b]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x5e0], 0x12
call fcn.00579020
test al, al
jne 0x513470
lea ecx, [esp + 0x64]
mov byte [esp + 0x5cc], 0x11
call fcn.00468860
lea ecx, [esp + 0x80]
mov byte [esp + 0x5cc], 0x10
call fcn.00468860
lea ecx, [esp + 0x234]
mov byte [esp + 0x5cc], 1
call fcn.00485710
jmp 0x512c42
lea ecx, [esp + 0x9c]
call fcn.004b6700
lea ecx, [esp + 0x434]
mov byte [esp + 0x5cc], 0x13
call fcn.00485650
lea ecx, [esp + 0x434]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x5d0], 0x14
call fcn.00544a30
push eax
lea ecx, [esp + 0x6c]
call fcn.00467d80
push eax
call fcn.004b9cd0
add esp, 0xc
push ebx
mov ecx, esi
call fcn.00485280
push 0x20
mov ecx, esi
call fcn.00487e40
lea ecx, [esp + 0x434]
call fcn.00483ec0
push eax
mov ecx, esi
call fcn.00485280
lea ecx, [esp + 0x434]
mov byte [esp + 0x5cc], 0x13
call fcn.00485710
lea ecx, [esp + 0x9c]
mov byte [esp + 0x5cc], 0x12
call fcn.004b6720
lea ecx, [esp + 0x64]
mov byte [esp + 0x5cc], 0x11
call fcn.00468860
lea ecx, [esp + 0x80]
mov byte [esp + 0x5cc], 0x10
call fcn.00468860
lea ecx, [esp + 0x234]
mov byte [esp + 0x5cc], 1
call fcn.00485710
jmp 0x512f2b