Function at 0x10233ec0
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.10253b20
mov edi, eax
add esp, 0xc
test edi, edi
je 0x102349b3
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x858]
sub edi, ecx
inc edi
push edi
push ecx
push eax
call fcn.1021a470
add esp, 0xc
test eax, eax
jne 0x1023484f
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 0x10233f62
lea eax, [esi + 0x858]
push eax
call fcn.1024d610
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.1021a570
push edi
push eax
push esi
call fcn.102339b0
add esp, 0x14
cmp eax, 2
je 0x10234857
lea eax, [esi + 0x858]
push eax
call fcn.1021a570
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x102343c6
cmp cl, 0xd
je 0x102343c6
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x18], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x102342dd
mov eax, dword [ebp + 0x1c4]
mov eax, dword [eax + 0x44]
test al, 3
je 0x102341c9
mov al, byte [edx]
mov edi, edx
test al, al
je 0x10233fd0
nop dword [eax]
cmp al, 0x20
je 0x10233fc8
cmp al, 9
jne 0x10233fd0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10233fc0
push 5
push str.HTTP_
push edi
call fcn.1025f420
add esp, 0xc
test eax, eax
jne 0x10234084
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x102340c3
sub al, 0x32
cmp al, 1
ja 0x1023487a
mov al, byte [edi + 6]
cmp al, 0x20
je 0x1023400a
cmp al, 9
jne 0x10234084
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 0x10234084
cmp cl, 0x39
jg 0x10234084
mov al, byte [edi + 8]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x10234084
cmp al, 0x39
jg 0x10234084
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x10234084
cmp al, 0x39
jg 0x10234084
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 0x10234176
cmp al, 9
je 0x10234176
cmp al, 0xa
jl 0x10234084
cmp al, 0xd
jle 0x10234176
lea edi, [esi + 0x858]
push edi
call fcn.1024d610
add esp, 4
push eax
push edi
call fcn.1021a570
add esp, 4
push eax
push esi
call fcn.102339b0
add esp, 0xc
cmp eax, 1
jne 0x10234904
mov dword [ebx + 0x50], 0xc8
mov byte [ebp + 0x384], 0xa
jmp 0x102342c3
cmp byte [edi + 6], 0x2e
jne 0x102348e9
mov al, byte [edi + 7]
cmp al, 0x30
je 0x102340dc
cmp al, 0x31
jne 0x102348e9
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x102340ed
cmp cl, 9
jne 0x102348e9
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x102348e9
cmp cl, 0x39
jg 0x102348e9
mov al, byte [edi + 0xa]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x102348e9
cmp al, 0x39
jg 0x102348e9
mov al, byte [edi + 0xb]
mov byte [esp + 0x12], al
cmp al, 0x30
jl 0x102348e9
cmp al, 0x39
jg 0x102348e9
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 0x10234176
cmp al, 9
je 0x10234176
cmp al, 0xa
jl 0x102348e9
cmp al, 0xd
jg 0x102348e9
cmp dword [ebx + 0x50], 0x64
jl 0x102348ce
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x10234895
mov byte [ebp + 0x384], dl
cmp dword [ebx + 0x6c], 3
jne 0x102341ab
cmp dl, 0x14
je 0x102341ab
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.102260f0
add esp, 8
cmp byte [ebp + 0x384], 0x14
jae 0x102342c3
mov eax, dword [ebp + 0x354]
mov dword [eax], 0xffffffff
jmp 0x102342c3
test eax, 0x40000
je 0x10234904
mov al, byte [edx]
mov edi, edx
test al, al
je 0x102341f0
nop dword [eax]
cmp al, 0x20
je 0x102341e8
cmp al, 9
jne 0x102341f0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x102341e0
push 5
push str.RTSP_
push edi
call fcn.1025f420
add esp, 0xc
test eax, eax
jne 0x10234904
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x1023491e
cmp al, 0x39
jg 0x1023491e
cmp byte [edi + 6], 0x2e
jne 0x1023491e
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x1023491e
cmp al, 0x39
jg 0x1023491e
mov al, byte [edi + 8]
cmp al, 0x20
je 0x10234247
cmp al, 9
jne 0x1023491e
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x1023491e
cmp al, 0x39
jg 0x1023491e
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x1023491e
cmp dh, 0x39
jg 0x1023491e
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x1023491e
cmp dl, 0x39
jg 0x1023491e
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 0x102342bc
cmp al, 9
je 0x102342bc
cmp al, 0xa
jl 0x1023491e
cmp al, 0xd
jg 0x1023491e
mov byte [ebp + 0x384], 0xb
push ebp
push esi
call fcn.10233530
add esp, 8
test eax, eax
jne 0x1023484f
mov dword [esp + 0x18], 0xc
push esi
call fcn.10234e60
add esp, 4
test eax, eax
jne 0x1023484f
push dword [esp + 0x14]
push ebp
push esi
call fcn.10232040
add esp, 0xc
test eax, eax
jne 0x1023484f
mov edi, dword [ebx + 0x50]
lea eax, [esi + 0x858]
push eax
sub edi, 0x64
call fcn.1024d610
push eax
push dword [esp + 0x1c]
push 1
push esi
call fcn.10225f90
lea eax, [esi + 0x858]
push eax
call fcn.1024d610
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.10226580
add esp, 0x28
test eax, eax
jne 0x1023484f
lea eax, [esi + 0x858]
push eax
call fcn.1024d610
mov ecx, eax
mov edi, 0x4b000
add esp, 4
cmp ecx, edi
jae 0x102343a2
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 0x102343aa
cmp edx, 0x5dc000
jbe 0x102343b2
mov eax, edx
mov edi, 0x5dc000
jmp 0x102343aa
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x10234996
lea eax, [esi + 0x858]
push eax
call fcn.1021a4d0
add esp, 4
jmp 0x10234821
mov eax, dword [ebx + 0x50]
mov byte [esp + 0x12], 0
cmp eax, 0x64
jl 0x1023447b
cmp eax, 0xc7
jg 0x1023447b
sub eax, 0x64
je 0x1023444b
sub eax, 1
je 0x102343ff
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jmp 0x102344e6
cmp byte [ebp + 0x384], 0xb
jne 0x10234910
cmp dword [ebx + 0x6c], 2
jne 0x1023443f
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.102260f0
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
mov byte [esp + 0x12], 1
jmp 0x102344e6
mov byte [ebx + 0xb3], 0
jmp 0x102344e6
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb3], 1
mov dword [ebx + 0x44], 0
jle 0x102344e6
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.10214d50
add esp, 8
jmp 0x102344e6
cmp dword [ebx + 0x6c], 2
jne 0x1023448c
push dword [esi + 0x7c]
call fcn.10214e70
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb3], 0
cmp eax, 0xffffffff
jne 0x102344e6
cmp byte [ebx + 0xba], 0
jne 0x102344e6
cmp byte [ebp + 0x1ae], 0
jne 0x102344e6
cmp byte [ebp + 0x384], 0xb
jne 0x102344e6
mov eax, dword [ebp + 0x1c4]
test dword [eax + 0x44], 0x40000
jne 0x102344e6
cmp byte [esi + 0xcf2], 5
je 0x102344e6
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.102260f0
push 2
push ebp
call fcn.10227460
add esp, 0x10
cmp byte [ebx + 0xb3], 0
jne 0x10234500
push esi
call fcn.10233470
add esp, 4
test eax, eax
jne 0x1023484f
cmp byte [ebp + 0x1ae], 0
je 0x10234588
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1023451f
cmp dword [ebp + 0x238], 2
je 0x1023452f
cmp eax, 0x197
jne 0x10234544
cmp dword [ebp + 0x23c], 2
jne 0x10234544
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.102260f0
add esp, 8
mov byte [esi + 0xcf9], 1
cmp byte [ebp + 0x1ae], 0
je 0x10234588
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x10234563
cmp dword [ebp + 0x2c0], 1
je 0x10234573
cmp eax, 0x197
jne 0x10234588
cmp dword [ebp + 0x2c4], 1
jne 0x10234588
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.102260f0
add esp, 8
mov byte [esi + 0xcf9], 1
cmp dword [ebp + 0x2c0], 3
jne 0x102345a7
cmp dword [esi + 0xd8], 0x191
je 0x102345a7
mov dword [ebp + 0x2c0], 4
cmp dword [ebp + 0x2c4], 3
jne 0x102345c6
cmp dword [esi + 0xd8], 0x197
je 0x102345c6
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.1024d610
add esp, 4
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x858]
push eax
call fcn.1021a570
add esp, 4
push eax
push edi
push esi
call fcn.10226580
add esp, 0x10
test eax, eax
jne 0x1023484f
mov ecx, dword [esp + 0x18]
mov edi, 0x4b000
cmp ecx, edi
jae 0x1023464d
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 0x10234655
cmp edx, 0x5dc000
jbe 0x1023465d
mov eax, edx
mov edi, 0x5dc000
jmp 0x10234655
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x10234996
push esi
call fcn.10234a50
add esp, 4
test al, al
jne 0x10234978
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x10234685
cmp eax, 0xc7
jg 0x10234685
mov eax, dword [esi + 0xc0]
jmp 0x10234687
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.10231100
add esp, 4
test eax, eax
jne 0x1023484f
cmp dword [ebx + 0x50], 0x12c
jl 0x102347fa
cmp byte [ebp + 0x1b8], al
jne 0x102347d6
cmp byte [ebp + 0x1ae], al
jne 0x102347d6
cmp byte [esi + 0xd06], al
jne 0x102347df
mov al, byte [esi + 0xcf2]
dec al
cmp al, 3
ja 0x102347d6
push 0
push esi
call fcn.10214d50
add esp, 8
cmp byte [ebx + 0xb7], 0
jne 0x102347d6
cmp dword [ebx + 0x50], 0x1a1
jne 0x10234771
cmp byte [esi + 0xcfb], 0
je 0x10234771
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x10234727
cmp dword [ebx + 0x68], 1
jne 0x10234727
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.102260f0
add esp, 8
jmp 0x1023474c
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.102260f0
push 2
push ebp
call fcn.10227460
push ebp
push esi
call fcn.10233ca0
add esp, 0x18
test eax, eax
jne 0x1023484f
push dword [esi + 0xc44]
mov byte [esi + 0xcfc], 1
call dword [0x1029500c]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.1022ab40
add esp, 0xc
jmp 0x102347d6
cmp byte [esi + 0x66b], 0
je 0x1023479b
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.102260f0
add esp, 8
cmp dword [ebx + 0x68], 0
jle 0x102347d6
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp 0x102347d6
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.102260f0
push 2
push ebp
call fcn.10227460
push ebx
push esi
call fcn.1022ab40
add esp, 0x18
test eax, eax
jne 0x1023484f
mov byte [ebx + 0xb7], 1
cmp byte [esi + 0xcfb], al
je 0x102347d6
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd06], 0
je 0x102347fa
cmp dword [ebp + 0x1e4], 0xffffffff
je 0x102347fa
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.102260f0
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb3], 0
je 0x1023492b
lea eax, [esi + 0x858]
push eax
call fcn.1021a4d0
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x10234a3a
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10233ee7
mov al, byte [esp + 0x20]
cmp byte [ebx + 0xb3], 0
jne 0x1023484d
test al, al
jne 0x1023484d
add esi, 0x858
push esi
call fcn.1021a480
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push ebp
call fcn.10227460
add esp, 8
cmp byte [esi + 0x68d], 0
je 0x10234a2c
mov byte [ebx + 0xb3], 0
mov al, 1
jmp 0x10234831
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.10226020
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.10226020
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.10226020
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.10226020
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov byte [ebx + 0xb3], 0
jmp 0x1023482d
push str.unexpected_101_response_code
push esi
call fcn.10226020
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x147], 0
je 0x1023493b
mov byte [ebx + 0xb5], 1
cmp dword [ebx + 8], 0
jne 0x1023494e
cmp dword [ebx + 0xc], 0
jne 0x1023494e
mov byte [ebx + 0xb5], 1
lea edi, [esi + 0x858]
push edi
call fcn.1024d610
add esp, 4
push eax
push edi
call fcn.1021a570
add esp, 4
push eax
push 1
push esi
call fcn.10225f90
add esp, 0x10
jmp 0x1023482d
push dword [ebx + 0x50]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.10226020
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.10226020
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.1021a470
add esp, 0xc
test eax, eax
jne 0x1023484f
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x1023482d
push edi
call fcn.1024d610
mov edi, eax
lea eax, [esi + 0x858]
push eax
call fcn.1021a570
push edi
push eax
push esi
call fcn.102339b0
add esp, 0x14
cmp eax, 2
jne 0x1023482d
push eax
push ebp
mov byte [ebx + 0xb3], 0
call fcn.10227460
add esp, 8
cmp byte [esi + 0x68d], 0
jne 0x10234876
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.10226020
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret