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

Disassembly:
mov ecx, dword [esp + 0x14]
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [ecx], 0
lea ebx, [esi + 0x88]
push eax
push 0xa
push dword [esp + 0x30]
call fcn.1006ae30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1002ee40
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0x8a8]
sub edi, ecx
inc edi
push edi
push ecx
push eax
call fcn.10014100
add esp, 0xc
test eax, eax
jne 0x1002ec97
mov eax, dword [esp + 0x30]
sub dword [esp + 0x2c], edi
add dword [esp + 0x28], edi
add dword [eax], edi
cmp dword [ebx + 0x44], 0
jne 0x1002e404
lea eax, [esi + 0x8a8]
push eax
call fcn.10014160
mov edi, eax
lea eax, [esi + 0x8a8]
push eax
mov dword [esp + 0x28], edi
call fcn.10014170
mov ecx, dword [ebp + 0x200]
add esp, 8
mov edx, eax
test dword [ecx + 0x44], 0x40000
je 0x1002e3f0
mov eax, edi
mov ecx, 5
cmp eax, 5
sbb edi, edi
inc edi
cmp eax, 5
cmova eax, ecx
push eax
push edx
push str.RTSP_
call fcn.10024f80
add esp, 0xc
test eax, eax
mov eax, 2
cmovne eax, edi
jmp 0x1002e3fb
push edi
push edx
push esi
call fcn.1002fb00
add esp, 0xc
cmp eax, 2
je 0x1002ec9f
lea eax, [esi + 0x8a8]
push eax
call fcn.10014170
mov edx, eax
add esp, 4
mov dword [esp + 0x14], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x1002e873
cmp cl, 0xd
je 0x1002e873
mov ecx, dword [ebx + 0x44]
mov edi, 4
lea eax, [ecx + 1]
mov dword [ebx + 0x44], eax
test ecx, ecx
jne 0x1002e778
mov eax, dword [ebp + 0x200]
mov eax, dword [eax + 0x44]
test al, 3
je 0x1002e669
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1002e470
lea esp, [esp]
cmp al, 0x20
je 0x1002e468
cmp al, 9
jne 0x1002e470
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002e460
push 5
push 0x100a2304
push edi
call fcn.1006af30
add esp, 0xc
test eax, eax
jne 0x1002e524
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x1002e563
sub al, 0x32
cmp al, 1
ja 0x1002ecd3
mov al, byte [edi + 6]
cmp al, 0x20
je 0x1002e4aa
cmp al, 9
jne 0x1002e524
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 0x1002e524
cmp cl, 0x39
jg 0x1002e524
mov al, byte [edi + 8]
mov byte [esp + 0x20], al
cmp al, 0x30
jl 0x1002e524
cmp al, 0x39
jg 0x1002e524
mov al, byte [edi + 9]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1002e524
cmp al, 0x39
jg 0x1002e524
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x20]
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 0x1002e616
cmp al, 9
je 0x1002e616
cmp al, 0xa
jl 0x1002e524
cmp al, 0xd
jle 0x1002e616
lea edi, [esi + 0x8a8]
push edi
call fcn.10014160
add esp, 4
push eax
push edi
call fcn.10014170
add esp, 4
push eax
push esi
call fcn.1002fb00
add esp, 0xc
cmp eax, 1
jne 0x1002ed6a
mov dword [ebx + 0x50], 0xc8
mov byte [ebp + 0x471], 0xa
jmp 0x1002e763
cmp byte [edi + 6], 0x2e
jne 0x1002ed42
mov al, byte [edi + 7]
cmp al, 0x30
je 0x1002e57c
cmp al, 0x31
jne 0x1002ed42
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x1002e58d
cmp cl, 9
jne 0x1002ed42
mov cl, byte [edi + 9]
movsx edx, al
sub edx, 0x26
mov dword [esp + 0x18], edx
cmp cl, 0x30
jl 0x1002ed42
cmp cl, 0x39
jg 0x1002ed42
mov al, byte [edi + 0xa]
mov byte [esp + 0x20], al
cmp al, 0x30
jl 0x1002ed42
cmp al, 0x39
jg 0x1002ed42
mov al, byte [edi + 0xb]
mov byte [esp + 0x13], al
cmp al, 0x30
jl 0x1002ed42
cmp al, 0x39
jg 0x1002ed42
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [esp + 0x20]
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 + 0xc]
cmp al, 0x20
je 0x1002e616
cmp al, 9
je 0x1002e616
cmp al, 0xa
jl 0x1002ed42
cmp al, 0xd
jg 0x1002ed42
cmp dword [ebx + 0x50], 0x64
jl 0x1002ed27
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x1002ecee
mov byte [ebp + 0x471], dl
cmp dword [ebx + 0x6c], 3
jne 0x1002e64b
cmp dl, 0x14
je 0x1002e64b
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.10020260
add esp, 8
cmp byte [ebp + 0x471], 0x14
jae 0x1002e763
mov eax, dword [ebp + 0x440]
mov dword [eax], 0xffffffff
jmp 0x1002e763
test eax, 0x40000
je 0x1002ed6a
mov al, byte [edx]
mov edi, edx
test al, al
je 0x1002e690
lea esp, [esp]
cmp al, 0x20
je 0x1002e688
cmp al, 9
jne 0x1002e690
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002e680
push 5
push str.RTSP_
push edi
call fcn.1006af30
add esp, 0xc
test eax, eax
jne 0x1002ed6a
mov al, byte [edi + 5]
cmp al, 0x30
jl 0x1002ed5d
cmp al, 0x39
jg 0x1002ed5d
cmp byte [edi + 6], 0x2e
jne 0x1002ed5d
mov al, byte [edi + 7]
cmp al, 0x30
jl 0x1002ed5d
cmp al, 0x39
jg 0x1002ed5d
mov al, byte [edi + 8]
cmp al, 0x20
je 0x1002e6e7
cmp al, 9
jne 0x1002ed5d
mov al, byte [edi + 9]
cmp al, 0x30
jl 0x1002ed5d
cmp al, 0x39
jg 0x1002ed5d
mov dh, byte [edi + 0xa]
cmp dh, 0x30
jl 0x1002ed5d
cmp dh, 0x39
jg 0x1002ed5d
mov dl, byte [edi + 0xb]
cmp dl, 0x30
jl 0x1002ed5d
cmp dl, 0x39
jg 0x1002ed5d
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 0x1002e75c
cmp al, 9
je 0x1002e75c
cmp al, 0xa
jl 0x1002ed5d
cmp al, 0xd
jg 0x1002ed5d
mov byte [ebp + 0x471], 0xb
push ebp
push esi
call fcn.1002f6d0
add esp, 8
test eax, eax
jne 0x1002ec97
lea edi, [eax + 0xc]
push esi
call fcn.100308c0
add esp, 4
test eax, eax
jne 0x1002ec97
push dword [esp + 0x14]
push ebp
push esi
call fcn.1002d220
add esp, 0xc
test eax, eax
jne 0x1002ec97
mov eax, 0x51eb851f
imul dword [ebx + 0x50]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x1002e7b9
or edi, 0x20
lea eax, [esi + 0x8a8]
push eax
call fcn.10014160
push eax
push dword [esp + 0x1c]
push 1
push esi
call fcn.10020100
lea eax, [esi + 0x8a8]
push eax
call fcn.10014160
push eax
push dword [esp + 0x30]
push edi
push esi
call fcn.10020b30
add esp, 0x28
test eax, eax
jne 0x1002ec97
lea eax, [esi + 0x8a8]
push eax
call fcn.10014160
mov ecx, eax
mov edi, 0x4b000
add esp, 4
cmp ecx, edi
jae 0x1002e846
add dword [esi + 0xc4], ecx
add dword [esi + 0xdb8], ecx
mov eax, dword [esi + 0xc4]
add dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xdb8]
cmp eax, edi
ja 0x1002e84e
cmp edx, 0x5dc000
jbe 0x1002ec7a
mov eax, edx
mov edi, 0x5dc000
jmp 0x1002e84e
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
je 0x1002ec7a
push edi
push eax
push str.Too_large_response_headers:__zu____u
push esi
call fcn.10020190
add esp, 0x10
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x1002e8e3
cmp eax, 0xc7
jg 0x1002e8e3
sub eax, 0x64
je 0x1002e8b3
dec eax
je 0x1002e89d
mov byte [ebx + 0xb4], 1
mov dword [ebx + 0x44], 0
jmp 0x1002e94e
cmp dword [ebx + 0x6c], 2
je 0x1002ed7b
mov byte [ebx + 0xb4], 0
jmp 0x1002e94e
cmp dword [ebx + 0x68], 0
mov byte [ebx + 0xb4], 1
mov dword [ebx + 0x44], 0
jle 0x1002e94e
or dword [ebx + 0x54], 2
push 0
push esi
mov dword [ebx + 0x68], 0
call fcn.1000d930
add esp, 8
jmp 0x1002e94e
cmp dword [ebx + 0x6c], 2
jne 0x1002e8f4
push dword [esi + 0x7c]
call fcn.1000dac0
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xb4], 0
cmp eax, 0xffffffff
jne 0x1002e94e
cmp byte [ebx + 0xbb], 0
jne 0x1002e94e
cmp byte [ebp + 0x1e6], 0
jne 0x1002e94e
cmp byte [ebp + 0x471], 0xb
jne 0x1002e94e
mov eax, dword [ebp + 0x200]
test dword [eax + 0x44], 0x40000
jne 0x1002e94e
cmp byte [esi + 0xd52], 5
je 0x1002e94e
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.10020260
push 2
push ebp
call fcn.10021a70
add esp, 0x10
cmp byte [ebx + 0xb4], 0
jne 0x1002e968
push esi
call fcn.1002f610
add esp, 4
test eax, eax
jne 0x1002ec97
cmp byte [ebp + 0x1e6], 0
je 0x1002e9f0
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1002e987
cmp dword [ebp + 0x270], 2
je 0x1002e997
cmp eax, 0x197
jne 0x1002e9ac
cmp dword [ebp + 0x274], 2
jne 0x1002e9ac
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.10020260
add esp, 8
mov byte [esi + 0xd59], 1
cmp byte [ebp + 0x1e6], 0
je 0x1002e9f0
mov eax, dword [esi + 0xd8]
cmp eax, 0x191
jne 0x1002e9cb
cmp dword [ebp + 0x2f8], 1
je 0x1002e9db
cmp eax, 0x197
jne 0x1002e9f0
cmp dword [ebp + 0x2fc], 1
jne 0x1002e9f0
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.10020260
add esp, 8
mov byte [esi + 0xd59], 1
cmp dword [ebp + 0x2f8], 3
jne 0x1002ea0f
cmp dword [esi + 0xd8], 0x191
je 0x1002ea0f
mov dword [ebp + 0x2f8], 4
cmp dword [ebp + 0x2fc], 3
jne 0x1002ea2e
cmp dword [esi + 0xd8], 0x197
je 0x1002ea2e
mov dword [ebp + 0x2fc], 4
mov eax, 0x51eb851f
imul dword [ebx + 0x50]
lea eax, [esi + 0x8a8]
sar edx, 5
mov edi, edx
shr edi, 0x1f
dec edi
add edi, edx
neg edi
push eax
sbb edi, edi
and edi, 0xffffffe0
add edi, 0x20
or edi, 4
call fcn.10014160
add esp, 4
mov dword [esp + 0x20], eax
push eax
lea eax, [esi + 0x8a8]
push eax
call fcn.10014170
add esp, 4
push eax
push edi
push esi
call fcn.10020b30
add esp, 0x10
test eax, eax
jne 0x1002ec97
mov ecx, dword [esp + 0x20]
mov edi, 0x4b000
cmp ecx, edi
jae 0x1002eac4
add dword [esi + 0xc4], ecx
add dword [esi + 0xdb8], ecx
mov eax, dword [esi + 0xc4]
add dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xdb8]
cmp eax, edi
ja 0x1002eacc
cmp edx, 0x5dc000
jbe 0x1002ead4
mov eax, edx
mov edi, 0x5dc000
jmp 0x1002eacc
mov eax, dword [esi + 0xc4]
add eax, ecx
test eax, eax
jne 0x1002e856
push esi
call fcn.10030180
add esp, 4
test al, al
jne 0x1002ee22
mov eax, dword [ebx + 0x50]
cmp eax, 0x64
jl 0x1002eafc
cmp eax, 0xc7
jg 0x1002eafc
mov eax, dword [esi + 0xc0]
jmp 0x1002eafe
xor eax, eax
push esi
mov dword [esi + 0xc8], eax
call fcn.1002c280
add esp, 4
test eax, eax
jne 0x1002ec97
cmp dword [ebx + 0x50], 0x12c
jl 0x1002ec6d
cmp byte [ebp + 0x1f0], al
jne 0x1002ec49
cmp byte [ebp + 0x1e6], al
jne 0x1002ec49
cmp byte [esi + 0xd67], al
jne 0x1002ec52
mov al, byte [esi + 0xd52]
dec al
cmp al, 3
ja 0x1002ec49
push 0
push esi
call fcn.1000d930
add esp, 8
cmp byte [ebx + 0xb8], 0
jne 0x1002ec49
cmp dword [ebx + 0x50], 0x1a1
jne 0x1002ebe8
cmp byte [esi + 0xd5b], 0
je 0x1002ebe8
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x1002eb9e
cmp dword [ebx + 0x68], 1
jne 0x1002eb9e
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push esi
call fcn.10020260
add esp, 8
jmp 0x1002ebc3
push str.Got_HTTP_failure_417_while_sending_data
push esi
call fcn.10020260
push 2
push ebp
call fcn.10021a70
push ebp
push esi
call fcn.1002ff60
add esp, 0x18
test eax, eax
jne 0x1002ec97
push dword [esi + 0xca4]
mov byte [esi + 0xd5c], 1
call dword [0x100b9040]
push ebx
push esi
mov dword [esi + 0x110], eax
call fcn.100257b0
add esp, 0xc
jmp 0x1002ec49
cmp byte [esi + 0x6c3], 0
je 0x1002ec12
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.10020260
add esp, 8
cmp dword [ebx + 0x68], 0
jle 0x1002ec49
or dword [ebx + 0x54], 2
mov dword [ebx + 0x68], 0
jmp 0x1002ec49
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.10020260
push 2
push ebp
call fcn.10021a70
push ebx
push esi
call fcn.100257b0
add esp, 0x18
test eax, eax
jne 0x1002ec97
mov byte [ebx + 0xb8], 1
cmp byte [esi + 0xd5b], al
je 0x1002ec49
mov dword [ebx + 0x68], 3
cmp byte [esi + 0xd67], 0
je 0x1002ec6d
cmp dword [ebp + 0x21c], 0xffffffff
je 0x1002ec6d
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.10020260
add esp, 8
or dword [ebx + 0x54], 2
cmp byte [ebx + 0xb4], 0
je 0x1002edab
lea eax, [esi + 0x8a8]
push eax
call fcn.10014180
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x1002e343
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 2
push ebp
call fcn.10021a70
add esp, 8
cmp byte [esi + 0x6e5], 0
je 0x1002eeba
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov byte [ebx + 0xb4], 0
xor eax, eax
mov byte [ebx + 0xb5], 1
pop ebx
add esp, 0xc
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.10020190
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.10020190
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.10020190
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.10020190
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov byte [ebx + 0xb4], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.10020260
add esp, 8
mov dword [ebx + 0x6c], 3
mov byte [ebx + 0xb4], 1
mov eax, 1
mov dword [ebx + 0x44], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [esi + 0x148], 0
jne 0x1002edd9
mov eax, dword [ebp + 0x200]
test dword [eax + 0x44], 0x40000
je 0x1002ede0
cmp dword [esi + 0x654], 2
jne 0x1002ede0
cmp dword [ebx + 4], 0xffffffff
jg 0x1002ede0
jl 0x1002edd9
cmp dword [ebx], 0xffffffff
ja 0x1002ede0
mov byte [ebx + 0xb7], 1
cmp dword [ebx + 8], 0
jne 0x1002edf3
cmp dword [ebx + 0xc], 0
jne 0x1002edf3
mov byte [ebx + 0xb7], 1
lea edi, [esi + 0x8a8]
push edi
call fcn.10014160
add esp, 4
push eax
push edi
call fcn.10014170
add esp, 4
push eax
push 1
push esi
call fcn.10020100
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [ebx + 0x50]
push str.The_requested_URL_returned_error:__d
push esi
call fcn.10020190
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esp + 0x2c]
lea edi, [esi + 0x8a8]
push dword [esp + 0x2c]
push edi
call fcn.10014100
add esp, 0xc
test eax, eax
jne 0x1002ec97
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add dword [ecx], eax
cmp dword [ebx + 0x44], 0
jne 0x1002ec95
push edi
call fcn.10014160
add esp, 4
push eax
push edi
call fcn.10014170
add esp, 4
push eax
push ebp
push esi
call fcn.1002fbf0
add esp, 0x10
cmp eax, 2
jne 0x1002ec95
push eax
push ebp
mov word [ebx + 0xb4], 0x100
call fcn.10021a70
add esp, 8
cmp byte [esi + 0x6e5], 0
jne 0x1002ec95
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.10020190
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret