Function at 0x417460
Capabilities:
Check http status code

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
xor edi, edi
mov ecx, dword [esi]
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 0x98]
cmp eax, edi
mov dword [esp + 0x2c], eax
jne 0x41748d
mov dword [esp + 0x2c], 0xe10
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], edi
mov edx, dword [esi + eax*4 + 0xa0]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x4c]
push eax
push edx
push str.Establish_HTTP_proxy_tunnel_to__s:_d_n
push ecx
call fcn.0040dbf0
add esp, 0x10
mov eax, dword [esi + 0x164]
cmp eax, edi
je 0x4174da
push eax
call dword [0x4400a8]
add esp, 4
mov dword [esi + 0x164], edi
call fcn.00417d80
mov ebx, eax
cmp ebx, edi
je 0x4179aa
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push str._s:_d
call sym.SportLauncher.exe_curl_maprintf
add esp, 0xc
cmp eax, edi
mov dword [esp + 0x48], eax
je 0x4179aa
push 1
push eax
push str.CONNECT
push esi
call fcn.00417a70
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x417643
mov edx, dword [esp + 0x14]
mov edi, 0x446fdc
push str.Host:
push edx
mov ebp, edi
call fcn.00417a20
add esp, 8
test eax, eax
jne 0x417561
mov eax, dword [esp + 0x48]
push eax
push str.Host:__s_r_n
call sym.SportLauncher.exe_curl_maprintf
mov edi, eax
add esp, 8
test edi, edi
jne 0x417561
mov esi, 0x1b
mov ecx, dword [esp + 0x14]
push str.Proxy_Connection:
push ecx
call fcn.00417a20
add esp, 8
test eax, eax
jne 0x41757c
mov ebp, str.Proxy_Connection:_Keep_Alive_r_n
test esi, esi
jne 0x41762f
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x5c]
test eax, eax
je 0x41759b
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x148]
jmp 0x4175a0
mov ecx, 0x446fdc
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0x144]
test eax, eax
jne 0x4175b3
mov eax, 0x446fdc
push ebp
push ecx
mov ecx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x5c]
push edi
push eax
push ecx
push str.CONNECT__s:_d_HTTP_1.0_r_n_s_s_s_s
push ebx
call fcn.00417ff0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4175e5
mov edx, dword [esp + 0x44]
push ebx
push edx
call fcn.00418270
add esp, 8
mov esi, eax
test edi, edi
je 0x4175f8
cmp byte [edi], 0
je 0x4175f8
push edi
call dword [0x4400a8]
add esp, 4
test esi, esi
jne 0x41762f
push 0x44090c
push ebx
call fcn.00417ff0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41762f
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
lea eax, [ebp + 0x839c]
push eax
push ecx
push ebx
call fcn.00417da0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x417647
mov ebp, dword [esp + 0x14]
push str.Failed_sending_CONNECT_to_proxy
push ebp
call fcn.0040dc60
add esp, 8
jmp 0x417647
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
push edx
call dword [0x4400a8]
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x4179b7
mov edi, dword [esp + 0x44]
lea esi, [ebp + 0x2ec]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41795d
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4179dd
mov eax, dword [edi + 0x94]
mov ecx, dword [edi + 0x90]
push eax
push ecx
call fcn.0040eb40
push edx
push eax
call fcn.0040eba0
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov ecx, dword [esp + 0x3c]
add esp, 0x10
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub ecx, edx
test ecx, ecx
jle 0x41798f
mov edx, dword [esp + 0x30]
push 0x3e8
push 0xffffffffffffffff
push edx
call fcn.00419770
add esp, 0xc
cmp eax, 0xffffffff
je 0x417939
test eax, eax
je 0x41794f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
mov ecx, 0x4000
sub ecx, eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push edi
call fcn.0040def0
add esp, 0x14
test eax, eax
jl 0x41794f
xor ecx, ecx
cmp eax, ecx
je 0x41772f
mov dword [esp + 0x10], ecx
jmp 0x41794f
mov eax, dword [esp + 0x24]
cmp eax, ecx
jg 0x417751
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 1
push str.Proxy_CONNECT_aborted
jmp 0x417946
mov edx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
cmp edx, 1
jg 0x41790e
cmp eax, ecx
mov dword [esp + 0x28], ecx
jle 0x41794f
mov ecx, dword [esp + 0x18]
inc ebx
cmp byte [ecx], 0xa
jne 0x4178a7
mov al, byte [ebp + 0x1a0]
test al, al
je 0x41779a
push edi
push ebx
push esi
push 1
push ebp
call fcn.0040df90
add esp, 0x14
mov cl, byte [ebp + 0x190]
mov eax, 2
test cl, cl
je 0x4177ae
mov eax, 3
push ebx
push esi
push eax
push ebp
call fcn.0040de50
add esp, 0x10
test eax, eax
jne 0x417a17
mov al, byte [esi]
cmp al, 0xd
je 0x4178c6
cmp al, 0xa
je 0x4178c6
mov dl, byte [ebx + esi]
push 0x11
push esi
push str.WWW_Authenticate:
mov byte [esp + 0x54], dl
mov byte [ebx + esi], 0
call sym.SportLauncher.exe_curl_strnequal
add esp, 0xc
test eax, eax
je 0x417800
mov eax, dword [edi + 0x1c0]
cmp eax, 0x191
je 0x417821
push 0x13
push esi
push str.Proxy_authenticate:
call sym.SportLauncher.exe_curl_strnequal
add esp, 0xc
test eax, eax
je 0x417836
mov eax, dword [edi + 0x1c0]
cmp eax, 0x197
jne 0x417836
push esi
push eax
push edi
call fcn.004171c0
add esp, 0xc
test eax, eax
jne 0x417a17
jmp 0x417893
push 0xf
push esi
push str.Content_Length:
call sym.SportLauncher.exe_curl_strnequal
add esp, 0xc
test eax, eax
je 0x417864
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0041acd0
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x417893
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x34]
lea edi, [ecx + 0x1c0]
push edi
push edx
push str.HTTP_1._d__d
push esi
call fcn.004208fd
add esp, 0x10
cmp eax, 2
jne 0x41788f
mov eax, dword [edi]
mov dword [ebp + 0x838c], eax
mov edi, dword [esp + 0x44]
mov cl, byte [esp + 0x48]
mov edx, dword [esp + 0x18]
mov byte [ebx + esi], cl
mov eax, dword [esp + 0x24]
xor ebx, ebx
lea esi, [edx + 1]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x417774
jmp 0x41794f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
or eax, ecx
je 0x41792f
cmp dword [edi + 0x1c0], 0x197
jne 0x41792f
mov al, byte [ebp + 0x8380]
test al, al
jne 0x41792f
mov edx, dword [esp + 0x38]
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body_n
push ebp
mov dword [esp + 0x20], 2
call fcn.0040dbf0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 0x10
sub eax, edx
mov ecx, dword [esp + 0x38]
cdq
sub ecx, eax
mov eax, dword [esp + 0x3c]
sbb eax, edx
mov dword [esp + 0x38], ecx
test eax, eax
mov dword [esp + 0x3c], eax
jg 0x41794f
jl 0x41792f
mov eax, ecx
test eax, eax
ja 0x41794f
mov dword [esp + 0x10], 0
jmp 0x41794f
mov dword [esp + 0x20], 1
push str.Proxy_CONNECT_aborted_due_to_select___error
push ebp
call fcn.0040dc60
add esp, 8
cmp dword [esp + 0x1c], 0x4000
jb 0x417679
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4179dd
cmp dword [ebp + 0x838c], 0xc8
je 0x41797a
push edi
call fcn.00416e80
add esp, 4
mov eax, dword [edi + 0x164]
test eax, eax
je 0x4179c1
mov esi, dword [esp + 0x44]
xor edi, edi
jmp 0x4174c0
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebp
call fcn.0040dc60
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x30
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [edi + 0x1c0]
cmp eax, 0xc8
je 0x4179ea
push eax
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebp
call fcn.0040dc60
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x30
ret
mov eax, dword [edi + 0x144]
push eax
call sym.SportLauncher.exe_curl_free
push str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [edi + 0x144], 0
push ebp
mov byte [ebp + 0x837c], 1
call fcn.0040dbf0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret