Function at 0x505330
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x10], eax
cmp byte [ebx + 0x140], 0
jne 0x505366
cmp byte [ebx + 0x717], 0
je 0x505404
push 0xd
push esi
push str.Content_Type:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x5053b9
push esi
call fcn.00502470
add esp, 4
test eax, eax
je 0x5058e7
mov edi, eax
cmp byte [eax], 0
mov ecx, dword [fcn.005f2b80]
je 0x50546f
mov esi, dword [ebx + 0xd44]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov dword [ebx + 0xd44], edi
jmp 0x505517
mov al, byte [edi + 0x114]
cmp al, 0xa
jne 0x505486
cmp byte [edi + 0x258], 0
je 0x5054c6
push str.keep_alive
push str.Proxy_Connection:
push esi
call fcn.005036a0
add esp, 0xc
test al, al
je 0x505480
push 0
push edi
call fcn.004f7600
add esp, 8
push str.HTTP_1.0_proxy_connection_set_to_keep_alive_
jmp 0x5054ed
push 0xf
push esi
push str.Content_Length:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505366
xor eax, eax
dec eax
lea ecx, [esp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], eax
add esi, 0xf
push ecx
push 0xa
push 0
push esi
call fcn.0051d7c0
add esp, 0x10
cmp eax, 1
je 0x5055ce
test eax, eax
jne 0x5055ee
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], ecx
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], ecx
jmp 0x505517
call dword [section..00cfg]
push edi
call ecx
add esp, 4
jmp 0x505517
mov al, byte [edi + 0x114]
cmp al, 0xb
jne 0x5054c2
cmp byte [edi + 0x258], 0
je 0x5054f5
push str.close
push str.Proxy_Connection:
push esi
call fcn.005036a0
add esp, 0xc
test al, al
je 0x5054bc
push 1
push edi
call fcn.004f7600
add esp, 8
push str.HTTP_1.1_proxy_connection_set_close_
jmp 0x5054ed
mov al, byte [edi + 0x114]
cmp al, 0xa
jne 0x5054f5
push str.keep_alive
push str.Connection:
push esi
call fcn.005036a0
add esp, 0xc
test al, al
je 0x5054f5
push 0
push edi
call fcn.004f7600
add esp, 8
push str.HTTP_1.0_connection_set_to_keep_alive_
push ebx
call fcn.00514fc0
jmp 0x505514
push str.close
push str.Connection:
push esi
call fcn.005036a0
add esp, 0xc
test al, al
je 0x50551e
push 2
push edi
call fcn.004f7600
add esp, 8
xor ebx, ebx
jmp 0x5058ec
cmp byte [ebx + 0x140], 0
je 0x505577
push 0xc
push esi
push str.Retry_After:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505609
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
add esi, 0xc
push esi
call fcn.005130c0
add esp, 4
mov edi, eax
and eax, edx
cmp eax, 0xffffffff
je 0x5056e7
mov ebx, edx
push 0
call fcn.006653a6
add esp, 4
sub edi, eax
sbb ebx, edx
jmp 0x5056fe
push 0x12
push esi
push str.Transfer_Encoding:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x50574e
add esi, 0x12
push 1
push esi
push ebx
call fcn.004f77c0
add esp, 0xc
mov esi, ebx
mov ebx, eax
test eax, eax
jne 0x5058ec
cmp byte [esi + 0x141], 0
jne 0x505517
push 1
push edi
call fcn.004f7600
add esp, 8
mov byte [esi + 0x142], 1
jmp 0x505517
mov eax, dword [ebx + 0x500]
or eax, dword [ebx + 0x504]
je 0x50579e
mov ecx, ebx
mov ebx, 0x3f
mov eax, str.Maximum_file_size_exceeded
jmp 0x5055fa
mov ecx, ebx
mov ebx, 8
mov eax, str.Invalid_Content_Length:_value
push eax
push ecx
call fcn.00515170
add esp, 8
jmp 0x5058ec
cmp byte [ebx + 0x140], 0
je 0x5057b3
cmp dword [ebx + 0x738], 0
je 0x505712
cmp byte [ebx + 0xd03], 0
je 0x505712
push 0xb
push esi
push str.Set_Cookie:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505712
mov ebx, dword [ebx + 0xcd8]
test ebx, ebx
jne 0x505655
mov ebx, dword [edi + 0x64]
mov eax, dword [edi + 0x2a0]
mov byte [esp + 7], 1
test byte [eax + 0x44], 2
jne 0x50569f
push ebx
push str.localhost
call fcn.0051c610
add esp, 8
test eax, eax
jne 0x50569f
push str.127.0.0.1
push ebx
call fcn.0066b010
add esp, 8
test eax, eax
je 0x50569f
push str._::1_
push ebx
call fcn.0066b010
add esp, 8
test eax, eax
sete byte [esp + 7]
mov eax, 2
push eax
push eax
mov edi, dword [ebp + 8]
push edi
call fcn.00519930
add esp, 0xc
add esi, 0xb
movzx eax, byte [esp + 7]
push eax
push dword [edi + 0xc88]
push ebx
push esi
push 0
push 1
push dword [edi + 0x738]
push edi
call fcn.004f7f60
add esp, 0x20
mov eax, 2
push eax
push edi
call fcn.00519980
jmp 0x505514
lea ebx, [esp + 8]
push ebx
push 0xa
push 0
push esi
call fcn.0051d7c0
add esp, 0x10
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 0xd50], edi
mov dword [eax + 0xd54], ebx
jmp 0x505517
cmp byte [ebx + 0x140], 0
je 0x505901
push 0x11
push esi
push str.WWW_Authenticate:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x5057fe
cmp dword [ebx + 0xf0], 0x191
jne 0x5057fe
xor ebx, ebx
jmp 0x505823
cmp byte [ebx + 0x140], 0
jne 0x505527
push 0x11
push esi
push str.Content_Encoding:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505527
cmp dword [ebx + 0x54c], 0
je 0x505527
add esi, 0x11
push 0
push esi
push ebx
call fcn.004f77c0
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x5058ec
jmp 0x505517
push 2
push edi
call fcn.004f7600
add esp, 8
push str.Overflow_Content_Length:_value_
jmp 0x5054ed
push 0xe
push esi
push str.Content_Range:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505616
mov al, byte [esi + 0xe]
add esi, 0xe
xor edi, edi
test al, al
je 0x505a17
movzx eax, al
push eax
call fcn.004faee0
add esp, 4
test eax, eax
jne 0x505a0d
cmp byte [esi], 0x2a
je 0x505a12
mov al, byte [esi + 1]
inc esi
jmp 0x5057d3
push 0x13
push esi
push str.Proxy_authenticate:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505867
mov bl, 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf0], 0x197
jne 0x505867
push esi
call fcn.00502470
add esp, 4
test eax, eax
je 0x5058e7
mov edi, eax
movzx eax, bl
push edi
push eax
push dword [ebp + 8]
call fcn.00503000
add esp, 0xc
mov ebx, eax
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
jne 0x5058ec
jmp 0x505517
push 0x10
push esi
push str.Persistent_Auth:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505965
mov eax, dword [ebp + 8]
cmp dword [eax + 0x99c], 4
jne 0x505517
push esi
call fcn.00502470
add esp, 4
test eax, eax
je 0x5058e7
mov ebx, eax
push 5
push eax
push 0x74610a
call fcn.0051c730
add esp, 0xc
xor ecx, ecx
test eax, eax
setne cl
setne byte [edi + 0x3e0]
mov byte [edi + 0x3e1], 1
push ebx
push ecx
push str.Negotiate:_noauthpersist_____d__header_part:__s
push dword [ebp + 8]
call fcn.00514fc0
add esp, 0x10
mov ecx, dword [fcn.005f2b80]
call dword [section..00cfg]
push ebx
jmp 0x505476
mov ebx, 0x1b
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xe
push esi
push str.Last_Modified:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x50571f
cmp dword [ebx + 0x3ec], 0
jne 0x50592f
cmp byte [ebx + 0x701], 0
je 0x50571f
add esi, 0xe
push esi
call fcn.005130c0
add esp, 4
mov dword [ebx + 0x11c], edx
mov dword [ebx + 0x118], eax
cmp byte [ebx + 0x701], 0
je 0x505517
mov dword [ebx + 0xd20], eax
mov dword [ebx + 0xd24], edx
jmp 0x505517
mov eax, 0xfffffed4
mov ebx, dword [ebp + 8]
add eax, dword [ebx + 0xf0]
cmp eax, 0x63
ja 0x505999
push 9
push esi
push str.Location:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x505999
cmp dword [ebx + 0x124], 0
je 0x505aed
cmp dword [ebx + 0x73c], 0
je 0x5059c6
push 0x1a
push esi
push str.Strict_Transport_Security:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x5059c6
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x4c], 1
jne 0x505a7f
cmp dword [ebx + 0x740], 0
je 0x5059f3
push 8
push esi
push str.Alt_Svc:
call fcn.0051c730
add esp, 0xc
test eax, eax
je 0x5059f3
mov eax, dword [edi + 0x2a0]
test byte [eax + 0x4c], 1
jne 0x505aa9
mov eax, dword [edi + 0x2a0]
mov ebx, 4
test byte [eax + 0x46], 4
je 0x505517
jmp 0x5058ec
movzx edi, byte [esi]
jmp 0x505a17
mov edi, 0x2a
push edi
call fcn.004faee0
add esp, 4
test eax, eax
je 0x505a6c
lea eax, [ebx + 0xe8]
push eax
push 0xa
push 0
push esi
call fcn.0051d7c0
add esp, 0x10
test eax, eax
jne 0x505517
mov eax, dword [ebx + 0xc3c]
xor eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xc38]
xor ecx, dword [ebx + 0xe8]
or ecx, eax
jne 0x505517
mov byte [ebx + 0x13d], 1
jmp 0x505517
xor eax, eax
mov dword [ebx + 0xc3c], eax
mov dword [ebx + 0xc38], eax
jmp 0x505517
add esi, 0x1a
push esi
push dword [ebx + 0xc74]
push dword [ebx + 0x73c]
call fcn.00500c50
add esp, 0xc
test eax, eax
je 0x505517
push str.Illegal_STS_header_skipped
jmp 0x5054ed
xor eax, eax
cmp byte [edi + 0x114], 0x14
sete al
lea ebx, [eax*8 + 8]
push dword [edi + 0xc8]
call fcn.005304e0
add esp, 4
add esi, 8
movzx eax, ax
push eax
push dword [edi + 0x64]
push ebx
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x740]
push eax
call fcn.004f3240
add esp, 0x18
jmp 0x50578f
push esi
call fcn.00502470
add esp, 4
mov ebx, 0x1b
test eax, eax
je 0x5058ec
cmp byte [eax], 0
je 0x505b4f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x124], eax
cmp byte [ecx + 0x709], 0
je 0x505517
mov esi, eax
mov ecx, dword [fcn.00663270]
call dword [section..00cfg]
push esi
call ecx
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0x128], eax
test eax, eax
je 0x5058ec
mov edx, edi
call fcn.00502930
jmp 0x50578f
mov ecx, dword [fcn.005f2b80]
mov esi, eax
call dword [section..00cfg]
push esi
jmp 0x505476