Function at 0x1027c6d0
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.1029c2f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1027d1c3
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x858]
sub edi, ecx
inc edi
push edi
push ecx
push eax
call fcn.10262c80
add esp, 0xc
test eax, eax
jne 0x1027d05f
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 0x1027c772
lea eax, [esi + 0x858]
push eax
call fcn.10262ce0
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.10262d90
push edi
push eax
push esi
call fcn.1027c1c0
add esp, 0x14
cmp eax, 2
je 0x1027d067
lea eax, [esi + 0x858]
push eax
call fcn.10262d90
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x1027cbd6
cmp cl, 0xd
je 0x1027cbd6
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x18], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x1027caed
mov eax, dword [ebp + 0x1c4]
mov eax, dword [eax + 0x44]
test al, 3
je 0x1027c9d9
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1027c7e0
nop dword [eax]
cmp al, 0x20
je 0x1027c7d8
cmp al, 9
jne 0x1027c7e0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1027c7d0
push 5
push str.HTTP_
push edi
call fcn.102a7df0
add esp, 0xc
test eax, eax
jne 0x1027c894
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x1027c8d3
sub al, 0x32
cmp al, 1
ja 0x1027d08a
mov al, byte [edi + 6]
cmp al, 0x20
je 0x1027c81a
cmp al, 9
jne 0x1027c894
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 0x1027c894
cmp cl, 0x39
jg 0x1027c894
mov al, byte [edi + 8]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x1027c894
cmp al, 0x39
jg 0x1027c894
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1027c894
cmp al, 0x39
jg 0x1027c894
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 0x1027c986
cmp al, 9
je 0x1027c986
cmp al, 0xa
jl 0x1027c894
cmp al, 0xd
jle 0x1027c986
lea edi, [esi + 0x858]
push edi
call fcn.10262ce0
add esp, 4
push eax
push edi
call fcn.10262d90
add esp, 4
push eax
push esi
call fcn.1027c1c0
add esp, 0xc
cmp eax, 1
jne 0x1027d114
mov dword [ebx + 0x50], 0xc8
mov byte [ebp + 0x384], 0xa
jmp 0x1027cad3
cmp byte [edi + 6], 0x2e
jne 0x1027d0f9
mov al, byte [edi + 7]
cmp al, 0x30
je 0x1027c8ec
cmp al, 0x31
jne 0x1027d0f9
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x1027c8fd
cmp cl, 9
jne 0x1027d0f9
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x1027d0f9
cmp cl, 0x39
jg 0x1027d0f9
mov al, byte [edi + 0xa]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1027d0f9
cmp al, 0x39
jg 0x1027d0f9
mov al, byte [edi + 0xb]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x1027d0f9
cmp al, 0x39
jg 0x1027d0f9
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 0x1027c986
cmp al, 9
je 0x1027c986
cmp al, 0xa
jl 0x1027d0f9
cmp al, 0xd
jg 0x1027d0f9
cmp dword [ebx + 0x50], 0x64
jl 0x1027d0de
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x1027d0a5
mov byte [ebp + 0x384], dl
cmp dword [ebx + 0x6c], 3
jne 0x1027c9bb
cmp dl, 0x14
je 0x1027c9bb
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.1026e910
add esp, 8
cmp byte [ebp + 0x384], 0x14
jae 0x1027cad3
mov eax, dword [ebp + 0x354]
mov dword [eax], 0xffffffff
jmp 0x1027cad3
test eax, 0x40000
je 0x1027d114
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1027ca00
nop dword [eax]
cmp al, 0x20
je 0x1027c9f8
cmp al, 9
jne 0x1027ca00
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1027c9f0
push 5
push str.RTSP_
push edi
call fcn.102a7df0
add esp, 0xc
test eax, eax
jne 0x1027d114
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x1027d12e
cmp al, 0x39
jg 0x1027d12e
cmp byte [edi + 6], 0x2e
jne 0x1027d12e
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x1027d12e
cmp al, 0x39
jg 0x1027d12e
mov al, byte [edi + 8]
cmp al, 0x20
je 0x1027ca57
cmp al, 9
jne 0x1027d12e
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x1027d12e
cmp al, 0x39
jg 0x1027d12e
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x1027d12e
cmp dh, 0x39
jg 0x1027d12e
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x1027d12e
cmp dl, 0x39
jg 0x1027d12e
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 0x1027cacc
cmp al, 9
je 0x1027cacc
cmp al, 0xa
jl 0x1027d12e
cmp al, 0xd
jg 0x1027d12e
mov byte [ebp + 0x384], 0xb
push ebp
push esi
call fcn.1027bd40
add esp, 8
test eax, eax
jne 0x1027d05f
mov dword [esp + 0x18], 0xc
push esi
call fcn.1027d670
add esp, 4
test eax, eax
jne 0x1027d05f
push dword [esp + 0x14]
push ebp
push esi
call fcn.1027a860
add esp, 0xc
test eax, eax
jne 0x1027d05f
mov edi, dword [ebx + 0x50]
lea eax, [esi + 0x858]
push eax
sub edi, 0x64
call fcn.10262ce0
push eax
push dword [esp + 0x1c]
push 1
push esi
call fcn.1026e7b0
lea eax, [esi + 0x858]
push eax
call fcn.10262ce0
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.1026eda0
add esp, 0x28
test eax, eax
jne 0x1027d05f
lea eax, [esi + 0x858]
push eax
call fcn.10262ce0
mov ecx, eax
mov edi, 0x4b000
add esp, 4
cmp ecx, edi
jae 0x1027cbb2
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 0x1027cbba
cmp edx, 0x5dc000
jbe 0x1027cbc2
mov eax, edx
mov edi, 0x5dc000
jmp 0x1027cbba
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1027d1a6
lea eax, [esi + 0x858]
push eax
call fcn.10262cf0
add esp, 4
jmp 0x1027d031
mov eax, dword [ebx + 0x50]
mov byte [esp + 0x12], 0
cmp eax, 0x64
jl 0x1027cc8b
cmp eax, 0xc7
jg 0x1027cc8b
sub eax, 0x64
je 0x1027cc5b
sub eax, 1
je 0x1027cc0f
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x1027ccf6
cmp byte [ebp + 0x384], 0xb
jne 0x1027d120
cmp dword [ebx + 0x6c], 2
jne 0x1027cc4f
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.1026e910
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
mov byte [esp + 0x12], 1
jmp 0x1027ccf6
mov byte [ebx + 0xb3], 0
jmp 0x1027ccf6
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x1027ccf6
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.1025d580
add esp, 8
jmp 0x1027ccf6
cmp dword [ebx + 0x6c], 2
jne 0x1027cc9c
push dword [esi + 0x7c]
call fcn.1025d6a0
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x1027ccf6
cmp byte [ebx + 0xba], 0
jne 0x1027ccf6
cmp byte [ebp + 0x1ae], 0
jne 0x1027ccf6
cmp byte [ebp + 0x384], 0xb
jne 0x1027ccf6
mov eax, dword [ebp + 0x1c4]
test dword [eax + 0x44], 0x40000
jne 0x1027ccf6
cmp byte [esi + 0xcf2], 5
je 0x1027ccf6
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.1026e910
push 2
push ebp
call fcn.1026fc80
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x1027cd10
push esi
call fcn.1027bc80
add esp, 4
test eax, eax
jne 0x1027d05f
cmp byte [ebp + 0x1ae], 0
je 0x1027cd98
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1027cd2f
cmp dword [ebp + 0x238], 2
je 0x1027cd3f
cmp eax, 0x197
jne 0x1027cd54
cmp dword [ebp + 0x23c], 2
jne 0x1027cd54
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1026e910
add esp, 8
mov byte [esi + 0xcf9], 1
cmp byte [ebp + 0x1ae], 0
je 0x1027cd98
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1027cd73
cmp dword [ebp + 0x2c0], 1
je 0x1027cd83
cmp eax, 0x197
jne 0x1027cd98
cmp dword [ebp + 0x2c4], 1
jne 0x1027cd98
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1026e910
add esp, 8
mov byte [esi + 0xcf9], 1
cmp dword [ebp + 0x2c0], 3
jne 0x1027cdb7
cmp dword [esi + 0xd8], 0x191
je 0x1027cdb7
mov dword [ebp + 0x2c0], 4
cmp dword [ebp + 0x2c4], 3
jne 0x1027cdd6
cmp dword [esi + 0xd8], 0x197
je 0x1027cdd6
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.10262ce0
add esp, 4
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x858]
push eax
call fcn.10262d90
add esp, 4
push eax
push edi
push esi
call fcn.1026eda0
add esp, 0x10
test eax, eax
jne 0x1027d05f
mov ecx, dword [esp + 0x18]
mov edi, 0x4b000
cmp ecx, edi
jae 0x1027ce5d
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 0x1027ce65
cmp edx, 0x5dc000
jbe 0x1027ce6d
mov eax, edx
mov edi, 0x5dc000
jmp 0x1027ce65
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1027d1a6
push esi
call fcn.1027d260
add esp, 4
test al, al
jne 0x1027d188
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x1027ce95
cmp eax, 0xc7
jg 0x1027ce95
mov eax, dword [esi + 0xc0]
jmp 0x1027ce97
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.10279920
add esp, 4
test eax, eax
jne 0x1027d05f
cmp dword [ebx + 0x50], 0x12c
jl 0x1027d00a
cmp byte [ebp + 0x1b8], al
jne 0x1027cfe6
cmp byte [ebp + 0x1ae], al
jne 0x1027cfe6
cmp byte [esi + 0xd06], al
jne 0x1027cfef
mov al, byte [esi + 0xcf2]
dec al
cmp al, 3
ja 0x1027cfe6
push 0
push esi
call fcn.1025d580
add esp, 8
cmp byte [ebx + 0xb7], 0
jne 0x1027cfe6
cmp dword [ebx + 0x50], 0x1a1
jne 0x1027cf81
cmp byte [esi + 0xcfb], 0
je 0x1027cf81
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x1027cf37
cmp dword [ebx + 0x68], 1
jne 0x1027cf37
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.1026e910
add esp, 8
jmp 0x1027cf5c
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.1026e910
push 2
push ebp
call fcn.1026fc80
push ebp
push esi
call fcn.1027c4b0
add esp, 0x18
test eax, eax
jne 0x1027d05f
push dword [esi + 0xc44]
mov byte [esi + 0xcfc], 1
call dword [0x102dd00c]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.10273360
add esp, 0xc
jmp 0x1027cfe6
cmp byte [esi + 0x66b], 0
je 0x1027cfab
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.1026e910
add esp, 8
cmp dword [ebx + 0x68], 0
jle 0x1027cfe6
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp 0x1027cfe6
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.1026e910
push 2
push ebp
call fcn.1026fc80
push ebx
push esi
call fcn.10273360
add esp, 0x18
test eax, eax
jne 0x1027d05f
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xcfb], al
je 0x1027cfe6
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd06], 0
je 0x1027d00a
cmp dword [ebp + 0x1e4], 0xffffffff
je 0x1027d00a
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.1026e910
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x1027d13b
lea eax, [esi + 0x858]
push eax
call fcn.10262cf0
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x1027d24a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1027c6f7
mov al, byte [esp + 0x20]
cmp byte [ebx + 0xb3], 0
jne 0x1027d05d
test al, al
jne 0x1027d05d
add esi, 0x858
push esi
call fcn.10262c90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push ebp
call fcn.1026fc80
add esp, 8
cmp byte [esi + 0x68d], 0
je 0x1027d23c
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x1027d041
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.1026e840
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.1026e840
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.1026e840
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.1026e840
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov byte [ebx + 0xb3], 0
jmp 0x1027d03d
push str.unexpected_101_response_code
push esi
call fcn.1026e840
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x147], 0
je 0x1027d14b
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x1027d15e
cmp dword [ebx + 0xc], 0
jne 0x1027d15e
mov byte [ebx + 0xb5], 1
lea edi, [esi + 0x858]
push edi
call fcn.10262ce0
add esp, 4
push eax
push edi
call fcn.10262d90
add esp, 4
push eax
push 1
push esi
call fcn.1026e7b0
add esp, 0x10
jmp 0x1027d03d
push dword [ebx + 0x50]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.1026e840
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.1026e840
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.10262c80
add esp, 0xc
test eax, eax
jne 0x1027d05f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x1027d03d
push edi
call fcn.10262ce0
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.10262d90
push edi
push eax
push esi
call fcn.1027c1c0
add esp, 0x14
cmp eax, 2
jne 0x1027d03d
push eax
push ebp
mov byte [ebx + 0xb3], 0
call fcn.1026fc80
add esp, 8
cmp byte [esi + 0x68d], 0
jne 0x1027d086
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.1026e840
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret