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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
mov ecx, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0xd0]
lea ebx, [esi + 0x80]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
push dword [eax]
push 0xa
push edi
call fcn.00a8db20
add esp, 0xc
test eax, eax
je 0xa5b3d8
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebp + 0x10]
sub ecx, eax
dec ecx
add dword [edx], ecx
inc eax
mov dword [ebx + 0x50], eax
sub eax, edi
push eax
lea ecx, [esi + 0x9b4]
push edi
push ecx
call fcn.00a45fe0
add esp, 0xc
test eax, eax
jne 0xa5aa28
cmp dword [ebx + 0x4c], eax
jne 0xa5aa2f
lea edi, [esi + 0x9b4]
push edi
call fcn.00a46050
add esp, 4
push eax
push edi
call fcn.00a46060
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.00a5bb60
add esp, 0x10
cmp eax, 2
jne 0xa5aa32
push eax
push edi
call fcn.00a50500
add esp, 8
cmp dword [esi + 0x7f4], 0
je 0xa5b44e
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc4], 0
cmp dword [eax], 0
je 0xa5b25c
mov dword [ebx + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x9b4]
push eax
call fcn.00a46060
mov edx, eax
add esp, 4
mov cl, byte [edx]
mov dword [ebp - 8], edx
cmp cl, 0xa
je 0xa5ae69
cmp cl, 0xd
je 0xa5ae69
mov ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], 2
lea eax, [ecx + 1]
mov dword [ebx + 0x4c], eax
test ecx, ecx
jne 0xa5ada7
mov eax, dword [edi + 0x254]
mov eax, dword [eax + 0x44]
test al, 3
je 0xa5ac95
mov al, byte [edx]
mov edi, edx
test al, al
je 0xa5aaa0
jmp 0xa5aa90
cmp al, 0x20
je 0xa5aa98
cmp al, 9
jne 0xa5aaa0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xa5aa90
push 5
push str.HTTP_
push edi
call fcn.00a8e3f0
add esp, 0xc
test eax, eax
jne 0xa5ab4f
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0xa5ab91
sub al, 0x32
cmp al, 1
ja 0xa5b277
mov al, byte [edi + 6]
cmp al, 0x20
je 0xa5aada
cmp al, 9
jne 0xa5ab4f
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
add edx, edx
mov dword [ebp - 0xc], edx
cmp cl, 0x30
jl 0xa5ab4f
cmp cl, 0x39
jg 0xa5ab4f
mov al, byte [edi + 8]
mov byte [ebp + 0xb], al
cmp al, 0x30
jl 0xa5ab4f
cmp al, 0x39
jg 0xa5ab4f
mov al, byte [edi + 9]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0xa5ab4f
cmp al, 0x39
jg 0xa5ab4f
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp + 0xb]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x60], eax
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0xa5ac3f
cmp al, 9
je 0xa5ac3f
cmp al, 0xa
jl 0xa5ab4f
cmp al, 0xd
jle 0xa5ac3f
lea edi, [esi + 0x9b4]
push edi
call fcn.00a46050
add esp, 4
push eax
push edi
call fcn.00a46060
add esp, 4
push eax
push esi
call fcn.00a5bab0
add esp, 0xc
cmp eax, 1
jne 0xa5b308
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x60], 0xc8
mov byte [edi + 0x4f5], 0xa
jmp 0xa5ad8e
cmp byte [edi + 6], 0x2e
jne 0xa5b2e2
mov al, byte [edi + 7]
cmp al, 0x30
je 0xa5abaa
cmp al, 0x31
jne 0xa5b2e2
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0xa5abbb
cmp cl, 9
jne 0xa5b2e2
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0xc], edx
cmp cl, 0x30
jl 0xa5b2e2
cmp cl, 0x39
jg 0xa5b2e2
mov al, byte [edi + 0xa]
mov byte [ebp + 0xb], al
cmp al, 0x30
jl 0xa5b2e2
cmp al, 0x39
jg 0xa5b2e2
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0xa5b2e2
cmp al, 0x39
jg 0xa5b2e2
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp + 0xb]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xa5ac3f
cmp al, 9
je 0xa5ac3f
cmp al, 0xa
jl 0xa5b2e2
cmp al, 0xd
jg 0xa5b2e2
cmp dword [ebx + 0x60], 0x64
jl 0xa5b2c8
lea eax, [edx - 0xa]
cmp eax, 1
ja 0xa5b291
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x4f5], dl
cmp dword [ebx + 0x7c], 3
jne 0xa5ac77
cmp dl, 0x14
je 0xa5ac77
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00a4f8f0
add esp, 8
cmp byte [edi + 0x4f5], 0x14
jae 0xa5ad8e
mov eax, dword [edi + 0x4c8]
mov dword [eax], 0xffffffff
jmp 0xa5ad8e
test eax, 0x40000
je 0xa5b308
mov al, byte [edx]
mov edi, edx
test al, al
je 0xa5acb8
cmp al, 0x20
je 0xa5acb0
cmp al, 9
jne 0xa5acb8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xa5aca8
push 5
push str.RTSP_
push edi
call fcn.00a8e3f0
add esp, 0xc
test eax, eax
jne 0xa5b308
mov al, byte [edi + 5]
cmp al, 0x30
jl 0xa5b2fc
cmp al, 0x39
jg 0xa5b2fc
cmp byte [edi + 6], 0x2e
jne 0xa5b2fc
mov al, byte [edi + 7]
cmp al, 0x30
jl 0xa5b2fc
cmp al, 0x39
jg 0xa5b2fc
mov al, byte [edi + 8]
cmp al, 0x20
je 0xa5ad0f
cmp al, 9
jne 0xa5b2fc
mov al, byte [edi + 9]
cmp al, 0x30
jl 0xa5b2fc
cmp al, 0x39
jg 0xa5b2fc
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0xa5b2fc
cmp dh, 0x39
jg 0xa5b2fc
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0xa5b2fc
cmp dl, 0x39
jg 0xa5b2fc
movsx eax, al
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 [ebx + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xa5ad84
cmp al, 9
je 0xa5ad84
cmp al, 0xa
jl 0xa5b2fc
cmp al, 0xd
jg 0xa5b2fc
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x4f5], 0xb
push edi
push esi
call fcn.00a5b710
add esp, 8
test eax, eax
jne 0xa5aa28
mov dword [ebp + 8], 6
push esi
call fcn.00a5c470
add esp, 4
test eax, eax
jne 0xa5aa28
push dword [ebp - 8]
push edi
push esi
call fcn.00a598a0
add esp, 0xc
test eax, eax
jne 0xa5aa28
mov edi, dword [ebp + 8]
cmp dword [esi + 0x77c], eax
je 0xa5addb
or edi, 1
mov eax, 0x51eb851f
imul dword [ebx + 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0xa5adf5
or edi, 0x10
lea eax, [esi + 0x9b4]
push eax
call fcn.00a46050
push eax
push dword [ebp - 8]
push 1
push esi
call fcn.00a4f7a0
lea eax, [esi + 0x9b4]
push eax
call fcn.00a46050
push eax
push dword [ebp - 8]
push edi
push esi
call fcn.00a4f970
add esp, 0x28
test eax, eax
jne 0xa5aa28
lea edi, [esi + 0x9b4]
push edi
call fcn.00a46050
add dword [esi + 0xee8], eax
push edi
adc dword [esi + 0xeec], 0
call fcn.00a46050
add dword [esi + 0xa0], eax
push edi
adc dword [esi + 0xa4], 0
call fcn.00a46070
add esp, 0xc
jmp 0xa5b245
mov eax, dword [ebx + 0x60]
cmp eax, 0x64
jl 0xa5aede
cmp eax, 0xc7
jg 0xa5aede
sub eax, 0x64
je 0xa5aeaf
dec eax
je 0xa5ae96
mov dword [ebx + 0xc4], 1
mov dword [ebx + 0x4c], 0
jmp 0xa5af3b
cmp dword [ebx + 0x7c], 2
je 0xa5b31b
mov dword [ebx + 0xc4], 0
jmp 0xa5af3b
cmp dword [ebx + 0x78], 0
mov dword [ebx + 0xc4], 1
mov dword [ebx + 0x4c], 0
jle 0xa5af3b
or dword [ebx + 0x64], 2
push 0
push esi
mov dword [ebx + 0x78], 0
call fcn.00a404a0
add esp, 8
jmp 0xa5af3b
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov dword [ebx + 0xc4], 0
cmp eax, 0xffffffff
jne 0xa5af3b
cmp dword [ebx + 0xd8], 0
jne 0xa5af3b
cmp dword [edi + 0x1f0], 0
jne 0xa5af3b
cmp byte [edi + 0x4f5], 0xb
jne 0xa5af3b
mov eax, dword [edi + 0x254]
test dword [eax + 0x44], 0x40000
jne 0xa5af3b
cmp byte [esi + 0xe6e], 5
je 0xa5af3b
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00a4f8f0
push 2
push edi
call fcn.00a50500
add esp, 0x10
cmp dword [ebx + 0xc4], 0
jne 0xa5af55
push esi
call fcn.00a5b640
add esp, 4
test eax, eax
jne 0xa5aa28
cmp dword [edi + 0x1f0], 0
je 0xa5afe7
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa5af78
cmp dword [edi + 0x2c8], 2
je 0xa5af88
cmp eax, 0x197
jne 0xa5afa0
cmp dword [edi + 0x2cc], 2
jne 0xa5afa0
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a4f8f0
add esp, 8
mov dword [esi + 0xe84], 1
cmp dword [edi + 0x1f0], 0
je 0xa5afe7
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa5afbf
cmp dword [edi + 0x350], 1
je 0xa5afcf
cmp eax, 0x197
jne 0xa5afe7
cmp dword [edi + 0x354], 1
jne 0xa5afe7
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a4f8f0
add esp, 8
mov dword [esi + 0xe84], 1
cmp dword [edi + 0x350], 3
jne 0xa5b006
cmp dword [esi + 0xe0], 0x191
je 0xa5b006
mov dword [edi + 0x350], 4
cmp dword [edi + 0x354], 3
jne 0xa5b025
cmp dword [esi + 0xe0], 0x197
je 0xa5b025
mov dword [edi + 0x354], 4
mov eax, 0x51eb851f
imul dword [ebx + 0x60]
sar edx, 5
mov edi, edx
shr edi, 0x1f
dec edi
add edi, edx
neg edi
sbb edi, edi
and edi, 0xfffffff0
xor eax, eax
add edi, 0x10
cmp dword [esi + 0x77c], eax
setne al
or edi, eax
lea eax, [esi + 0x9b4]
push eax
or edi, 2
call fcn.00a46050
add esp, 4
mov dword [ebp - 0xc], eax
push eax
lea eax, [esi + 0x9b4]
push eax
call fcn.00a46060
add esp, 4
push eax
push edi
push esi
call fcn.00a4f970
add esp, 0x10
test eax, eax
jne 0xa5aa28
mov eax, dword [ebp - 0xc]
cdq
add dword [esi + 0xee8], eax
push esi
adc dword [esi + 0xeec], edx
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], edx
call fcn.00a5c020
add esp, 4
test eax, eax
jne 0xa5b3bb
mov eax, dword [ebx + 0x60]
cmp eax, 0x64
jl 0xa5b0d1
cmp eax, 0xc7
jg 0xa5b0d1
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
jmp 0xa5b0df
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push esi
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
call fcn.00a58870
add esp, 4
test eax, eax
jne 0xa5aa28
cmp dword [ebx + 0x60], 0x12c
mov edi, dword [ebp + 0xc]
jl 0xa5b229
cmp dword [edi + 0x218], eax
jne 0xa5b205
cmp dword [edi + 0x1f0], eax
jne 0xa5b205
cmp dword [esi + 0xebc], eax
jne 0xa5b20e
mov al, byte [esi + 0xe6e]
dec al
cmp al, 3
ja 0xa5b205
push 0
push esi
call fcn.00a404a0
add esp, 8
cmp dword [ebx + 0xcc], 0
jne 0xa5b205
cmp dword [ebx + 0x60], 0x1a1
jne 0xa5b19d
cmp dword [esi + 0xe8c], 0
je 0xa5b19d
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00a4f8f0
push dword [esi + 0xdcc]
mov dword [esi + 0xe90], 1
call dword [0xada7b4]
push ebx
push esi
mov dword [esi + 0x118], eax
call fcn.00a53a90
add esp, 0x14
jmp 0xa5b205
cmp dword [esi + 0x76c], 0
je 0xa5b1c7
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00a4f8f0
add esp, 8
cmp dword [ebx + 0x78], 0
jle 0xa5b205
or dword [ebx + 0x64], 2
mov dword [ebx + 0x78], 0
jmp 0xa5b205
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00a4f8f0
push 2
push edi
call fcn.00a50500
push ebx
push esi
call fcn.00a53a90
add esp, 0x18
test eax, eax
jne 0xa5aa28
mov dword [ebx + 0xcc], 1
cmp dword [esi + 0xe8c], eax
je 0xa5b205
mov dword [ebx + 0x78], 3
cmp dword [esi + 0xebc], 0
je 0xa5b229
cmp dword [edi + 0x274], 0xffffffff
je 0xa5b229
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00a4f8f0
add esp, 8
or dword [ebx + 0x64], 2
cmp dword [ebx + 0xc4], 0
je 0xa5b34d
lea eax, [esi + 0x9b4]
push eax
call fcn.00a46070
add esp, 4
mov edi, dword [ebx + 0x50]
mov dword [ebp + 8], edi
cmp byte [edi], 0
je 0xa5aa26
mov eax, dword [ebp + 0x10]
jmp 0xa5a986
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x48], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
pop edi
mov dword [ebx + 0x50], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.00a4f830
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 - 0xc]
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.00a4f830
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.00a4f830
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.00a4f830
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [ebx + 0xc4], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.00a4f8f0
add esp, 8
mov dword [ebx + 0x7c], 3
pop edi
pop esi
mov dword [ebx + 0xc4], 1
mov dword [ebx + 0x4c], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x16c], 0
mov ecx, dword [ebp + 0x14]
jne 0xa5b37e
mov eax, dword [edi + 0x254]
test dword [eax + 0x44], 0x40000
je 0xa5b384
cmp dword [esi + 0x6c0], 2
jne 0xa5b384
cmp dword [ebx + 4], 0xffffffff
jg 0xa5b384
jl 0xa5b37e
cmp dword [ebx], 0xffffffff
ja 0xa5b384
mov dword [ecx], 1
cmp dword [ebx + 8], 0
jne 0xa5b398
cmp dword [ebx + 0xc], 0
jne 0xa5b398
mov dword [ecx], 1
jmp 0xa5b39d
cmp dword [ecx], 0
je 0xa5b3a1
and dword [ebx + 0x64], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp + 8]
push 1
push esi
call fcn.00a4f7a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x60]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.00a4f830
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x9b4]
push dword [eax]
push dword [ebp + 8]
push edi
call fcn.00a45fe0
add esp, 0xc
test eax, eax
jne 0xa5aa28
cmp dword [ebx + 0x4c], eax
jne 0xa5aa26
push edi
call fcn.00a46050
add esp, 4
push eax
push edi
call fcn.00a46060
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.00a5bb60
add esp, 0x10
cmp eax, 2
jne 0xa5aa26
push eax
push edi
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0x48], eax
call fcn.00a50500
add esp, 8
cmp dword [esi + 0x7f4], 0
jne 0xa5aa26
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00a4f830
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret