Function at 0xa48b80
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.00a7bd50
add esp, 0xc
test eax, eax
je 0xa495f8
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.00a34210
add esp, 0xc
test eax, eax
jne 0xa48c48
cmp dword [ebx + 0x4c], eax
jne 0xa48c4f
lea edi, [esi + 0x9b4]
push edi
call fcn.00a34280
add esp, 4
push eax
push edi
call fcn.00a34290
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.00a49d80
add esp, 0x10
cmp eax, 2
jne 0xa48c52
push eax
push edi
call fcn.00a3e720
add esp, 8
cmp dword [esi + 0x7f4], 0
je 0xa4966e
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xc4], 0
cmp dword [eax], 0
je 0xa4947c
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.00a34290
mov edx, eax
add esp, 4
mov cl, byte [edx]
mov dword [ebp - 8], edx
cmp cl, 0xa
je 0xa49089
cmp cl, 0xd
je 0xa49089
mov ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], 2
lea eax, [ecx + 1]
mov dword [ebx + 0x4c], eax
test ecx, ecx
jne 0xa48fc7
mov eax, dword [edi + 0x254]
mov eax, dword [eax + 0x44]
test al, 3
je 0xa48eb5
mov al, byte [edx]
mov edi, edx
test al, al
je 0xa48cc0
jmp 0xa48cb0
cmp al, 0x20
je 0xa48cb8
cmp al, 9
jne 0xa48cc0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xa48cb0
push 5
push str.HTTP_
push edi
call fcn.00a7c620
add esp, 0xc
test eax, eax
jne 0xa48d6f
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0xa48db1
sub al, 0x32
cmp al, 1
ja 0xa49497
mov al, byte [edi + 6]
cmp al, 0x20
je 0xa48cfa
cmp al, 9
jne 0xa48d6f
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 0xa48d6f
cmp cl, 0x39
jg 0xa48d6f
mov al, byte [edi + 8]
mov byte [ebp + 0xb], al
cmp al, 0x30
jl 0xa48d6f
cmp al, 0x39
jg 0xa48d6f
mov al, byte [edi + 9]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0xa48d6f
cmp al, 0x39
jg 0xa48d6f
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 0xa48e5f
cmp al, 9
je 0xa48e5f
cmp al, 0xa
jl 0xa48d6f
cmp al, 0xd
jle 0xa48e5f
lea edi, [esi + 0x9b4]
push edi
call fcn.00a34280
add esp, 4
push eax
push edi
call fcn.00a34290
add esp, 4
push eax
push esi
call fcn.00a49cd0
add esp, 0xc
cmp eax, 1
jne 0xa49528
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x60], 0xc8
mov byte [edi + 0x4f5], 0xa
jmp 0xa48fae
cmp byte [edi + 6], 0x2e
jne 0xa49502
mov al, byte [edi + 7]
cmp al, 0x30
je 0xa48dca
cmp al, 0x31
jne 0xa49502
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0xa48ddb
cmp cl, 9
jne 0xa49502
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0xc], edx
cmp cl, 0x30
jl 0xa49502
cmp cl, 0x39
jg 0xa49502
mov al, byte [edi + 0xa]
mov byte [ebp + 0xb], al
cmp al, 0x30
jl 0xa49502
cmp al, 0x39
jg 0xa49502
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0xa49502
cmp al, 0x39
jg 0xa49502
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 0xa48e5f
cmp al, 9
je 0xa48e5f
cmp al, 0xa
jl 0xa49502
cmp al, 0xd
jg 0xa49502
cmp dword [ebx + 0x60], 0x64
jl 0xa494e8
lea eax, [edx - 0xa]
cmp eax, 1
ja 0xa494b1
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x4f5], dl
cmp dword [ebx + 0x7c], 3
jne 0xa48e97
cmp dl, 0x14
je 0xa48e97
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00a3db10
add esp, 8
cmp byte [edi + 0x4f5], 0x14
jae 0xa48fae
mov eax, dword [edi + 0x4c8]
mov dword [eax], 0xffffffff
jmp 0xa48fae
test eax, 0x40000
je 0xa49528
mov al, byte [edx]
mov edi, edx
test al, al
je 0xa48ed8
cmp al, 0x20
je 0xa48ed0
cmp al, 9
jne 0xa48ed8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xa48ec8
push 5
push str.RTSP_
push edi
call fcn.00a7c620
add esp, 0xc
test eax, eax
jne 0xa49528
mov al, byte [edi + 5]
cmp al, 0x30
jl 0xa4951c
cmp al, 0x39
jg 0xa4951c
cmp byte [edi + 6], 0x2e
jne 0xa4951c
mov al, byte [edi + 7]
cmp al, 0x30
jl 0xa4951c
cmp al, 0x39
jg 0xa4951c
mov al, byte [edi + 8]
cmp al, 0x20
je 0xa48f2f
cmp al, 9
jne 0xa4951c
mov al, byte [edi + 9]
cmp al, 0x30
jl 0xa4951c
cmp al, 0x39
jg 0xa4951c
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0xa4951c
cmp dh, 0x39
jg 0xa4951c
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0xa4951c
cmp dl, 0x39
jg 0xa4951c
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 0xa48fa4
cmp al, 9
je 0xa48fa4
cmp al, 0xa
jl 0xa4951c
cmp al, 0xd
jg 0xa4951c
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x4f5], 0xb
push edi
push esi
call fcn.00a49930
add esp, 8
test eax, eax
jne 0xa48c48
mov dword [ebp + 8], 6
push esi
call fcn.00a4a6a0
add esp, 4
test eax, eax
jne 0xa48c48
push dword [ebp - 8]
push edi
push esi
call fcn.00a47ac0
add esp, 0xc
test eax, eax
jne 0xa48c48
mov edi, dword [ebp + 8]
cmp dword [esi + 0x77c], eax
je 0xa48ffb
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 0xa49015
or edi, 0x10
lea eax, [esi + 0x9b4]
push eax
call fcn.00a34280
push eax
push dword [ebp - 8]
push 1
push esi
call fcn.00a3d9c0
lea eax, [esi + 0x9b4]
push eax
call fcn.00a34280
push eax
push dword [ebp - 8]
push edi
push esi
call fcn.00a3db90
add esp, 0x28
test eax, eax
jne 0xa48c48
lea edi, [esi + 0x9b4]
push edi
call fcn.00a34280
add dword [esi + 0xee8], eax
push edi
adc dword [esi + 0xeec], 0
call fcn.00a34280
add dword [esi + 0xa0], eax
push edi
adc dword [esi + 0xa4], 0
call fcn.00a342a0
add esp, 0xc
jmp 0xa49465
mov eax, dword [ebx + 0x60]
cmp eax, 0x64
jl 0xa490fe
cmp eax, 0xc7
jg 0xa490fe
sub eax, 0x64
je 0xa490cf
dec eax
je 0xa490b6
mov dword [ebx + 0xc4], 1
mov dword [ebx + 0x4c], 0
jmp 0xa4915b
cmp dword [ebx + 0x7c], 2
je 0xa4953b
mov dword [ebx + 0xc4], 0
jmp 0xa4915b
cmp dword [ebx + 0x78], 0
mov dword [ebx + 0xc4], 1
mov dword [ebx + 0x4c], 0
jle 0xa4915b
or dword [ebx + 0x64], 2
push 0
push esi
mov dword [ebx + 0x78], 0
call fcn.00a2e6d0
add esp, 8
jmp 0xa4915b
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov dword [ebx + 0xc4], 0
cmp eax, 0xffffffff
jne 0xa4915b
cmp dword [ebx + 0xd8], 0
jne 0xa4915b
cmp dword [edi + 0x1f0], 0
jne 0xa4915b
cmp byte [edi + 0x4f5], 0xb
jne 0xa4915b
mov eax, dword [edi + 0x254]
test dword [eax + 0x44], 0x40000
jne 0xa4915b
cmp byte [esi + 0xe6e], 5
je 0xa4915b
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00a3db10
push 2
push edi
call fcn.00a3e720
add esp, 0x10
cmp dword [ebx + 0xc4], 0
jne 0xa49175
push esi
call fcn.00a49860
add esp, 4
test eax, eax
jne 0xa48c48
cmp dword [edi + 0x1f0], 0
je 0xa49207
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa49198
cmp dword [edi + 0x2c8], 2
je 0xa491a8
cmp eax, 0x197
jne 0xa491c0
cmp dword [edi + 0x2cc], 2
jne 0xa491c0
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a3db10
add esp, 8
mov dword [esi + 0xe84], 1
cmp dword [edi + 0x1f0], 0
je 0xa49207
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa491df
cmp dword [edi + 0x350], 1
je 0xa491ef
cmp eax, 0x197
jne 0xa49207
cmp dword [edi + 0x354], 1
jne 0xa49207
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a3db10
add esp, 8
mov dword [esi + 0xe84], 1
cmp dword [edi + 0x350], 3
jne 0xa49226
cmp dword [esi + 0xe0], 0x191
je 0xa49226
mov dword [edi + 0x350], 4
cmp dword [edi + 0x354], 3
jne 0xa49245
cmp dword [esi + 0xe0], 0x197
je 0xa49245
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.00a34280
add esp, 4
mov dword [ebp - 0xc], eax
push eax
lea eax, [esi + 0x9b4]
push eax
call fcn.00a34290
add esp, 4
push eax
push edi
push esi
call fcn.00a3db90
add esp, 0x10
test eax, eax
jne 0xa48c48
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.00a4a250
add esp, 4
test eax, eax
jne 0xa495db
mov eax, dword [ebx + 0x60]
cmp eax, 0x64
jl 0xa492f1
cmp eax, 0xc7
jg 0xa492f1
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
jmp 0xa492ff
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.00a46a90
add esp, 4
test eax, eax
jne 0xa48c48
cmp dword [ebx + 0x60], 0x12c
mov edi, dword [ebp + 0xc]
jl 0xa49449
cmp dword [edi + 0x218], eax
jne 0xa49425
cmp dword [edi + 0x1f0], eax
jne 0xa49425
cmp dword [esi + 0xebc], eax
jne 0xa4942e
mov al, byte [esi + 0xe6e]
dec al
cmp al, 3
ja 0xa49425
push 0
push esi
call fcn.00a2e6d0
add esp, 8
cmp dword [ebx + 0xcc], 0
jne 0xa49425
cmp dword [ebx + 0x60], 0x1a1
jne 0xa493bd
cmp dword [esi + 0xe8c], 0
je 0xa493bd
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00a3db10
push dword [esi + 0xdcc]
mov dword [esi + 0xe90], 1
call dword [0xac87b4]
push ebx
push esi
mov dword [esi + 0x118], eax
call fcn.00a41cb0
add esp, 0x14
jmp 0xa49425
cmp dword [esi + 0x76c], 0
je 0xa493e7
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00a3db10
add esp, 8
cmp dword [ebx + 0x78], 0
jle 0xa49425
or dword [ebx + 0x64], 2
mov dword [ebx + 0x78], 0
jmp 0xa49425
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00a3db10
push 2
push edi
call fcn.00a3e720
push ebx
push esi
call fcn.00a41cb0
add esp, 0x18
test eax, eax
jne 0xa48c48
mov dword [ebx + 0xcc], 1
cmp dword [esi + 0xe8c], eax
je 0xa49425
mov dword [ebx + 0x78], 3
cmp dword [esi + 0xebc], 0
je 0xa49449
cmp dword [edi + 0x274], 0xffffffff
je 0xa49449
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00a3db10
add esp, 8
or dword [ebx + 0x64], 2
cmp dword [ebx + 0xc4], 0
je 0xa4956d
lea eax, [esi + 0x9b4]
push eax
call fcn.00a342a0
add esp, 4
mov edi, dword [ebx + 0x50]
mov dword [ebp + 8], edi
cmp byte [edi], 0
je 0xa48c46
mov eax, dword [ebp + 0x10]
jmp 0xa48ba6
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.00a3da50
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.00a3da50
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.00a3da50
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.00a3da50
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.00a3db10
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 0xa4959e
mov eax, dword [edi + 0x254]
test dword [eax + 0x44], 0x40000
je 0xa495a4
cmp dword [esi + 0x6c0], 2
jne 0xa495a4
cmp dword [ebx + 4], 0xffffffff
jg 0xa495a4
jl 0xa4959e
cmp dword [ebx], 0xffffffff
ja 0xa495a4
mov dword [ecx], 1
cmp dword [ebx + 8], 0
jne 0xa495b8
cmp dword [ebx + 0xc], 0
jne 0xa495b8
mov dword [ecx], 1
jmp 0xa495bd
cmp dword [ecx], 0
je 0xa495c1
and dword [ebx + 0x64], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp + 8]
push 1
push esi
call fcn.00a3d9c0
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.00a3da50
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.00a34210
add esp, 0xc
test eax, eax
jne 0xa48c48
cmp dword [ebx + 0x4c], eax
jne 0xa48c46
push edi
call fcn.00a34280
add esp, 4
push eax
push edi
call fcn.00a34290
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.00a49d80
add esp, 0x10
cmp eax, 2
jne 0xa48c46
push eax
push edi
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0x48], eax
call fcn.00a3e720
add esp, 8
cmp dword [esi + 0x7f4], 0
jne 0xa48c46
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00a3da50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret