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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
push edi
lea edi, [esi + 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x50]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], eax
push dword [ecx]
push 0xa
push eax
call fcn.00a549e0
add esp, 0xc
test eax, eax
je 0xa1d8c1
mov ecx, dword [edi + 0x50]
lea ebx, [esi + 0x89c]
mov edx, dword [ebp + 0x10]
sub ecx, eax
dec ecx
inc eax
add dword [edx], ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x50], eax
sub eax, ecx
push eax
push ecx
push ebx
call fcn.00a0aa00
add esp, 0xc
test eax, eax
jne 0xa1cf42
cmp dword [edi + 0x4c], eax
jne 0xa1cf49
push ebx
call fcn.00a4c4b0
add esp, 4
push eax
push ebx
call fcn.00a0ab20
mov ebx, dword [ebp + 0xc]
add esp, 4
push eax
push ebx
push esi
call fcn.00a1e060
add esp, 0x10
cmp eax, 2
jne 0xa1cf4c
push eax
push ebx
call fcn.00a14ee0
add esp, 8
cmp byte [esi + 0x6e5], 0
je 0xa1d93d
mov ecx, dword [ebp + 0x10]
mov byte [edi + 0xc2], 0
cmp dword [ecx], 0
je 0xa1d751
mov dword [edi + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x89c]
push eax
call fcn.00a0ab20
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0xa1d383
cmp cl, 0xd
je 0xa1d383
mov ecx, dword [edi + 0x4c]
mov dword [ebp + 8], 2
lea eax, [ecx + 1]
mov dword [edi + 0x4c], eax
test ecx, ecx
jne 0xa1d2bf
mov eax, dword [ebx + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0xa1d1aa
mov al, byte [edx]
mov ebx, edx
test al, al
je 0xa1cfb5
cmp al, 0x20
je 0xa1cfad
cmp al, 9
jne 0xa1cfb5
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0xa1cfa5
push 5
push str.HTTP_
push ebx
call fcn.00a625f0
add esp, 0xc
test eax, eax
jne 0xa1d064
mov cl, byte [ebx + 5]
mov al, cl
cmp al, 0x31
je 0xa1d0a6
sub al, 0x32
cmp al, 1
ja 0xa1d76c
mov al, byte [ebx + 6]
cmp al, 0x20
je 0xa1cfef
cmp al, 9
jne 0xa1d064
movsx eax, cl
mov cl, byte [ebx + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
add edx, edx
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0xa1d064
cmp cl, 0x39
jg 0xa1d064
mov al, byte [ebx + 8]
mov byte [ebp + 0xb], al
cmp al, 0x30
jl 0xa1d064
cmp al, 0x39
jg 0xa1d064
mov al, byte [ebx + 9]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0xa1d064
cmp al, 0x39
jg 0xa1d064
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 [edi + 0x60], eax
mov al, byte [ebx + 0xa]
cmp al, 0x20
je 0xa1d154
cmp al, 9
je 0xa1d154
cmp al, 0xa
jl 0xa1d064
cmp al, 0xd
jle 0xa1d154
lea ebx, [esi + 0x89c]
push ebx
call fcn.00a4c4b0
add esp, 4
push eax
push ebx
call fcn.00a0ab20
add esp, 4
push eax
push esi
call fcn.00a1dfa0
add esp, 0xc
cmp eax, 1
jne 0xa1d7fd
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x60], 0xc8
mov byte [ebx + 0x44d], 0xa
jmp 0xa1d2a6
cmp byte [ebx + 6], 0x2e
jne 0xa1d7d7
mov al, byte [ebx + 7]
cmp al, 0x30
je 0xa1d0bf
cmp al, 0x31
jne 0xa1d7d7
mov cl, byte [ebx + 8]
cmp cl, 0x20
je 0xa1d0d0
cmp cl, 9
jne 0xa1d7d7
mov cl, byte [ebx + 9]
movsx edx, al
sub edx, 0x26
mov dword [ebp - 0x10], edx
cmp cl, 0x30
jl 0xa1d7d7
cmp cl, 0x39
jg 0xa1d7d7
mov al, byte [ebx + 0xa]
mov byte [ebp + 0xb], al
cmp al, 0x30
jl 0xa1d7d7
cmp al, 0x39
jg 0xa1d7d7
mov al, byte [ebx + 0xb]
mov byte [ebp - 1], al
cmp al, 0x30
jl 0xa1d7d7
cmp al, 0x39
jg 0xa1d7d7
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 [edi + 0x60], eax
mov al, byte [ebx + 0xc]
cmp al, 0x20
je 0xa1d154
cmp al, 9
je 0xa1d154
cmp al, 0xa
jl 0xa1d7d7
cmp al, 0xd
jg 0xa1d7d7
cmp dword [edi + 0x60], 0x64
jl 0xa1d7bd
lea eax, [edx - 0xa]
cmp eax, 1
ja 0xa1d786
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 0x44d], dl
cmp dword [edi + 0x7c], 3
jne 0xa1d18c
cmp dl, 0x14
je 0xa1d18c
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00a14270
add esp, 8
cmp byte [ebx + 0x44d], 0x14
jae 0xa1d2a6
mov eax, dword [ebx + 0x420]
mov dword [eax], 0xffffffff
jmp 0xa1d2a6
test eax, 0x40000
je 0xa1d7fd
mov al, byte [edx]
mov ebx, edx
test al, al
je 0xa1d1d0
nop dword [eax]
cmp al, 0x20
je 0xa1d1c8
cmp al, 9
jne 0xa1d1d0
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0xa1d1c0
push 5
push str.RTSP_
push ebx
call fcn.00a625f0
add esp, 0xc
test eax, eax
jne 0xa1d7fd
mov al, byte [ebx + 5]
cmp al, 0x30
jl 0xa1d7f1
cmp al, 0x39
jg 0xa1d7f1
cmp byte [ebx + 6], 0x2e
jne 0xa1d7f1
mov al, byte [ebx + 7]
cmp al, 0x30
jl 0xa1d7f1
cmp al, 0x39
jg 0xa1d7f1
mov al, byte [ebx + 8]
cmp al, 0x20
je 0xa1d227
cmp al, 9
jne 0xa1d7f1
mov al, byte [ebx + 9]
cmp al, 0x30
jl 0xa1d7f1
cmp al, 0x39
jg 0xa1d7f1
mov dh, byte [ebx + 0xa]
cmp dh, 0x30
jl 0xa1d7f1
cmp dh, 0x39
jg 0xa1d7f1
mov dl, byte [ebx + 0xb]
cmp dl, 0x30
jl 0xa1d7f1
cmp dl, 0x39
jg 0xa1d7f1
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 [edi + 0x60], eax
mov al, byte [ebx + 0xc]
cmp al, 0x20
je 0xa1d29c
cmp al, 9
je 0xa1d29c
cmp al, 0xa
jl 0xa1d7f1
cmp al, 0xd
jg 0xa1d7f1
mov ebx, dword [ebp + 0xc]
mov byte [ebx + 0x44d], 0xb
push ebx
push esi
call fcn.00a1dc00
add esp, 8
test eax, eax
jne 0xa1cf42
mov dword [ebp + 8], 6
push esi
call fcn.00a1e960
add esp, 4
test eax, eax
jne 0xa1cf42
push dword [ebp - 8]
push ebx
push esi
call fcn.00a1bdc0
add esp, 0xc
test eax, eax
jne 0xa1cf42
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 0x60]
or ebx, 1
cmp byte [esi + 0x6c7], al
lea eax, [esi + 0x89c]
push eax
cmove ebx, dword [ebp + 8]
sub edi, 0x64
call fcn.00a4c4b0
push eax
push dword [ebp - 8]
push 1
push esi
call fcn.00a14120
lea eax, [esi + 0x89c]
push eax
call fcn.00a4c4b0
push eax
push dword [ebp - 8]
mov eax, ebx
or eax, 0x10
cmp edi, 0x64
cmovae eax, ebx
push eax
push esi
call fcn.00a142f0
add esp, 0x28
test eax, eax
jne 0xa1cf42
lea ebx, [esi + 0x89c]
push ebx
call fcn.00a4c4b0
add dword [esi + 0xd80], eax
push ebx
adc dword [esi + 0xd84], 0
call fcn.00a4c4b0
add dword [esi + 0xa0], eax
push ebx
adc dword [esi + 0xa4], 0
call fcn.00a0aa70
mov ebx, dword [ebp + 0xc]
lea edi, [esi + 0x80]
add esp, 0xc
jmp 0xa1d73a
mov eax, dword [edi + 0x60]
cmp eax, 0x64
jl 0xa1d3f1
cmp eax, 0xc7
jg 0xa1d3f1
sub eax, 0x64
je 0xa1d3c5
sub eax, 1
je 0xa1d3af
mov byte [edi + 0xc2], 1
mov dword [edi + 0x4c], 0
jmp 0xa1d44b
cmp dword [edi + 0x7c], 2
je 0xa1d80d
mov byte [edi + 0xc2], 0
jmp 0xa1d44b
cmp dword [edi + 0x78], 0
mov byte [edi + 0xc2], 1
mov dword [edi + 0x4c], 0
jle 0xa1d44b
or dword [edi + 0x64], 2
push 0
push esi
mov dword [edi + 0x78], 0
call fcn.00a05040
add esp, 8
jmp 0xa1d44b
mov eax, dword [edi]
and eax, dword [edi + 4]
mov byte [edi + 0xc2], 0
cmp eax, 0xffffffff
jne 0xa1d44b
cmp byte [edi + 0xc7], 0
jne 0xa1d44b
cmp byte [ebx + 0x1c6], 0
jne 0xa1d44b
cmp byte [ebx + 0x44d], 0xb
jne 0xa1d44b
mov eax, dword [ebx + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0xa1d44b
cmp byte [esi + 0xd46], 5
je 0xa1d44b
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00a14270
push 2
push ebx
call fcn.00a14ee0
add esp, 0x10
cmp byte [edi + 0xc2], 0
jne 0xa1d465
push esi
call fcn.00a1db30
add esp, 4
test eax, eax
jne 0xa1cf42
cmp byte [ebx + 0x1c6], 0
je 0xa1d4f1
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa1d488
cmp dword [ebx + 0x250], 2
je 0xa1d498
cmp eax, 0x197
jne 0xa1d4ad
cmp dword [ebx + 0x254], 2
jne 0xa1d4ad
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a14270
add esp, 8
mov byte [esi + 0xd4d], 1
cmp byte [ebx + 0x1c6], 0
je 0xa1d4f1
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xa1d4cc
cmp dword [ebx + 0x2d8], 1
je 0xa1d4dc
cmp eax, 0x197
jne 0xa1d4f1
cmp dword [ebx + 0x2dc], 1
jne 0xa1d4f1
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00a14270
add esp, 8
mov byte [esi + 0xd4d], 1
cmp dword [ebx + 0x2d8], 3
jne 0xa1d510
cmp dword [esi + 0xe0], 0x191
je 0xa1d510
mov dword [ebx + 0x2d8], 4
cmp dword [ebx + 0x2dc], 3
jne 0xa1d52f
cmp dword [esi + 0xe0], 0x197
je 0xa1d52f
mov dword [ebx + 0x2dc], 4
mov eax, dword [edi + 0x60]
xor ebx, ebx
cmp byte [esi + 0x6c7], bl
setne bl
sub eax, 0x64
add ebx, 2
cmp eax, 0x64
sbb eax, eax
and eax, 0x10
or ebx, eax
lea eax, [esi + 0x89c]
push eax
call fcn.00a4c4b0
add esp, 4
mov dword [ebp - 0x10], eax
push eax
lea eax, [esi + 0x89c]
push eax
call fcn.00a0ab20
add esp, 4
push eax
push ebx
push esi
call fcn.00a142f0
add esp, 0x10
test eax, eax
jne 0xa1cf42
mov eax, dword [ebp - 0x10]
cdq
add dword [esi + 0xd80], eax
push esi
adc dword [esi + 0xd84], edx
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], edx
call fcn.00a1e510
add esp, 4
test al, al
jne 0xa1d8a4
mov eax, dword [edi + 0x60]
cmp eax, 0x64
jl 0xa1d5cc
cmp eax, 0xc7
jg 0xa1d5cc
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
jmp 0xa1d5da
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push esi
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
call fcn.00a1adb0
add esp, 4
test eax, eax
jne 0xa1cf42
cmp dword [edi + 0x60], 0x12c
mov ebx, dword [ebp + 0xc]
jl 0xa1d71e
cmp byte [ebx + 0x1d0], al
jne 0xa1d6fa
cmp byte [ebx + 0x1c6], al
jne 0xa1d6fa
cmp byte [esi + 0xd5b], al
jne 0xa1d703
mov al, byte [esi + 0xd46]
dec al
cmp al, 3
ja 0xa1d6fa
push 0
push esi
call fcn.00a05040
add esp, 8
cmp byte [edi + 0xc4], 0
jne 0xa1d6fa
cmp dword [edi + 0x60], 0x1a1
jne 0xa1d695
cmp byte [esi + 0xd4f], 0
je 0xa1d695
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00a14270
push dword [esi + 0xca4]
mov byte [esi + 0xd50], 1
call dword [0xad9108]
push edi
push esi
mov dword [esi + 0x118], eax
call fcn.00a1f910
add esp, 0x14
jmp 0xa1d6fa
cmp byte [esi + 0x6c3], 0
je 0xa1d6bf
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00a14270
add esp, 8
cmp dword [edi + 0x78], 0
jle 0xa1d6fa
or dword [edi + 0x64], 2
mov dword [edi + 0x78], 0
jmp 0xa1d6fa
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00a14270
push 2
push ebx
call fcn.00a14ee0
push edi
push esi
call fcn.00a1f910
add esp, 0x18
test eax, eax
jne 0xa1cf42
mov byte [edi + 0xc4], 1
cmp byte [esi + 0xd4f], al
je 0xa1d6fa
mov dword [edi + 0x78], 3
cmp byte [esi + 0xd5b], 0
je 0xa1d71e
cmp dword [ebx + 0x1fc], 0xffffffff
je 0xa1d71e
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00a14270
add esp, 8
or dword [edi + 0x64], 2
cmp byte [edi + 0xc2], 0
je 0xa1d83c
lea eax, [esi + 0x89c]
push eax
call fcn.00a0aa70
add esp, 4
mov eax, dword [edi + 0x50]
mov dword [ebp + 8], eax
cmp byte [eax], 0
je 0xa1cf40
mov ecx, dword [ebp + 0x10]
jmp 0xa1cea6
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x48], 2
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x50], 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.00a141b0
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 - 0x10]
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.00a141b0
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.00a141b0
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.00a141b0
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
mov byte [edi + 0xc2], 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.00a14270
add esp, 8
mov dword [edi + 0x7c], 3
mov byte [edi + 0xc2], 1
mov eax, 1
mov dword [edi + 0x4c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x14c], 0
mov ecx, dword [ebp + 0x14]
jne 0xa1d86d
mov eax, dword [ebx + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0xa1d870
cmp dword [esi + 0x658], 2
jne 0xa1d870
cmp dword [edi + 4], 0xffffffff
jg 0xa1d870
jl 0xa1d86d
cmp dword [edi], 0xffffffff
ja 0xa1d870
mov byte [ecx], 1
cmp dword [edi + 8], 0
jne 0xa1d881
cmp dword [edi + 0xc], 0
jne 0xa1d881
mov byte [ecx], 1
jmp 0xa1d886
cmp byte [ecx], 0
je 0xa1d88a
and dword [edi + 0x64], 0xfffffffe
push dword [ebp - 0x10]
push dword [ebp + 8]
push 1
push esi
call fcn.00a14120
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x60]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.00a141b0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x89c]
push dword [ecx]
push dword [ebp + 8]
push eax
call fcn.00a0aa00
add esp, 0xc
test eax, eax
jne 0xa1cf42
cmp dword [edi + 0x4c], eax
jne 0xa1cf40
lea eax, [esi + 0x89c]
push eax
call fcn.00a4c4b0
add esp, 4
push eax
lea eax, [esi + 0x89c]
push eax
call fcn.00a0ab20
add esp, 4
push eax
push ebx
push esi
call fcn.00a1e060
add esp, 0x10
cmp eax, 2
jne 0xa1cf40
push eax
push ebx
mov byte [edi + 0xc2], 0
mov dword [edi + 0x48], eax
call fcn.00a14ee0
add esp, 8
cmp byte [esi + 0x6e5], 0
jne 0xa1cf40
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00a141b0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret