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

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov byte [esp + 0x20], 0
mov ebp, dword [esi + 0x18]
lea ebx, [esi + 0x88]
mov dword [ecx], 0
push eax
push 0xa
push dword [esp + 0x2c]
call fcn.1029c310
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1027d1f3
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x858]
sub edi, ecx
inc edi
push edi
push ecx
push eax
call fcn.10262ca0
add esp, 0xc
test eax, eax
jne 0x1027d08f
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], edi
add dword [esp + 0x24], edi
add dword [eax], edi
cmp dword [ebx + 0x44], 0
jne 0x1027c7a2
lea eax, [esi + 0x858]
push eax
call fcn.10262d00
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.10262db0
push edi
push eax
push esi
call fcn.1027c1f0
add esp, 0x14
cmp eax, 2
je 0x1027d097
lea eax, [esi + 0x858]
push eax
call fcn.10262db0
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x1027cc06
cmp cl, 0xd
je 0x1027cc06
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x18], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x1027cb1d
mov eax, dword [ebp + 0x1c4]
mov eax, dword [eax + 0x44]
test al, 3
je 0x1027ca09
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1027c810
nop dword [eax]
cmp al, 0x20
je 0x1027c808
cmp al, 9
jne 0x1027c810
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1027c800
push 5
push str.HTTP_
push edi
call fcn.102a7e10
add esp, 0xc
test eax, eax
jne 0x1027c8c4
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x1027c903
sub al, 0x32
cmp al, 1
ja 0x1027d0ba
mov al, byte [edi + 6]
cmp al, 0x20
je 0x1027c84a
cmp al, 9
jne 0x1027c8c4
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
add edx, edx
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x1027c8c4
cmp cl, 0x39
jg 0x1027c8c4
mov al, byte [edi + 8]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x1027c8c4
cmp al, 0x39
jg 0x1027c8c4
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1027c8c4
cmp al, 0x39
jg 0x1027c8c4
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x12]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x13]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x50], eax
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x1027c9b6
cmp al, 9
je 0x1027c9b6
cmp al, 0xa
jl 0x1027c8c4
cmp al, 0xd
jle 0x1027c9b6
lea edi, [esi + 0x858]
push edi
call fcn.10262d00
add esp, 4
push eax
push edi
call fcn.10262db0
add esp, 4
push eax
push esi
call fcn.1027c1f0
add esp, 0xc
cmp eax, 1
jne 0x1027d144
mov dword [ebx + 0x50], 0xc8
mov byte [ebp + 0x384], 0xa
jmp 0x1027cb03
cmp byte [edi + 6], 0x2e
jne 0x1027d129
mov al, byte [edi + 7]
cmp al, 0x30
je 0x1027c91c
cmp al, 0x31
jne 0x1027d129
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x1027c92d
cmp cl, 9
jne 0x1027d129
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x1027d129
cmp cl, 0x39
jg 0x1027d129
mov al, byte [edi + 0xa]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1027d129
cmp al, 0x39
jg 0x1027d129
mov al, byte [edi + 0xb]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x1027d129
cmp al, 0x39
jg 0x1027d129
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x13]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x12]
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x1027c9b6
cmp al, 9
je 0x1027c9b6
cmp al, 0xa
jl 0x1027d129
cmp al, 0xd
jg 0x1027d129
cmp dword [ebx + 0x50], 0x64
jl 0x1027d10e
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x1027d0d5
mov byte [ebp + 0x384], dl
cmp dword [ebx + 0x6c], 3
jne 0x1027c9eb
cmp dl, 0x14
je 0x1027c9eb
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.1026e930
add esp, 8
cmp byte [ebp + 0x384], 0x14
jae 0x1027cb03
mov eax, dword [ebp + 0x354]
mov dword [eax], 0xffffffff
jmp 0x1027cb03
test eax, 0x40000
je 0x1027d144
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1027ca30
nop dword [eax]
cmp al, 0x20
je 0x1027ca28
cmp al, 9
jne 0x1027ca30
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1027ca20
push 5
push str.RTSP_
push edi
call fcn.102a7e10
add esp, 0xc
test eax, eax
jne 0x1027d144
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x1027d15e
cmp al, 0x39
jg 0x1027d15e
cmp byte [edi + 6], 0x2e
jne 0x1027d15e
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x1027d15e
cmp al, 0x39
jg 0x1027d15e
mov al, byte [edi + 8]
cmp al, 0x20
je 0x1027ca87
cmp al, 9
jne 0x1027d15e
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x1027d15e
cmp al, 0x39
jg 0x1027d15e
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x1027d15e
cmp dh, 0x39
jg 0x1027d15e
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x1027d15e
cmp dl, 0x39
jg 0x1027d15e
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 + 0x50], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x1027cafc
cmp al, 9
je 0x1027cafc
cmp al, 0xa
jl 0x1027d15e
cmp al, 0xd
jg 0x1027d15e
mov byte [ebp + 0x384], 0xb
push ebp
push esi
call fcn.1027bd70
add esp, 8
test eax, eax
jne 0x1027d08f
mov dword [esp + 0x18], 0xc
push esi
call fcn.1027d6a0
add esp, 4
test eax, eax
jne 0x1027d08f
push dword [esp + 0x14]
push ebp
push esi
call fcn.1027a890
add esp, 0xc
test eax, eax
jne 0x1027d08f
mov edi, dword [ebx + 0x50]
lea eax, [esi + 0x858]
push eax
sub edi, 0x64
call fcn.10262d00
push eax
push dword [esp + 0x1c]
push 1
push esi
call fcn.1026e7d0
lea eax, [esi + 0x858]
push eax
call fcn.10262d00
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x30]
or eax, 0x20
cmp edi, 0x64
cmovae eax, dword [esp + 0x38]
push eax
push esi
call fcn.1026edc0
add esp, 0x28
test eax, eax
jne 0x1027d08f
lea eax, [esi + 0x858]
push eax
call fcn.10262d00
mov ecx, eax
mov edi, 0x4b000
add esp, 4
cmp ecx, edi
jae 0x1027cbe2
add dword [esi + 0xc4], ecx
add dword [esi + 0xd50], ecx
mov eax, dword [esi + 0xc4]
add dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xd50]
cmp eax, edi
ja 0x1027cbea
cmp edx, 0x5dc000
jbe 0x1027cbf2
mov eax, edx
mov edi, 0x5dc000
jmp 0x1027cbea
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1027d1d6
lea eax, [esi + 0x858]
push eax
call fcn.10262d10
add esp, 4
jmp 0x1027d061
mov eax, dword [ebx + 0x50]
mov byte [esp + 0x12], 0
cmp eax, 0x64
jl 0x1027ccbb
cmp eax, 0xc7
jg 0x1027ccbb
sub eax, 0x64
je 0x1027cc8b
sub eax, 1
je 0x1027cc3f
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x1027cd26
cmp byte [ebp + 0x384], 0xb
jne 0x1027d150
cmp dword [ebx + 0x6c], 2
jne 0x1027cc7f
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.1026e930
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
mov byte [esp + 0x12], 1
jmp 0x1027cd26
mov byte [ebx + 0xb3], 0
jmp 0x1027cd26
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x1027cd26
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.1025d5a0
add esp, 8
jmp 0x1027cd26
cmp dword [ebx + 0x6c], 2
jne 0x1027cccc
push dword [esi + 0x7c]
call fcn.1025d6c0
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x1027cd26
cmp byte [ebx + 0xba], 0
jne 0x1027cd26
cmp byte [ebp + 0x1ae], 0
jne 0x1027cd26
cmp byte [ebp + 0x384], 0xb
jne 0x1027cd26
mov eax, dword [ebp + 0x1c4]
test dword [eax + 0x44], 0x40000
jne 0x1027cd26
cmp byte [esi + 0xcf2], 5
je 0x1027cd26
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.1026e930
push 2
push ebp
call fcn.1026fca0
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x1027cd40
push esi
call fcn.1027bcb0
add esp, 4
test eax, eax
jne 0x1027d08f
cmp byte [ebp + 0x1ae], 0
je 0x1027cdc8
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1027cd5f
cmp dword [ebp + 0x238], 2
je 0x1027cd6f
cmp eax, 0x197
jne 0x1027cd84
cmp dword [ebp + 0x23c], 2
jne 0x1027cd84
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1026e930
add esp, 8
mov byte [esi + 0xcf9], 1
cmp byte [ebp + 0x1ae], 0
je 0x1027cdc8
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1027cda3
cmp dword [ebp + 0x2c0], 1
je 0x1027cdb3
cmp eax, 0x197
jne 0x1027cdc8
cmp dword [ebp + 0x2c4], 1
jne 0x1027cdc8
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1026e930
add esp, 8
mov byte [esi + 0xcf9], 1
cmp dword [ebp + 0x2c0], 3
jne 0x1027cde7
cmp dword [esi + 0xd8], 0x191
je 0x1027cde7
mov dword [ebp + 0x2c0], 4
cmp dword [ebp + 0x2c4], 3
jne 0x1027ce06
cmp dword [esi + 0xd8], 0x197
je 0x1027ce06
mov dword [ebp + 0x2c4], 4
mov eax, dword [ebx + 0x50]
sub eax, 0x64
cmp eax, 0x64
lea eax, [esi + 0x858]
push eax
sbb edi, edi
and edi, 0x20
add edi, 4
call fcn.10262d00
add esp, 4
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x858]
push eax
call fcn.10262db0
add esp, 4
push eax
push edi
push esi
call fcn.1026edc0
add esp, 0x10
test eax, eax
jne 0x1027d08f
mov ecx, dword [esp + 0x18]
mov edi, 0x4b000
cmp ecx, edi
jae 0x1027ce8d
add dword [esi + 0xc4], ecx
add dword [esi + 0xd50], ecx
mov eax, dword [esi + 0xc4]
add dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xd50]
cmp eax, edi
ja 0x1027ce95
cmp edx, 0x5dc000
jbe 0x1027ce9d
mov eax, edx
mov edi, 0x5dc000
jmp 0x1027ce95
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1027d1d6
push esi
call fcn.1027d290
add esp, 4
test al, al
jne 0x1027d1b8
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x1027cec5
cmp eax, 0xc7
jg 0x1027cec5
mov eax, dword [esi + 0xc0]
jmp 0x1027cec7
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.10279940
add esp, 4
test eax, eax
jne 0x1027d08f
cmp dword [ebx + 0x50], 0x12c
jl 0x1027d03a
cmp byte [ebp + 0x1b8], al
jne 0x1027d016
cmp byte [ebp + 0x1ae], al
jne 0x1027d016
cmp byte [esi + 0xd06], al
jne 0x1027d01f
mov al, byte [esi + 0xcf2]
dec al
cmp al, 3
ja 0x1027d016
push 0
push esi
call fcn.1025d5a0
add esp, 8
cmp byte [ebx + 0xb7], 0
jne 0x1027d016
cmp dword [ebx + 0x50], 0x1a1
jne 0x1027cfb1
cmp byte [esi + 0xcfb], 0
je 0x1027cfb1
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x1027cf67
cmp dword [ebx + 0x68], 1
jne 0x1027cf67
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.1026e930
add esp, 8
jmp 0x1027cf8c
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.1026e930
push 2
push ebp
call fcn.1026fca0
push ebp
push esi
call fcn.1027c4e0
add esp, 0x18
test eax, eax
jne 0x1027d08f
push dword [esi + 0xc44]
mov byte [esi + 0xcfc], 1
call dword [0x102dd00c]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.10273380
add esp, 0xc
jmp 0x1027d016
cmp byte [esi + 0x66b], 0
je 0x1027cfdb
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.1026e930
add esp, 8
cmp dword [ebx + 0x68], 0
jle 0x1027d016
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp 0x1027d016
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.1026e930
push 2
push ebp
call fcn.1026fca0
push ebx
push esi
call fcn.10273380
add esp, 0x18
test eax, eax
jne 0x1027d08f
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xcfb], al
je 0x1027d016
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd06], 0
je 0x1027d03a
cmp dword [ebp + 0x1e4], 0xffffffff
je 0x1027d03a
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.1026e930
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x1027d16b
lea eax, [esi + 0x858]
push eax
call fcn.10262d10
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x1027d27a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1027c727
mov al, byte [esp + 0x20]
cmp byte [ebx + 0xb3], 0
jne 0x1027d08d
test al, al
jne 0x1027d08d
add esi, 0x858
push esi
call fcn.10262cb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push ebp
call fcn.1026fca0
add esp, 8
cmp byte [esi + 0x68d], 0
je 0x1027d26c
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x1027d071
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.1026e860
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x18]
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.1026e860
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.Unsupported_response_code_in_HTTP_response
push esi
call fcn.1026e860
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push str.Unsupported_HTTP_1_subversion_in_response
push esi
call fcn.1026e860
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov byte [ebx + 0xb3], 0
jmp 0x1027d06d
push str.unexpected_101_response_code
push esi
call fcn.1026e860
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x147], 0
je 0x1027d17b
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x1027d18e
cmp dword [ebx + 0xc], 0
jne 0x1027d18e
mov byte [ebx + 0xb5], 1
lea edi, [esi + 0x858]
push edi
call fcn.10262d00
add esp, 4
push eax
push edi
call fcn.10262db0
add esp, 4
push eax
push 1
push esi
call fcn.1026e7d0
add esp, 0x10
jmp 0x1027d06d
push dword [ebx + 0x50]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.1026e860
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push eax
push str.Too_large_response_headers:__zu____u
push esi
call fcn.1026e860
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esp + 0x28]
lea edi, [esi + 0x858]
push dword [esp + 0x28]
push edi
call fcn.10262ca0
add esp, 0xc
test eax, eax
jne 0x1027d08f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x1027d06d
push edi
call fcn.10262d00
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.10262db0
push edi
push eax
push esi
call fcn.1027c1f0
add esp, 0x14
cmp eax, 2
jne 0x1027d06d
push eax
push ebp
mov byte [ebx + 0xb3], 0
call fcn.1026fca0
add esp, 8
cmp byte [esi + 0x68d], 0
jne 0x1027d0b6
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.1026e860
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret