Function at 0x10039db0
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x154], 0
push edi
mov edi, dword [esp + 0x24]
jne 0x10039ea1
cmp dword [esi + 0x7a8], 0
jne 0x10039ea1
push 0xf
push str.Content_Length:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x10039ea1
lea eax, [esp + 0x10]
push eax
push 0xa
push 0
add edi, 0xf
push edi
call fcn.10049460
add esp, 0x10
test eax, eax
jne 0x10039e34
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x80], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ecx
mov dword [esi + 0x8c], ecx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp eax, 1
jne 0x10039e86
mov ecx, dword [esi + 0x530]
or ecx, dword [esi + 0x534]
je 0x10039e62
push str.Maximum_file_size_exceeded
push esi
call fcn.1001cb80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x20]
push 2
push edx
call fcn.10021ed0
push str.Overflow_Content_Length:_value
push esi
call fcn.1001ccc0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push str.Invalid_Content_Length:_value
push esi
call fcn.1001cb80
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret
push 0xd
push str.Content_Type:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x10039f0a
push edi
call fcn.100369e0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10039ed1
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 8
ret
cmp byte [edi], 0
jne 0x10039eea
push edi
call dword [0x100a3004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xf0c]
push eax
call dword [0x100a3004]
add esp, 4
mov dword [esi + 0xf0c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x20]
mov ebx, 0xa
cmp byte [ebp + 0x4f9], bl
jne 0x10039f5e
cmp dword [ebp + 0x1d8], 0
je 0x10039f5e
push ebx
push str.keep_alive
push 0x11
push str.Proxy_Connection:
push edi
call fcn.100378f0
add esp, 0x14
test eax, eax
je 0x10039f5e
push 0
push ebp
call fcn.10021ed0
push str.HTTP_1.0_proxy_connection_set_to_keep_alive
push esi
call fcn.1001ccc0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp byte [ebp + 0x4f9], 0xb
jne 0x10039fab
cmp dword [ebp + 0x1d8], 0
je 0x10039fab
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push edi
call fcn.100378f0
add esp, 0x14
test eax, eax
je 0x10039fab
push 1
push ebp
call fcn.10021ed0
push str.HTTP_1.1_proxy_connection_set_close
push esi
call fcn.1001ccc0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp byte [ebp + 0x4f9], bl
jne 0x10039fed
push ebx
push str.keep_alive
push 0xb
push str.Connection:
push edi
call fcn.100378f0
add esp, 0x14
test eax, eax
je 0x10039fed
push 0
push ebp
call fcn.10021ed0
push str.HTTP_1.0_connection_set_to_keep_alive
push esi
call fcn.1001ccc0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 5
push str.close
push 0xb
push str.Connection:
push edi
call fcn.100378f0
add esp, 0x14
test eax, eax
je 0x1003a01d
push 2
push ebp
call fcn.10021ed0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x1003a0d1
push 0x12
push str.Transfer_Encoding:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a08c
push 1
add edi, 0x12
push edi
push esi
call fcn.1001b200
add esp, 0xc
test eax, eax
jne 0x1003a645
cmp dword [esi + 0x158], eax
jne 0x1003a643
cmp dword [esi + 0x778], eax
je 0x1003a643
push 1
push ebp
call fcn.10021ed0
add esp, 8
pop edi
mov dword [esi + 0x15c], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x1003a0d1
push 0x11
push str.Content_Encoding:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a0d1
cmp dword [esi + 0x578], 0
je 0x1003a0d1
push 0
add edi, 0x11
push edi
push esi
call fcn.1001b200
add esp, 0xc
test eax, eax
je 0x1003a643
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0xc
push str.Retry_After:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a16f
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push ebx
push eax
add edi, 0xc
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.10049460
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov edx, eax
add esp, 0x10
or edx, ebp
jne 0x1003a159
push edi
call fcn.10045d00
mov edi, eax
add esp, 4
mov ebp, edx
cmp edi, 0xffffffff
jne 0x1003a12a
cmp ebp, eax
je 0x1003a151
push 0
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
sub edi, eax
sbb ebp, edx
mov eax, edi
pop edi
mov dword [esi + 0xf18], eax
mov dword [esi + 0xf1c], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 0xf18], eax
mov dword [esi + 0xf1c], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x1003a220
push 0xe
push str.Content_Range:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a220
mov al, byte [edi + 0xe]
lea ecx, [edi + 0xe]
test al, al
je 0x1003a1b4
mov edi, edi
cmp al, 0x30
jl 0x1003a1a8
cmp al, 0x39
jle 0x1003a1b4
cmp al, 0x2a
je 0x1003a1b4
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1003a1a0
mov al, byte [ecx]
cmp al, 0x30
jl 0x1003a20a
cmp al, 0x39
jg 0x1003a20a
lea edi, [esi + 0xd8]
push edi
push ebx
push 0
push ecx
call fcn.10049460
add esp, 0x10
test eax, eax
jne 0x1003a643
mov eax, dword [esi + 0xd68]
cmp eax, dword [edi]
jne 0x1003a643
mov ecx, dword [esi + 0xd6c]
cmp ecx, dword [edi + 4]
jne 0x1003a643
pop edi
mov dword [esi + 0x148], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
xor eax, eax
pop edi
mov dword [esi + 0xd68], eax
mov dword [esi + 0xd6c], eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x800], 0
je 0x1003a325
cmp dword [esi + 0xeac], 0
je 0x1003a325
push 0xb
push str.Set_Cookie:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a325
mov eax, dword [esi + 0xe58]
mov ebx, eax
test eax, eax
jne 0x1003a261
mov ebx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x254]
test byte [edx + 0x44], 2
jne 0x1003a2e3
push ebx
push str.localhost
call fcn.10013c60
add esp, 8
test eax, eax
jne 0x1003a2e3
mov ecx, str.127.0.0.1
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003a2a6
test dl, dl
je 0x1003a2a2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003a2a6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003a286
xor eax, eax
jmp 0x1003a2ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003a2e3
mov ecx, 0x10087750
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1003a2d6
test dl, dl
je 0x1003a2d2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1003a2d6
add eax, 2
add ecx, 2
test dl, dl
jne 0x1003a2b6
xor eax, eax
jmp 0x1003a2db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003a2e3
xor ebp, ebp
jmp 0x1003a2e8
mov ebp, 1
push 2
push 2
push esi
call fcn.1001ae10
mov eax, dword [esi + 0xdcc]
mov ecx, dword [esi + 0x800]
push ebp
push eax
push ebx
add edi, 0xb
push edi
push 0
push 1
push ecx
push esi
call fcn.10019a00
push 2
push esi
call fcn.1001ae50
add esp, 0x34
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x154], 0
jne 0x1003a397
push 0xe
push str.Last_Modified:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a397
cmp byte [esi + 0x3e8], 0
jne 0x1003a354
cmp dword [esi + 0x73c], 0
je 0x1003a397
add edi, 0xe
push edi
call fcn.10045d00
add esp, 4
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edx
cmp dword [esi + 0x73c], 0
je 0x1003a643
mov edx, eax
mov dword [esi + 0xee8], edx
mov eax, dword [esi + 0x10c]
pop edi
mov dword [esi + 0xeec], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x11
push str.WWW_Authenticate:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a3b8
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
je 0x1003a3d9
push 0x13
push str.Proxy_authenticate:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a41e
mov eax, dword [esi + 0xe0]
cmp eax, 0x197
jne 0x1003a41e
xor ecx, ecx
cmp eax, 0x197
sete cl
push edi
mov ebp, ecx
call fcn.100369e0
mov edi, eax
add esp, 4
test edi, edi
je 0x10039ec4
push edi
push ebp
push esi
call fcn.100371b0
push edi
mov esi, eax
call dword [0x100a3004]
add esp, 0x10
test esi, esi
je 0x1003a643
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x10
push str.Persistent_Auth:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a496
cmp dword [esi + 0xa78], 4
jne 0x1003a643
push edi
call fcn.100369e0
mov edi, eax
add esp, 4
test edi, edi
je 0x10039ec4
push 5
push 0x10087a04
push edi
call fcn.10013d00
neg eax
sbb eax, eax
neg eax
push edi
push eax
push str.Negotiate:_noauthpersist_____d__header_part:__s
push esi
mov dword [ebp + 0x398], eax
mov dword [ebp + 0x39c], 1
call fcn.1001ccc0
push edi
call dword [0x100a3004]
add esp, 0x20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xe0]
cmp eax, 0x12c
jl 0x1003a549
cmp eax, 0x190
jge 0x1003a549
push 9
push str.Location:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a549
cmp dword [esi + 0x114], 0
jne 0x1003a549
push edi
call fcn.100369e0
add esp, 4
test eax, eax
je 0x10039ec4
cmp byte [eax], 0
jne 0x1003a4fd
push eax
call dword [0x100a3004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x774], 0
mov dword [esi + 0x114], eax
je 0x1003a643
push eax
call dword [0x100a300c]
add esp, 4
mov dword [esi + 0x118], eax
test eax, eax
je 0x10039ec4
mov ebx, ebp
call fcn.10036cc0
test eax, eax
jne 0x1003a645
pop edi
mov dword [esi + 0xe7c], 1
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0x804], 0
je 0x1003a5a9
push 0x1a
push str.Strict_Transport_Security:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a5a9
mov edx, dword [ebp + 0x254]
test byte [edx + 0x4c], 1
je 0x1003a5a9
mov eax, dword [ebp + 0x4c]
mov ecx, dword [esi + 0x804]
add edi, 0x1a
push edi
push eax
push ecx
call fcn.1001be10
add esp, 0xc
test eax, eax
je 0x1003a643
push str.Illegal_STS_header_skipped
push esi
call fcn.1001ccc0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [esi + 0x808], 0
je 0x1003a626
push 8
push str.Alt_Svc:
push edi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x1003a626
mov edx, dword [ebp + 0x254]
test byte [edx + 0x4c], 1
je 0x1003a626
mov al, byte [ebp + 0x4f9]
cmp al, 0x1e
jne 0x1003a5e3
mov ebx, 0x20
jmp 0x1003a5f1
xor ebx, ebx
cmp al, 0x14
sete bl
lea ebx, [ebx*8 + 8]
mov eax, dword [ebp + 0x4e4]
push eax
call fcn.1001c070
mov edx, dword [ebp + 0x4c]
movzx ecx, ax
mov eax, dword [esi + 0x808]
push ecx
push edx
push ebx
add edi, 8
push edi
push eax
push esi
call fcn.10014600
add esp, 0x1c
test eax, eax
je 0x1003a643
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [ebp + 0x254]
test dword [ecx + 0x44], 0x40000
je 0x1003a643
push edi
push esi
call fcn.10027370
add esp, 8
test eax, eax
jne 0x1003a645
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret