Function at 0xa6d250
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov ecx, dword [eax]
push edi
push ecx
mov edx, dword [esi + 0xd0]
mov edi, edx
mov eax, edx
mov dword [ebp - 0x14], ebx
push 0xa
push eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
call fcn.00a9b050
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0xa6db11
mov eax, dword [ebp - 0xc]
sub edi, ecx
mov edx, dword [ebp + 8]
dec eax
add eax, edi
mov dword [edx], eax
lea eax, [ecx + 1]
mov edx, dword [ebp - 8]
lea ecx, [esi + 0x8a4]
mov dword [esi + 0xd0], eax
sub eax, dword [ebp - 8]
push eax
call fcn.00a4da30
add esp, 4
test eax, eax
jne 0xa6dbcb
mov edi, dword [esi + 0xcc]
test edi, edi
jne 0xa6d2f8
lea ecx, [esi + 0x8a4]
call fcn.004e3a30
push eax
call fcn.0052f500
push eax
mov edx, ebx
mov ecx, esi
call fcn.00a6c740
add esp, 8
cmp eax, 2
je 0xa6db9b
lea ecx, [esi + 0x8a4]
call fcn.0052f500
mov edx, eax
mov dword [ebp - 0xc], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0xa6d6e5
cmp cl, 0xd
je 0xa6d6e5
lea ecx, [edi + 1]
mov dword [esi + 0xcc], ecx
test edi, edi
jne 0xa6d62a
mov eax, dword [ebx + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0xa6d538
mov al, byte [edx]
mov edi, edx
test al, al
je 0xa6d356
cmp al, 0x20
je 0xa6d34e
cmp al, 9
jne 0xa6d356
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xa6d346
push 5
push str.HTTP_
push edi
call fcn.00aa8830
add esp, 0xc
test eax, eax
jne 0xa6d406
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0xa6d442
sub eax, 1
je 0xa6d38b
sub eax, 1
jne 0xa6dbef
mov al, byte [edi + 6]
cmp al, 0x20
je 0xa6d396
cmp al, 9
jne 0xa6d406
lea edx, [ecx - 0x30]
mov cl, byte [edi + 7]
mov al, cl
lea edx, [edx + edx*4]
add edx, edx
sub al, 0x30
mov dword [ebp - 8], edx
cmp al, 9
ja 0xa6d406
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xa6d406
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0xa6d406
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 2]
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [esi + 0xe0], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0xa6d4dc
cmp al, 9
je 0xa6d4dc
cmp al, 0xa
jl 0xa6d406
cmp al, 0xd
jle 0xa6d4dc
lea ecx, [esi + 0x8a4]
call fcn.004e3a30
push eax
call fcn.0052f500
mov edx, eax
mov ecx, esi
call fcn.00a6c690
add esp, 4
cmp eax, 1
jne 0xa6dc80
mov dword [esi + 0xe0], 0xc8
mov byte [ebx + 0x453], 0xa
jmp 0xa6d614
cmp byte [edi + 6], 0x2e
jne 0xa6dc5a
mov al, byte [edi + 7]
cmp al, 0x30
je 0xa6d45b
cmp al, 0x31
jne 0xa6dc5a
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0xa6d46c
cmp cl, 9
jne 0xa6dc5a
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 8], edx
cmp al, 9
ja 0xa6dc5a
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0xa6dc5a
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xa6dc5a
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 2]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [esi + 0xe0], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xa6d4dc
cmp al, 9
je 0xa6d4dc
sub al, 0xa
cmp al, 3
ja 0xa6dc5a
cmp ecx, 0x64
jl 0xa6dc40
mov eax, edx
sub eax, 0xa
je 0xa6d4f5
sub eax, 1
jne 0xa6dc09
mov byte [ebx + 0x453], dl
mov al, dl
cmp dword [esi + 0xfc], 3
jne 0xa6d51f
cmp dl, 0x14
je 0xa6d51f
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00a5cf70
mov al, byte [ebx + 0x453]
add esp, 8
cmp al, 0x14
jae 0xa6d614
mov eax, dword [ebx + 0x420]
mov dword [eax], 0xffffffff
jmp 0xa6d614
test eax, 0x40000
je 0xa6dc80
mov al, byte [edx]
mov edi, edx
test al, al
je 0xa6d560
nop dword [eax + eax]
cmp al, 0x20
je 0xa6d558
cmp al, 9
jne 0xa6d560
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xa6d550
push 5
push str.RTSP_
push edi
call fcn.00aa8830
add esp, 0xc
test eax, eax
jne 0xa6dc80
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0xa6dc74
cmp byte [edi + 6], 0x2e
jne 0xa6dc74
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0xa6dc74
mov al, byte [edi + 8]
cmp al, 0x20
je 0xa6d5ab
cmp al, 9
jne 0xa6dc74
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xa6dc74
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0xa6dc74
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xa6dc74
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [esi + 0xe0], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xa6d60d
cmp al, 9
je 0xa6d60d
sub al, 0xa
cmp al, 3
ja 0xa6dc74
mov byte [ebx + 0x453], 0xb
mov edx, ebx
mov ecx, esi
call fcn.00a6cfe0
test eax, eax
jne 0xa6dbcb
lea edi, [eax + 6]
jmp 0xa6d62f
mov edi, 2
mov ecx, esi
call fcn.00a6d1c0
test eax, eax
jne 0xa6dbcb
push dword [ebp - 0xc]
mov edx, ebx
mov ecx, esi
call fcn.00a6c770
add esp, 4
test eax, eax
jne 0xa6dbcb
mov ebx, edi
lea ecx, [esi + 0x8a4]
or ebx, 1
cmp byte [esi + 0x6cb], al
cmove ebx, edi
mov edi, dword [esi + 0xe0]
call fcn.004e3a30
push eax
push dword [ebp - 0xc]
mov edx, 1
mov ecx, esi
call fcn.00a5ce10
lea ecx, [esi + 0x8a4]
call fcn.004e3a30
push eax
push dword [ebp - 0xc]
lea eax, [edi - 0x64]
mov edx, ebx
or edx, 0x10
mov ecx, esi
cmp eax, 0x64
cmovae edx, ebx
call fcn.00a53090
add esp, 0x10
test eax, eax
jne 0xa6dbcb
lea ecx, [esi + 0x8a4]
call fcn.004e3a30
add dword [esi + 0xd70], eax
adc dword [esi + 0xd74], 0
call fcn.004e3a30
add dword [esi + 0xa0], eax
mov ebx, dword [ebp - 0x14]
adc dword [esi + 0xa4], 0
jmp 0xa6dad7
mov ecx, dword [esi + 0xe0]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0xa6d76a
sub ecx, 0x64
je 0xa6d730
sub ecx, 1
je 0xa6d715
lea edi, [esi + 0x142]
mov dword [esi + 0xcc], 0
mov byte [edi], 1
jmp 0xa6d7d1
cmp dword [esi + 0xfc], 2
je 0xa6dc90
lea edi, [esi + 0x142]
mov byte [edi], 0
jmp 0xa6d7d1
cmp dword [esi + 0xf8], 0
lea edi, [esi + 0x142]
mov byte [edi], 1
mov dword [esi + 0xcc], 0
jle 0xa6d7d1
or dword [esi + 0xe4], 2
mov ecx, esi
mov dword [esi + 0xf8], 0
call fcn.00a52bb0
jmp 0xa6d7d1
mov eax, dword [esi + 0x80]
lea edi, [esi + 0x142]
and eax, dword [esi + 0x84]
mov byte [edi], 0
cmp eax, 0xffffffff
jne 0xa6d7d8
cmp byte [esi + 0x147], 0
jne 0xa6d7d8
cmp byte [ebx + 0x1c6], 0
jne 0xa6d7d8
cmp byte [ebx + 0x453], 0xb
jne 0xa6d7d8
mov eax, dword [ebx + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0xa6d7d8
cmp byte [esi + 0xc94], 5
je 0xa6d7d8
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00a5cf70
add esp, 8
mov edx, 2
mov ecx, ebx
call fcn.00a53690
mov eax, edi
cmp byte [eax], 0
jne 0xa6d7e7
mov ecx, esi
call fcn.00a6d100
test eax, eax
jne 0xa6dbcb
mov al, byte [ebx + 0x1c6]
test al, al
je 0xa6d877
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa6d80b
cmp dword [ebx + 0x250], 2
je 0xa6d81b
cmp eax, 0x197
jne 0xa6d83a
cmp dword [ebx + 0x254], 2
jne 0xa6d83a
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a5cf70
mov byte [esi + 0xd3d], 1
add esp, 8
mov al, byte [ebx + 0x1c6]
test al, al
je 0xa6d877
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa6d852
cmp dword [ebx + 0x2d8], 1
je 0xa6d862
jmp 0xa6d877
cmp eax, 0x197
jne 0xa6d877
cmp dword [ebx + 0x2dc], 1
jne 0xa6d877
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a5cf70
add esp, 8
mov byte [esi + 0xd3d], 1
cmp dword [ebx + 0x2d8], 3
jne 0xa6d896
cmp dword [esi + 0xe0], 0x191
je 0xa6d896
mov dword [ebx + 0x2d8], 4
cmp dword [ebx + 0x2dc], 3
jne 0xa6d8b5
cmp dword [esi + 0xe0], 0x197
je 0xa6d8b5
mov dword [ebx + 0x2dc], 4
mov eax, dword [esi + 0xe0]
lea ecx, [esi + 0x8a4]
sub eax, 0x64
cmp eax, 0x64
sbb edx, edx
xor eax, eax
and edx, 0x10
cmp byte [esi + 0x6cb], al
setne al
add eax, 2
or edx, eax
call fcn.004e3a30
push eax
mov dword [ebp - 0xc], eax
call fcn.0052f500
push eax
mov ecx, esi
call fcn.00a53090
add esp, 8
test eax, eax
jne 0xa6dbcb
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0xa4]
cdq
add dword [esi + 0xd70], eax
adc dword [esi + 0xd74], edx
add eax, dword [esi + 0xa0]
mov dword [ebp - 0x10], eax
adc ecx, edx
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
call fcn.00a69f30
test al, al
mov eax, dword [esi + 0xe0]
jne 0xa6dd41
add eax, 0xffffff9c
cmp eax, 0x63
ja 0xa6d952
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
jmp 0xa6d960
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xac], ecx
mov ecx, esi
mov dword [esi + 0xa8], eax
call fcn.00a69750
test eax, eax
jne 0xa6dbcb
cmp dword [esi + 0xe0], 0x12c
jl 0xa6dac8
cmp byte [ebx + 0x1d0], al
jne case.default.0xa6d9c0
cmp byte [ebx + 0x1c6], al
jne case.default.0xa6d9c0
cmp byte [esi + 0xd4b], al
jne 0xa6daaa
movzx eax, byte [esi + 0xc94]
dec eax
cmp eax, 3
ja case.default.0xa6d9c0
jmp dword [eax*4 + 0xa6dd5c]
mov ecx, esi
call fcn.00a52bb0
cmp byte [esi + 0x144], 0
jne case.default.0xa6d9c0
cmp dword [esi + 0xe0], 0x1a1
jne 0xa6da26
cmp byte [esi + 0xd3f], 0
je 0xa6da26
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00a5cf70
push dword [esi + 0xc98]
mov byte [esi + 0xd40], 1
call dword [0xb00988]
add esp, 0xc
mov dword [esi + 0x118], eax
lea edx, [esi + 0x80]
mov ecx, esi
call fcn.00a649c0
jmp case.default.0xa6d9c0
cmp byte [esi + 0x6c7], 0
je 0xa6da59
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00a5cf70
add esp, 8
cmp dword [esi + 0xf8], 0
jle case.default.0xa6d9c0
or dword [esi + 0xe4], 2
mov dword [esi + 0xf8], 0
jmp case.default.0xa6d9c0
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00a5cf70
add esp, 8
mov edx, 2
mov ecx, ebx
call fcn.00a53690
lea edx, [esi + 0x80]
mov ecx, esi
call fcn.00a649c0
test eax, eax
jne 0xa6dbcb
mov byte [esi + 0x144], 1
cmp byte [esi + 0xd3f], al
je case.default.0xa6d9c0
mov dword [esi + 0xf8], 3
cmp byte [esi + 0xd4b], 0
je 0xa6dac8
cmp dword [ebx + 0x1fc], 0xffffffff
je 0xa6dac8
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00a5cf70
add esp, 8
or dword [esi + 0xe4], 2
cmp byte [edi], 0
je 0xa6dcc5
lea ecx, [esi + 0x8a4]
call fcn.00a4d9c0
mov edi, dword [esi + 0xd0]
cmp byte [edi], 0
je 0xa6dbc9
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 8], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call fcn.00a9b050
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0xa6d294
push dword [ebp - 0x10]
mov edx, dword [ebp - 8]
lea ecx, [esi + 0x8a4]
call fcn.00a4da30
add esp, 4
test eax, eax
jne 0xa6dbcb
cmp dword [esi + 0xcc], eax
jne 0xa6dbc9
lea ecx, [esi + 0x8a4]
call fcn.004e3a30
push eax
lea ecx, [esi + 0x8a4]
call fcn.0052f500
push eax
mov edx, ebx
mov ecx, esi
call fcn.00a6c740
add esp, 8
cmp eax, 2
jne 0xa6dbc9
mov edx, eax
mov byte [esi + 0x142], 0
mov ecx, ebx
mov dword [esi + 0xc8], eax
call fcn.00a53690
cmp byte [esi + 0x6ea], 0
jne 0xa6dbc9
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00a5ceb0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 2
mov ecx, ebx
call fcn.00a53690
cmp byte [esi + 0x6ea], 0
je 0xa6db81
mov eax, dword [ebp + 8]
mov byte [esi + 0x142], 0
cmp dword [eax], 0
je 0xa6dbd2
mov dword [esi + 0xc8], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0xc8], edx
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xd0], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.00a5ceb0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 8]
lea eax, [ecx + ecx*4]
add eax, eax
sub edx, eax
push edx
push ecx
push str.Unsupported_HTTP_version___u._d__in_response
push esi
call fcn.00a5ceb0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_response_code_in_HTTP_response
push esi
call fcn.00a5ceb0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_1_subversion_in_response
push esi
call fcn.00a5ceb0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x142], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.00a5cf70
add esp, 8
mov dword [esi + 0xfc], 3
mov byte [esi + 0x142], 1
mov eax, 1
mov dword [esi + 0xcc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x14c], 0
mov ecx, dword [ebp + 0xc]
jne 0xa6dcfd
mov eax, dword [ebx + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0xa6dd00
cmp dword [esi + 0x65c], 2
jne 0xa6dd00
cmp dword [esi + 0x84], 0xffffffff
jg 0xa6dd00
jl 0xa6dcfd
cmp dword [esi + 0x80], 0xffffffff
ja 0xa6dd00
mov byte [ecx], 1
cmp dword [esi + 0x88], 0
jne 0xa6dd17
cmp dword [esi + 0x8c], 0
jne 0xa6dd17
mov byte [ecx], 1
jmp 0xa6dd1c
cmp byte [ecx], 0
je 0xa6dd23
and dword [esi + 0xe4], 0xfffffffe
push dword [ebp - 0xc]
mov edx, 1
mov ecx, esi
push dword [ebp - 8]
call fcn.00a5ce10
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.The_requested_URL_returned_error:__d
push esi
call fcn.00a5ceb0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret