Function at 0xcfe140
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 ecx, dword [eax]
lea ebx, [esi + 0x80]
mov eax, dword [ebx + 0x50]
push edi
push ecx
mov edi, edx
mov dword [ebp - 0x24], ecx
push 0xa
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
call fcn.00d2a380
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0xcfe9d0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
sub eax, ecx
dec edx
add eax, edx
mov edx, dword [ebp + 8]
mov dword [edx], eax
lea eax, [ecx + 1]
mov edx, dword [ebp - 0xc]
lea ecx, [esi + 0x89c]
mov dword [ebx + 0x50], eax
sub eax, dword [ebp - 0xc]
push eax
call fcn.00cdeab0
add esp, 4
test eax, eax
jne 0xcfea7b
mov edx, dword [ebx + 0x4c]
test edx, edx
jne 0xcfe1ea
lea ecx, [esi + 0x89c]
call fcn.004610b0
push eax
call fcn.004610a0
push eax
mov edx, edi
mov ecx, esi
call fcn.00cfd620
add esp, 8
cmp eax, 2
je 0xcfea4e
mov edx, dword [ebx + 0x4c]
lea ecx, [esi + 0x89c]
call fcn.004610a0
mov dword [ebp - 8], eax
mov cl, byte [eax]
cmp cl, 0xa
je 0xcfe5cf
cmp cl, 0xd
je 0xcfe5cf
mov dword [ebp - 0xc], 2
lea ecx, [edx + 1]
mov dword [ebx + 0x4c], ecx
test edx, edx
jne 0xcfe51c
mov eax, dword [edi + 0x1e0]
mov eax, dword [eax + 0x44]
test al, 3
je 0xcfe429
mov eax, dword [ebp - 8]
mov edi, eax
mov al, byte [eax]
test al, al
je 0xcfe250
nop dword [eax]
cmp al, 0x20
je 0xcfe248
cmp al, 9
jne 0xcfe250
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xcfe240
push 5
push str.HTTP_
push edi
call fcn.00d3b120
add esp, 0xc
test eax, eax
jne 0xcfe2fd
movsx ecx, byte [edi + 5]
mov eax, ecx
sub eax, 0x31
je 0xcfe339
sub eax, 1
je 0xcfe285
sub eax, 1
jne 0xcfea99
mov al, byte [edi + 6]
cmp al, 0x20
je 0xcfe290
cmp al, 9
jne 0xcfe2fd
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 - 0x14], edx
cmp al, 9
ja 0xcfe2fd
mov al, byte [edi + 8]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xcfe2fd
mov al, byte [edi + 9]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0xcfe2fd
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 [ebx + 0x60], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0xcfe3d0
cmp al, 9
je 0xcfe3d0
cmp al, 0xa
jl 0xcfe2fd
cmp al, 0xd
jle 0xcfe3d0
lea ecx, [esi + 0x89c]
call fcn.004610b0
push eax
call fcn.004610a0
mov edx, eax
mov ecx, esi
call fcn.00cfd570
add esp, 4
cmp eax, 1
jne 0xcfeb2a
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0x60], 0xc8
mov byte [edi + 0x44d], 0xa
jmp 0xcfe504
cmp byte [edi + 6], 0x2e
jne 0xcfeb04
mov al, byte [edi + 7]
cmp al, 0x30
je 0xcfe352
cmp al, 0x31
jne 0xcfeb04
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0xcfe363
cmp cl, 9
jne 0xcfeb04
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 0x14], edx
cmp al, 9
ja 0xcfeb04
mov al, byte [edi + 0xa]
mov byte [ebp - 2], al
sub al, 0x30
cmp al, 9
ja 0xcfeb04
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0xcfeb04
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 [ebx + 0x60], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xcfe3d0
cmp al, 9
je 0xcfe3d0
sub al, 0xa
cmp al, 3
ja 0xcfeb04
cmp ecx, 0x64
jl 0xcfeaea
mov eax, edx
sub eax, 0xa
je 0xcfe3e9
sub eax, 1
jne 0xcfeab3
mov edi, dword [ebp - 0x10]
mov byte [edi + 0x44d], dl
cmp dword [ebx + 0x7c], 3
jne 0xcfe40b
cmp dl, 0x14
je 0xcfe40b
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.00cedeb0
add esp, 8
cmp byte [edi + 0x44d], 0x14
jae 0xcfe504
mov eax, dword [edi + 0x420]
mov dword [eax], 0xffffffff
jmp 0xcfe504
test eax, 0x40000
je 0xcfeb2a
mov eax, dword [ebp - 8]
mov edi, eax
mov al, byte [eax]
test al, al
je 0xcfe450
nop
cmp al, 0x20
je 0xcfe448
cmp al, 9
jne 0xcfe450
mov al, byte [edi + 1]
inc edi
test al, al
jne 0xcfe440
push 5
push str.RTSP_
push edi
call fcn.00d3b120
add esp, 0xc
test eax, eax
jne 0xcfeb2a
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0xcfeb1e
cmp byte [edi + 6], 0x2e
jne 0xcfeb1e
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0xcfeb1e
mov al, byte [edi + 8]
cmp al, 0x20
je 0xcfe49b
cmp al, 9
jne 0xcfeb1e
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xcfeb1e
mov dh, byte [edi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0xcfeb1e
mov dl, byte [edi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xcfeb1e
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 [ebx + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0xcfe4fa
cmp al, 9
je 0xcfe4fa
sub al, 0xa
cmp al, 3
ja 0xcfeb1e
mov edi, dword [ebp - 0x10]
mov byte [edi + 0x44d], 0xb
mov edx, edi
mov ecx, esi
call fcn.00cfded0
test eax, eax
jne 0xcfea7b
mov dword [ebp - 0xc], 6
mov ecx, esi
call fcn.00cfe0b0
test eax, eax
jne 0xcfea7b
push dword [ebp - 8]
mov edx, edi
mov ecx, esi
call fcn.00cfd650
add esp, 4
test eax, eax
jne 0xcfea7b
cmp byte [esi + 0x6c7], al
je 0xcfe54e
or dword [ebp - 0xc], 1
mov edi, dword [ebx + 0x60]
lea ecx, [esi + 0x89c]
call fcn.004610b0
push eax
push dword [ebp - 8]
mov edx, 1
mov ecx, esi
call fcn.00cedd50
lea ecx, [esi + 0x89c]
call fcn.004610b0
mov edx, dword [ebp - 0xc]
mov ecx, esi
push eax
push dword [ebp - 8]
lea eax, [edi - 0x64]
or edx, 0x10
cmp eax, 0x64
cmovae edx, dword [ebp - 0xc]
call fcn.00ce4130
add esp, 0x10
test eax, eax
jne 0xcfea7b
lea ecx, [esi + 0x89c]
call fcn.004610b0
add dword [esi + 0xd80], eax
adc dword [esi + 0xd84], 0
call fcn.004610b0
add dword [esi + 0xa0], eax
mov edi, dword [ebp - 0x10]
adc dword [esi + 0xa4], 0
jmp 0xcfe996
mov ecx, dword [ebx + 0x60]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0xcfe649
sub ecx, 0x64
je 0xcfe619
sub ecx, 1
je 0xcfe5fd
mov byte [ebx + 0xc2], 1
mov dword [ebx + 0x4c], 0
lea ecx, [ebx + 0xc2]
jmp 0xcfe6b1
cmp dword [ebx + 0x7c], 2
je 0xcfeb3a
mov byte [ebx + 0xc2], 0
lea ecx, [ebx + 0xc2]
jmp 0xcfe6b1
cmp dword [ebx + 0x78], 0
lea eax, [ebx + 0xc2]
mov dword [ebp - 0x1c], eax
mov byte [eax], 1
mov dword [ebx + 0x4c], 0
jle 0xcfe5f2
or dword [ebx + 0x64], 2
mov ecx, esi
mov dword [ebx + 0x78], 0
call fcn.00ce3c50
mov ecx, dword [ebp - 0x1c]
jmp 0xcfe6b1
mov eax, dword [ebx]
lea edx, [ebx + 0xc2]
and eax, dword [ebx + 4]
mov ecx, edx
mov dword [ebp - 0x1c], edx
mov byte [edx], 0
cmp eax, 0xffffffff
jne 0xcfe6b1
cmp byte [ebx + 0xc7], 0
jne 0xcfe6b1
cmp byte [edi + 0x1c6], 0
jne 0xcfe6b1
cmp byte [edi + 0x44d], 0xb
jne 0xcfe6b1
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
jne 0xcfe6b1
cmp byte [esi + 0xd46], 5
je 0xcfe6b1
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.00cedeb0
add esp, 8
mov edx, 2
mov ecx, edi
call fcn.00ce46f0
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], 0
jne 0xcfe6c5
mov ecx, esi
call fcn.00cfdff0
test eax, eax
jne 0xcfea7b
cmp byte [edi + 0x1c6], 0
je 0xcfe755
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xcfe6ea
cmp dword [edi + 0x250], 2
je 0xcfe6fa
jmp 0xcfe70f
cmp eax, 0x197
jne 0xcfe70f
cmp dword [edi + 0x254], 2
jne 0xcfe70f
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00cedeb0
add esp, 8
mov byte [esi + 0xd4d], 1
cmp byte [edi + 0x1c6], 0
je 0xcfe755
mov eax, dword [esi + 0xe0]
cmp eax, 0x191
jne 0xcfe730
cmp dword [edi + 0x2d8], 1
je 0xcfe740
jmp 0xcfe755
cmp eax, 0x197
jne 0xcfe755
cmp dword [edi + 0x2dc], 1
jne 0xcfe755
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.00cedeb0
add esp, 8
mov byte [esi + 0xd4d], 1
cmp dword [edi + 0x2d8], 3
jne 0xcfe774
cmp dword [esi + 0xe0], 0x191
je 0xcfe774
mov dword [edi + 0x2d8], 4
cmp dword [edi + 0x2dc], 3
jne 0xcfe793
cmp dword [esi + 0xe0], 0x197
je 0xcfe793
mov dword [edi + 0x2dc], 4
mov eax, dword [ebx + 0x60]
lea ecx, [esi + 0x89c]
sub eax, 0x64
cmp eax, 0x64
sbb edx, edx
xor eax, eax
and edx, 0x10
cmp byte [esi + 0x6c7], al
setne al
add eax, 2
or edx, eax
call fcn.004610b0
push eax
mov dword [ebp - 0x14], eax
call fcn.004610a0
push eax
mov ecx, esi
call fcn.00ce4130
add esp, 8
test eax, eax
jne 0xcfea7b
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0xa4]
cdq
add dword [esi + 0xd80], eax
adc dword [esi + 0xd84], edx
add eax, dword [esi + 0xa0]
mov dword [ebp - 0x1c], eax
adc ecx, edx
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ecx
mov dword [ebp - 8], ecx
mov ecx, esi
call fcn.00cfada0
test al, al
mov eax, dword [ebx + 0x60]
jne 0xcfebd5
add eax, 0xffffff9c
cmp eax, 0x63
ja 0xcfe82a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
jmp 0xcfe838
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.00cfa5a0
test eax, eax
jne 0xcfea7b
cmp dword [ebx + 0x60], 0x12c
jl 0xcfe983
cmp byte [edi + 0x1d0], al
jne case.default.0xcfe895
cmp byte [edi + 0x1c6], al
jne case.default.0xcfe895
cmp byte [esi + 0xd5b], al
jne 0xcfe968
movzx eax, byte [esi + 0xd46]
dec eax
cmp eax, 3
ja case.default.0xcfe895
jmp dword [eax*4 + 0xcfebf0]
mov ecx, esi
call fcn.00ce3c50
cmp byte [ebx + 0xc4], 0
jne case.default.0xcfe895
cmp dword [ebx + 0x60], 0x1a1
jne 0xcfe8f4
cmp byte [esi + 0xd4f], 0
je 0xcfe8f4
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.00cedeb0
push dword [esi + 0xca4]
mov byte [esi + 0xd50], 1
call dword [0xd93de0]
add esp, 0xc
mov dword [esi + 0x118], eax
mov edx, ebx
mov ecx, esi
call fcn.00cf57e0
jmp case.default.0xcfe895
cmp byte [esi + 0x6c3], 0
je 0xcfe91e
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.00cedeb0
add esp, 8
cmp dword [ebx + 0x78], 0
jle case.default.0xcfe895
or dword [ebx + 0x64], 2
mov dword [ebx + 0x78], 0
jmp case.default.0xcfe895
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.00cedeb0
add esp, 8
mov edx, 2
mov ecx, edi
call fcn.00ce46f0
mov edx, ebx
mov ecx, esi
call fcn.00cf57e0
test eax, eax
jne 0xcfea7b
mov byte [ebx + 0xc4], 1
cmp byte [esi + 0xd4f], al
je case.default.0xcfe895
mov dword [ebx + 0x78], 3
cmp byte [esi + 0xd5b], 0
je 0xcfe983
cmp dword [edi + 0x1fc], 0xffffffff
je 0xcfe983
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.00cedeb0
add esp, 8
or dword [ebx + 0x64], 2
cmp byte [ebx + 0xc2], 0
je 0xcfeb69
lea ecx, [esi + 0x89c]
call fcn.00cdea40
mov eax, dword [ebx + 0x50]
mov dword [ebp - 8], eax
cmp byte [eax], 0
je 0xcfea79
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
call fcn.00d2a380
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0xcfe186
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
lea ecx, [esi + 0x89c]
call fcn.00cdeab0
add esp, 4
test eax, eax
jne 0xcfea7b
cmp dword [ebx + 0x4c], eax
jne 0xcfea79
lea ecx, [esi + 0x89c]
call fcn.004610b0
push eax
call fcn.004610a0
push eax
mov edx, edi
mov ecx, esi
call fcn.00cfd620
add esp, 8
cmp eax, 2
jne 0xcfea79
mov edx, eax
mov byte [ebx + 0xc2], 0
mov ecx, edi
mov dword [ebx + 0x48], eax
call fcn.00ce46f0
cmp byte [esi + 0x6e5], 0
jne 0xcfea79
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.00ceddf0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 2
mov ecx, edi
call fcn.00ce46f0
cmp byte [esi + 0x6e5], 0
je 0xcfea34
mov eax, dword [ebp + 8]
mov byte [ebx + 0xc2], 0
cmp dword [eax], 0
je 0xcfea82
mov dword [ebx + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x48], edx
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov dword [ebx + 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.00ceddf0
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 - 0x14]
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.00ceddf0
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.00ceddf0
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.00ceddf0
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 [ebx + 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.00cedeb0
add esp, 8
mov dword [ebx + 0x7c], 3
mov byte [ebx + 0xc2], 1
mov eax, 1
mov dword [ebx + 0x4c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x14c], 0
mov ecx, dword [ebp + 0xc]
jne 0xcfeb9a
mov eax, dword [edi + 0x1e0]
test dword [eax + 0x44], 0x40000
je 0xcfeb9d
cmp dword [esi + 0x658], 2
jne 0xcfeb9d
cmp dword [ebx + 4], 0xffffffff
jg 0xcfeb9d
jl 0xcfeb9a
cmp dword [ebx], 0xffffffff
ja 0xcfeb9d
mov byte [ecx], 1
cmp dword [ebx + 8], 0
jne 0xcfebae
cmp dword [ebx + 0xc], 0
jne 0xcfebae
mov byte [ecx], 1
jmp 0xcfebb3
cmp byte [ecx], 0
je 0xcfebb7
and dword [ebx + 0x64], 0xfffffffe
push dword [ebp - 0x14]
mov edx, 1
mov ecx, esi
push dword [ebp - 0xc]
call fcn.00cedd50
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.00ceddf0
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret