Function at 0x1027c730
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.1029c380
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1027d223
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x858]
sub edi, ecx
inc edi
push edi
push ecx
push eax
call fcn.10262cb0
add esp, 0xc
test eax, eax
jne 0x1027d0bf
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 0x1027c7d2
lea eax, [esi + 0x858]
push eax
call fcn.10262d10
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.10262dc0
push edi
push eax
push esi
call fcn.1027c220
add esp, 0x14
cmp eax, 2
je 0x1027d0c7
lea eax, [esi + 0x858]
push eax
call fcn.10262dc0
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x1027cc36
cmp cl, 0xd
je 0x1027cc36
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x18], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x1027cb4d
mov eax, dword [ebp + 0x1c4]
mov eax, dword [eax + 0x44]
test al, 3
je 0x1027ca39
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1027c840
nop dword [eax]
cmp al, 0x20
je 0x1027c838
cmp al, 9
jne 0x1027c840
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1027c830
push 5
push str.HTTP_
push edi
call fcn.102a7e80
add esp, 0xc
test eax, eax
jne 0x1027c8f4
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x1027c933
sub al, 0x32
cmp al, 1
ja 0x1027d0ea
mov al, byte [edi + 6]
cmp al, 0x20
je 0x1027c87a
cmp al, 9
jne 0x1027c8f4
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 0x1027c8f4
cmp cl, 0x39
jg 0x1027c8f4
mov al, byte [edi + 8]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x1027c8f4
cmp al, 0x39
jg 0x1027c8f4
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1027c8f4
cmp al, 0x39
jg 0x1027c8f4
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 0x1027c9e6
cmp al, 9
je 0x1027c9e6
cmp al, 0xa
jl 0x1027c8f4
cmp al, 0xd
jle 0x1027c9e6
lea edi, [esi + 0x858]
push edi
call fcn.10262d10
add esp, 4
push eax
push edi
call fcn.10262dc0
add esp, 4
push eax
push esi
call fcn.1027c220
add esp, 0xc
cmp eax, 1
jne 0x1027d174
mov dword [ebx + 0x50], 0xc8
mov byte [ebp + 0x384], 0xa
jmp 0x1027cb33
cmp byte [edi + 6], 0x2e
jne 0x1027d159
mov al, byte [edi + 7]
cmp al, 0x30
je 0x1027c94c
cmp al, 0x31
jne 0x1027d159
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x1027c95d
cmp cl, 9
jne 0x1027d159
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x1027d159
cmp cl, 0x39
jg 0x1027d159
mov al, byte [edi + 0xa]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1027d159
cmp al, 0x39
jg 0x1027d159
mov al, byte [edi + 0xb]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x1027d159
cmp al, 0x39
jg 0x1027d159
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 0x1027c9e6
cmp al, 9
je 0x1027c9e6
cmp al, 0xa
jl 0x1027d159
cmp al, 0xd
jg 0x1027d159
cmp dword [ebx + 0x50], 0x64
jl 0x1027d13e
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x1027d105
mov byte [ebp + 0x384], dl
cmp dword [ebx + 0x6c], 3
jne 0x1027ca1b
cmp dl, 0x14
je 0x1027ca1b
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.1026e950
add esp, 8
cmp byte [ebp + 0x384], 0x14
jae 0x1027cb33
mov eax, dword [ebp + 0x354]
mov dword [eax], 0xffffffff
jmp 0x1027cb33
test eax, 0x40000
je 0x1027d174
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1027ca60
nop dword [eax]
cmp al, 0x20
je 0x1027ca58
cmp al, 9
jne 0x1027ca60
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1027ca50
push 5
push str.RTSP_
push edi
call fcn.102a7e80
add esp, 0xc
test eax, eax
jne 0x1027d174
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x1027d18e
cmp al, 0x39
jg 0x1027d18e
cmp byte [edi + 6], 0x2e
jne 0x1027d18e
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x1027d18e
cmp al, 0x39
jg 0x1027d18e
mov al, byte [edi + 8]
cmp al, 0x20
je 0x1027cab7
cmp al, 9
jne 0x1027d18e
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x1027d18e
cmp al, 0x39
jg 0x1027d18e
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x1027d18e
cmp dh, 0x39
jg 0x1027d18e
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x1027d18e
cmp dl, 0x39
jg 0x1027d18e
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 0x1027cb2c
cmp al, 9
je 0x1027cb2c
cmp al, 0xa
jl 0x1027d18e
cmp al, 0xd
jg 0x1027d18e
mov byte [ebp + 0x384], 0xb
push ebp
push esi
call fcn.1027bda0
add esp, 8
test eax, eax
jne 0x1027d0bf
mov dword [esp + 0x18], 0xc
push esi
call fcn.1027d6d0
add esp, 4
test eax, eax
jne 0x1027d0bf
push dword [esp + 0x14]
push ebp
push esi
call fcn.1027a8c0
add esp, 0xc
test eax, eax
jne 0x1027d0bf
mov edi, dword [ebx + 0x50]
lea eax, [esi + 0x858]
push eax
sub edi, 0x64
call fcn.10262d10
push eax
push dword [esp + 0x1c]
push 1
push esi
call fcn.1026e7f0
lea eax, [esi + 0x858]
push eax
call fcn.10262d10
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.1026ede0
add esp, 0x28
test eax, eax
jne 0x1027d0bf
lea eax, [esi + 0x858]
push eax
call fcn.10262d10
mov ecx, eax
mov edi, 0x4b000
add esp, 4
cmp ecx, edi
jae 0x1027cc12
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 0x1027cc1a
cmp edx, 0x5dc000
jbe 0x1027cc22
mov eax, edx
mov edi, 0x5dc000
jmp 0x1027cc1a
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1027d206
lea eax, [esi + 0x858]
push eax
call fcn.10262d20
add esp, 4
jmp 0x1027d091
mov eax, dword [ebx + 0x50]
mov byte [esp + 0x12], 0
cmp eax, 0x64
jl 0x1027cceb
cmp eax, 0xc7
jg 0x1027cceb
sub eax, 0x64
je 0x1027ccbb
sub eax, 1
je 0x1027cc6f
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x1027cd56
cmp byte [ebp + 0x384], 0xb
jne 0x1027d180
cmp dword [ebx + 0x6c], 2
jne 0x1027ccaf
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.1026e950
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
mov byte [esp + 0x12], 1
jmp 0x1027cd56
mov byte [ebx + 0xb3], 0
jmp 0x1027cd56
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x1027cd56
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.1025d5b0
add esp, 8
jmp 0x1027cd56
cmp dword [ebx + 0x6c], 2
jne 0x1027ccfc
push dword [esi + 0x7c]
call fcn.1025d6d0
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x1027cd56
cmp byte [ebx + 0xba], 0
jne 0x1027cd56
cmp byte [ebp + 0x1ae], 0
jne 0x1027cd56
cmp byte [ebp + 0x384], 0xb
jne 0x1027cd56
mov eax, dword [ebp + 0x1c4]
test dword [eax + 0x44], 0x40000
jne 0x1027cd56
cmp byte [esi + 0xcf2], 5
je 0x1027cd56
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.1026e950
push 2
push ebp
call fcn.1026fcc0
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x1027cd70
push esi
call fcn.1027bce0
add esp, 4
test eax, eax
jne 0x1027d0bf
cmp byte [ebp + 0x1ae], 0
je 0x1027cdf8
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1027cd8f
cmp dword [ebp + 0x238], 2
je 0x1027cd9f
cmp eax, 0x197
jne 0x1027cdb4
cmp dword [ebp + 0x23c], 2
jne 0x1027cdb4
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1026e950
add esp, 8
mov byte [esi + 0xcf9], 1
cmp byte [ebp + 0x1ae], 0
je 0x1027cdf8
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1027cdd3
cmp dword [ebp + 0x2c0], 1
je 0x1027cde3
cmp eax, 0x197
jne 0x1027cdf8
cmp dword [ebp + 0x2c4], 1
jne 0x1027cdf8
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.1026e950
add esp, 8
mov byte [esi + 0xcf9], 1
cmp dword [ebp + 0x2c0], 3
jne 0x1027ce17
cmp dword [esi + 0xd8], 0x191
je 0x1027ce17
mov dword [ebp + 0x2c0], 4
cmp dword [ebp + 0x2c4], 3
jne 0x1027ce36
cmp dword [esi + 0xd8], 0x197
je 0x1027ce36
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.10262d10
add esp, 4
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x858]
push eax
call fcn.10262dc0
add esp, 4
push eax
push edi
push esi
call fcn.1026ede0
add esp, 0x10
test eax, eax
jne 0x1027d0bf
mov ecx, dword [esp + 0x18]
mov edi, 0x4b000
cmp ecx, edi
jae 0x1027cebd
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 0x1027cec5
cmp edx, 0x5dc000
jbe 0x1027cecd
mov eax, edx
mov edi, 0x5dc000
jmp 0x1027cec5
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1027d206
push esi
call fcn.1027d2c0
add esp, 4
test al, al
jne 0x1027d1e8
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x1027cef5
cmp eax, 0xc7
jg 0x1027cef5
mov eax, dword [esi + 0xc0]
jmp 0x1027cef7
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.10279980
add esp, 4
test eax, eax
jne 0x1027d0bf
cmp dword [ebx + 0x50], 0x12c
jl 0x1027d06a
cmp byte [ebp + 0x1b8], al
jne 0x1027d046
cmp byte [ebp + 0x1ae], al
jne 0x1027d046
cmp byte [esi + 0xd06], al
jne 0x1027d04f
mov al, byte [esi + 0xcf2]
dec al
cmp al, 3
ja 0x1027d046
push 0
push esi
call fcn.1025d5b0
add esp, 8
cmp byte [ebx + 0xb7], 0
jne 0x1027d046
cmp dword [ebx + 0x50], 0x1a1
jne 0x1027cfe1
cmp byte [esi + 0xcfb], 0
je 0x1027cfe1
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x1027cf97
cmp dword [ebx + 0x68], 1
jne 0x1027cf97
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.1026e950
add esp, 8
jmp 0x1027cfbc
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.1026e950
push 2
push ebp
call fcn.1026fcc0
push ebp
push esi
call fcn.1027c510
add esp, 0x18
test eax, eax
jne 0x1027d0bf
push dword [esi + 0xc44]
mov byte [esi + 0xcfc], 1
call dword [0x102dd00c]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.102733c0
add esp, 0xc
jmp 0x1027d046
cmp byte [esi + 0x66b], 0
je 0x1027d00b
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.1026e950
add esp, 8
cmp dword [ebx + 0x68], 0
jle 0x1027d046
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp 0x1027d046
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.1026e950
push 2
push ebp
call fcn.1026fcc0
push ebx
push esi
call fcn.102733c0
add esp, 0x18
test eax, eax
jne 0x1027d0bf
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xcfb], al
je 0x1027d046
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd06], 0
je 0x1027d06a
cmp dword [ebp + 0x1e4], 0xffffffff
je 0x1027d06a
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.1026e950
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x1027d19b
lea eax, [esi + 0x858]
push eax
call fcn.10262d20
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x1027d2aa
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1027c757
mov al, byte [esp + 0x20]
cmp byte [ebx + 0xb3], 0
jne 0x1027d0bd
test al, al
jne 0x1027d0bd
add esi, 0x858
push esi
call fcn.10262cc0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push ebp
call fcn.1026fcc0
add esp, 8
cmp byte [esi + 0x68d], 0
je 0x1027d29c
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x1027d0a1
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.1026e880
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.1026e880
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.1026e880
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.1026e880
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov byte [ebx + 0xb3], 0
jmp 0x1027d09d
push str.unexpected_101_response_code
push esi
call fcn.1026e880
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x147], 0
je 0x1027d1ab
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x1027d1be
cmp dword [ebx + 0xc], 0
jne 0x1027d1be
mov byte [ebx + 0xb5], 1
lea edi, [esi + 0x858]
push edi
call fcn.10262d10
add esp, 4
push eax
push edi
call fcn.10262dc0
add esp, 4
push eax
push 1
push esi
call fcn.1026e7f0
add esp, 0x10
jmp 0x1027d09d
push dword [ebx + 0x50]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.1026e880
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.1026e880
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.10262cb0
add esp, 0xc
test eax, eax
jne 0x1027d0bf
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x1027d09d
push edi
call fcn.10262d10
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.10262dc0
push edi
push eax
push esi
call fcn.1027c220
add esp, 0x14
cmp eax, 2
jne 0x1027d09d
push eax
push ebp
mov byte [ebx + 0xb3], 0
call fcn.1026fcc0
add esp, 8
cmp byte [esi + 0x68d], 0
jne 0x1027d0e6
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.1026e880
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret