Function at 0x5561f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xb4], 0
mov ecx, dword [edi + esi*4 + 0x1a8]
mov esi, dword [edi + 0x524]
mov ebx, dword [edi]
mov dword [ebp - 0xe0], ecx
mov byte [ebp - 0xb5], 0
test esi, esi
je 0x556f44
cmp dword [esi + 0x401c], 2
je 0x556f44
mov byte [edi + 0x27e], 0
nop word [eax + eax]
cmp dword [esi + 0x401c], 0
jne 0x556549
push edx
push eax
push str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
push ebx
call fcn.00543710
push dword [ebx + 0x140]
call dword [0x65ede8]
add esp, 0x14
mov dword [ebx + 0x140], 0
push 0xc
push 1
call dword [0x65edf0]
add esp, 8
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x556da2
push dword [ebp - 0xdc]
push dword [ebp - 0xd8]
push str._s:_hu
call sym.PayClient.exe_curl_maprintf
add esp, 0xc
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x556d97
push 1
push eax
mov edx, str.CONNECT
mov ecx, edi
call fcn.00559590
push dword [ebp - 0xc8]
mov dword [ebp - 0xbc], eax
call dword [0x65ede8]
add esp, 0xc
cmp dword [ebp - 0xbc], 0
jne 0x556510
cmp dword [edi + 0xf0], 1
mov ecx, 0x63b424
mov eax, 0x63b3dc
mov dword [ebp - 0xc8], 0
cmovne eax, ecx
mov dword [ebp - 0xbc], 0x6292df
mov cl, byte [edi + 0x26e]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xd8]
cmp eax, dword [edi + 0xa0]
je 0x556368
push 0x3a
push eax
call fcn.005cf910
add esp, 8
test eax, eax
setne cl
push dword [ebp - 0xdc]
test cl, cl
mov edx, 0x6292df
mov eax, 0x62e628
cmove eax, edx
push eax
push dword [ebp - 0xd8]
mov eax, 0x62e624
cmove eax, edx
push eax
push str._s_s_s:_hu
call sym.PayClient.exe_curl_maprintf
add esp, 0x14
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x556d97
mov edx, str.Host:
mov ecx, edi
call fcn.00558ae0
test eax, eax
jne 0x5563d9
push dword [ebp - 0xd0]
push str.Host:__s_r_n
call sym.PayClient.exe_curl_maprintf
add esp, 8
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x556d88
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.00558ae0
test eax, eax
mov ecx, 0x6292df
mov eax, str.Proxy_Connection:_Keep_Alive_r_n
mov edx, str.User_Agent:
cmove ecx, eax
mov dword [ebp - 0xd4], ecx
mov ecx, edi
call fcn.00558ae0
test eax, eax
jne 0x55641e
cmp dword [ebx + 0x5b8], eax
je 0x55641e
mov eax, dword [edi + 0x2c0]
mov dword [ebp - 0xbc], eax
push dword [ebp - 0xd4]
mov eax, dword [edi + 0x2bc]
mov edx, 0x6292df
push dword [ebp - 0xbc]
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov eax, edx
push ecx
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
cmovne eax, ecx
push eax
push dword [ebp - 0xac]
push dword [ebp - 0xd0]
push str.CONNECT__s_HTTP__s_r_n_s_s_s_s
push dword [ebp - 0xc0]
call fcn.00559db0
mov dword [ebp - 0xbc], eax
add esp, 0x20
mov eax, dword [ebp - 0xc8]
test eax, eax
je 0x556484
push eax
call dword [0x65ede8]
add esp, 4
push dword [ebp - 0xd0]
call dword [0x65ede8]
mov eax, dword [ebp - 0xbc]
add esp, 4
test eax, eax
jne 0x5564fa
push dword [ebp - 0xc0]
mov dl, 1
mov ecx, edi
call fcn.0055a250
add esp, 4
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x5564fa
push 0x62de64
push dword [ebp - 0xc0]
call fcn.00559db0
add esp, 8
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x5564fa
push dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc0]
mov edx, edi
push eax
lea eax, [ebx + 0x4ba0]
push eax
call fcn.00559ab0
add esp, 0xc
mov dword [ebp - 0xbc], eax
xor edi, edi
test eax, eax
je 0x556521
push str.Failed_sending_CONNECT_to_proxy
push ebx
call fcn.00543790
add esp, 8
jmp 0x556521
mov edi, dword [ebp - 0xc0]
push dword [edi]
call dword [0x65ede8]
add esp, 4
push edi
call dword [0x65ede8]
mov eax, dword [ebp - 0xbc]
add esp, 4
test eax, eax
jne 0x556f46
mov dword [esi + 0x401c], 1
mov dword [esi + 0x4000], eax
mov eax, dword [ebx + 0x208]
xor ecx, ecx
mov edx, dword [ebx + 0x20c]
test eax, eax
mov dword [ebp - 0xc0], 0x493e0
setg cl
mov dword [ebp - 0xbc], 0
test edx, edx
jle 0x556577
or ecx, 2
sub ecx, 1
je 0x55658f
sub ecx, 1
je 0x55658d
sub ecx, 1
jne 0x55659c
cmp eax, edx
cmovge eax, edx
jmp 0x55658f
mov eax, edx
cdq
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movups xmm0, xmmword [ebx + 0x730]
mov edi, eax
mov eax, 0x10624dd3
mul edi
push 0
shr edx, 6
imul ecx, edx, 0x3e8
push 0x3e8
sub edi, ecx
movd ecx, xmm0
psrldq xmm0, 4
movd eax, xmm0
imul edi, edi, 0x3e8
sub ecx, edx
sbb eax, 0
push eax
push ecx
call fcn.005b8cf0
movups xmm0, xmmword [ebx + 0x730]
mov dword [ebp - 0xac], eax
mov eax, 0x10624dd3
mov dword [ebp - 0xd4], edx
psrldq xmm0, 8
movd ecx, xmm0
sub edi, ecx
mov ecx, dword [ebp - 0xd4]
imul edi
mov edi, dword [ebp - 0xac]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub edi, eax
sbb ecx, edx
add edi, dword [ebp - 0xc0]
mov eax, edi
adc ecx, dword [ebp - 0xbc]
or eax, ecx
je 0x556f6d
test ecx, ecx
jl 0x556f6d
jg 0x55664b
test edi, edi
je 0x556f6d
mov ecx, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xc4]
shl ecx, 4
add ecx, edi
cmp dword [ecx + 0x1cc], 0
je 0x55667c
cmp dword [ecx + 0x1d0], 0
je 0x55667c
mov eax, dword [ecx + 0x1d4]
cmp eax, dword [ecx + 0x1d8]
ja 0x5566aa
mov eax, dword [ebp - 0xcc]
or edx, 0xffffffff
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [edi + eax*4 + 0x1a8]
call fcn.00545cb0
add esp, 0xc
test eax, eax
jle 0x556f44
test al, 1
je 0x556f44
cmp dword [esi + 0x4004], 0
mov dword [ebp - 0xd0], 0
je 0x556cb7
lea edx, [esi + 0x4000]
nop word [eax + eax]
mov eax, dword [esi + 0x400c]
cmp eax, edx
jae 0x556db8
mov edx, dword [ebp - 0xe0]
lea ecx, [ebp - 0xb0]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00544000
add esp, 0xc
mov dword [ebp - 0xac], eax
cmp eax, 0x51
je 0x556f44
mov ecx, edi
call fcn.00557c80
test eax, eax
jne 0x556f57
cmp dword [ebp - 0xac], eax
jne 0x556cad
cmp dword [ebp - 0xb0], eax
jle 0x556c6f
cmp dword [esi + 0x4004], 1
jle 0x5567d5
mov ecx, dword [esi + 0x4010]
mov eax, ecx
mov edx, dword [esi + 0x4014]
or eax, edx
mov dword [esi + 0x400c], esi
je 0x55678d
sub ecx, 1
mov dword [esi + 0x4010], ecx
sbb edx, 0
mov dword [esi + 0x4014], edx
js 0x556c63
jg 0x556775
test ecx, ecx
je 0x556c63
lea edx, [esi + 0x4000]
cmp dword [esi + 0x4004], 0
jne 0x5566d0
jmp 0x556cb7
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0
push eax
push 1
mov edx, esi
mov ecx, edi
call fcn.005737a0
add esp, 8
cmp eax, 0xffffffff
jne 0x556775
push str.chunk_reading_DONE_n
push ebx
call fcn.00543710
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x401c], 2
jmp 0x556775
mov eax, dword [esi + 0x4000]
lea edx, [esi + 0x4000]
inc eax
mov dword [edx], eax
mov dword [ebp - 0xd4], eax
mov eax, dword [esi + 0x400c]
cmp byte [eax], 0xa
je 0x556801
inc eax
mov dword [esi + 0x400c], eax
jmp 0x55677b
cmp byte [ebx + 0x4f8], 0
je 0x5568a3
cmp byte [ebx + 0x4e1], 0
mov ecx, dword [esi + 0x4008]
mov dword [ebp - 0xac], ecx
je 0x556887
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x556887
push eax
push str.from
push str.Header
push str.__s__s__s_
lea eax, [ebp - 0xa8]
push 0xa0
push eax
call sym.PayClient.exe_curl_msnprintf
lea ecx, [ebp - 0xa8]
add esp, 0x18
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x556860
sub ecx, edx
lea eax, [ebp - 0xa8]
push ecx
push eax
xor edx, edx
mov ecx, ebx
call fcn.00544140
add esp, 8
test eax, eax
jne 0x55689d
mov ecx, dword [ebp - 0xac]
push dword [ebp - 0xd4]
mov edx, 1
push ecx
mov ecx, ebx
call fcn.00544140
add esp, 8
lea edx, [esi + 0x4000]
cmp byte [ebx + 0x65c], 0
jne 0x556902
mov ecx, dword [esi + 0x4000]
xor edx, edx
cmp byte [ebx + 0x4ee], dl
mov eax, dword [esi + 0x4008]
setne dl
add edx, 2
test ecx, ecx
jne 0x5568e8
mov ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0xac], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5568d5
sub ecx, dword [ebp - 0xac]
mov eax, dword [esi + 0x4008]
push ecx
push eax
mov ecx, edi
call fcn.00543e40
add esp, 8
test eax, eax
jne 0x556f46
lea edx, [esi + 0x4000]
mov eax, dword [edx]
add dword [ebx + 0x4b9c], eax
mov eax, dword [edx]
add dword [ebx + 0xa0], eax
mov ecx, dword [esi + 0x4008]
mov al, byte [ecx]
cmp al, 0xd
je 0x556b5a
cmp al, 0xa
je 0x556b5a
mov eax, dword [edx]
push 0x11
mov byte [ecx + eax], 0
mov ecx, str.WWW_Authenticate:
mov edi, dword [esi + 0x4008]
mov edx, edi
call fcn.00569fa0
add esp, 4
test eax, eax
je 0x55695e
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0xc8], eax
cmp eax, 0x191
je 0x556986
push 0x13
mov edx, edi
mov ecx, str.Proxy_authenticate:
call fcn.00569fa0
add esp, 4
test eax, eax
je 0x5569e1
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0xc8], eax
cmp eax, 0x197
jne 0x5569e1
mov ecx, edi
call fcn.00558b50
mov dword [ebp - 0xac], eax
test eax, eax
je 0x556da2
cmp dword [ebp - 0xc8], 0x197
mov edi, dword [ebp - 0xc4]
mov ecx, edi
push eax
sete dl
call fcn.00559690
add esp, 4
mov dword [ebp - 0xd4], eax
push dword [ebp - 0xac]
call dword [0x65ede8]
mov eax, dword [ebp - 0xd4]
add esp, 4
test eax, eax
jne 0x556f46
jmp 0x556b3d
push 0xf
mov edx, edi
mov ecx, str.Content_Length:
call fcn.00569fa0
add esp, 4
test eax, eax
je 0x556a36
mov ecx, dword [ebx + 0xf8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x556a1b
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response_n
push ebx
call fcn.00543710
add esp, 0xc
jmp 0x556b37
lea eax, [esi + 0x4010]
xor edx, edx
push eax
push 0xa
lea ecx, [edi + 0xf]
call fcn.00572f60
add esp, 8
jmp 0x556b37
push str.close
mov edx, str.Connection:
mov ecx, edi
call fcn.00559f10
add esp, 4
test al, al
je 0x556a5a
mov byte [ebp - 0xb5], 1
jmp 0x556b37
mov edi, dword [esi + 0x4008]
mov ecx, str.Transfer_Encoding:
push 0x12
mov edx, edi
call fcn.00569fa0
add esp, 4
test eax, eax
je 0x556ae8
mov ecx, dword [ebx + 0xf8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x556a9a
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response_n
push ebx
call fcn.00543710
add esp, 0xc
jmp 0x556b37
push str.chunked
mov edx, str.Transfer_Encoding:
mov ecx, edi
call fcn.00559f10
add esp, 4
test al, al
je 0x556b37
push str.CONNECT_responded_chunked_n
push ebx
call fcn.00543710
mov edi, dword [ebp - 0xc4]
add esp, 8
mov byte [esi + 0x4018], 1
mov dword [edi + 0x24], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x28], 0
jmp 0x556b3d
push str.close
mov edx, str.Proxy_Connection:
mov ecx, edi
call fcn.00559f10
add esp, 4
test al, al
je 0x556b09
mov byte [ebp - 0xb5], 1
jmp 0x556b37
lea edi, [ebx + 0xf8]
push edi
lea eax, [ebp - 0xb4]
push eax
push str.HTTP_1._d__d
push dword [esi + 0x4008]
call fcn.00411fc0
add esp, 0x10
cmp eax, 2
jne 0x556b37
mov eax, dword [edi]
mov dword [ebx + 0x4b8c], eax
mov edi, dword [ebp - 0xc4]
lea edx, [esi + 0x4000]
mov dword [esi + 0x400c], esi
mov dword [edx], 0
mov dword [esi + 0x4008], esi
jmp 0x55677b
mov dword [esi + 0x400c], esi
cmp dword [ebx + 0xf8], 0x197
jne 0x556c54
cmp byte [ebx + 0x491c], 0
jne 0x556c54
mov edx, dword [esi + 0x4010]
mov eax, edx
mov ecx, dword [esi + 0x4014]
or eax, ecx
mov dword [esi + 0x4004], 2
je 0x556bd0
push ecx
push edx
push str.Ignore__I64d_bytes_of_response_body_n
push ebx
call fcn.00543710
add esp, 0x10
lea edx, [esi + 0x4000]
mov eax, dword [esi + 0x4010]
or eax, dword [esi + 0x4014]
jne 0x55677b
mov dword [esi + 0x401c], 2
jmp 0x55677b
cmp byte [esi + 0x4018], 0
je 0x556c45
push str.Ignore_chunked_response_body_n
push ebx
call fcn.00543710
mov byte [ebx + 0x139], 1
add esp, 8
mov edx, dword [esi + 0x4008]
cmp byte [edx + 1], 0xa
lea eax, [edx + 1]
jne 0x556c05
mov dword [esi + 0x4008], eax
mov edx, eax
lea eax, [ebp - 0xb0]
inc edx
push eax
push 1
mov ecx, edi
call fcn.005737a0
add esp, 8
cmp eax, 0xffffffff
jne 0x556ba9
push str.chunk_reading_DONE_n
push ebx
call fcn.00543710
add esp, 8
mov dword [esi + 0x4004], 0
mov dword [esi + 0x401c], 2
jmp 0x556ba9
mov dword [esi + 0x4004], 0
jmp 0x556ba9
mov dword [esi + 0x4004], 0
jmp 0x556baf
mov dword [esi + 0x401c], 2
jmp 0x556cad
cmp dword [ebx + 0x180], 0
je 0x556c95
cmp dword [ebx + 0x4914], 0
je 0x556c95
push str.Proxy_CONNECT_connection_closed_n
push ebx
mov byte [edi + 0x27e], 1
call fcn.00543710
jmp 0x556caa
push str.Proxy_CONNECT_aborted
push ebx
mov dword [ebp - 0xd0], 1
call fcn.00543790
add esp, 8
mov dword [esi + 0x4004], 0
mov ecx, edi
call fcn.00557c80
test eax, eax
jne 0x556f57
cmp dword [ebp - 0xd0], eax
jne 0x556dc6
mov eax, dword [ebx + 0x4b8c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x556d02
mov ecx, edi
call fcn.00558e70
test eax, eax
jne 0x556f46
cmp byte [edi + 0x265], al
je 0x556d02
mov byte [ebp - 0xb5], 1
jmp 0x556d0b
cmp byte [ebp - 0xb5], 0
je 0x556d18
cmp dword [ebx + 0x140], 0
jne 0x556ddc
mov eax, dword [ebx + 0x140]
test eax, eax
je 0x556e01
cmp dword [esi + 0x401c], 2
jne 0x556d6f
mov eax, dword [edi + 0x524]
mov dword [eax + 0x401c], 0
mov dword [eax + 0x4004], 1
mov dword [eax + 0x4008], eax
mov dword [eax + 0x400c], eax
mov dword [eax + 0x4010], 0
mov dword [eax + 0x4014], 0
mov eax, dword [ebx + 0x140]
test eax, eax
je 0x556e01
mov eax, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xdc]
jmp 0x556270
push dword [ebp - 0xd0]
call dword [0x65ede8]
add esp, 4
mov ecx, dword [ebp - 0xc0]
call fcn.00559a90
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push str.CONNECT_response_too_large_
push ebx
call fcn.00543790
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xcc]
mov ecx, edi
mov edx, dword [edi + eax*4 + 0x1a8]
call fcn.00545c60
mov eax, dword [ebp - 0xcc]
mov dword [edi + eax*4 + 0x1a8], 0xffffffff
mov eax, dword [ebx + 0x4b8c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x556ef8
cmp byte [ebp - 0xb5], 0
je 0x556e5a
cmp dword [ebx + 0x140], 0
je 0x556e5a
push str.Connect_me_again_please_n
push ebx
mov byte [edi + 0x27e], 1
call fcn.00543710
mov eax, dword [edi + 0x524]
push str.CONNECT_phase_completed__n
mov dword [eax + 0x401c], 2
push dword [edi]
call fcn.00543710
add esp, 0x10
jmp 0x556ebb
push dword [ebx + 0x140]
call dword [0x65ede8]
mov dword [ebx + 0x140], 0
add esp, 4
mov eax, dword [edi + 0x2a8]
mov eax, dword [eax + 0x44]
and eax, 0x200
sete cl
test eax, eax
jne 0x556e96
cmp cl, byte [edi + 0x265]
je 0x556e96
mov byte [edi + 0x265], cl
mov eax, dword [ebp - 0xcc]
mov ecx, edi
mov edx, dword [edi + eax*4 + 0x1a8]
call fcn.00545c60
mov eax, dword [ebp - 0xcc]
mov dword [edi + eax*4 + 0x1a8], 0xffffffff
mov dword [esi + 0x401c], 0
cmp byte [edi + 0x27e], 0
jne 0x556f44
push dword [ebx + 0xf8]
push str.Received_HTTP_code__d_from_proxy_after_CONNECT
push ebx
call fcn.00543790
add esp, 0xc
mov eax, 0x38
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x401c], 2
push dword [edi + 0x2bc]
call dword [0x65ede8]
add esp, 4
mov dword [edi + 0x2bc], 0
mov byte [ebx + 0x4918], 1
push dword [ebx + 0x4b8c]
push str.Proxy_replied__d_to_CONNECT_request_n
push ebx
call fcn.00543710
mov byte [ebx + 0x139], 0
add esp, 0xc
mov byte [edi + 0x277], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push ebx
call fcn.00543790
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1c
pop edi
pop esi
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret