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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xd4]
lea ebx, [edi + 0x88]
push ecx
push 0xa
push eax
mov dword [ebp - 0x10], ecx
mov esi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
call fcn.009e89f0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x9b10b6
mov eax, dword [ebp - 8]
sub esi, ecx
mov edx, dword [ebp + 0x10]
dec eax
add eax, esi
lea esi, [edi + 0x8b0]
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x4c], eax
sub eax, ecx
push eax
push ecx
push esi
call fcn.0099d980
add esp, 0xc
test eax, eax
jne 0x9b08cf
cmp dword [ebx + 0x48], eax
jne 0x9b08d6
push esi
call fcn.0099d9f0
add esp, 4
push eax
push esi
call fcn.0099da00
mov esi, dword [ebp + 0xc]
add esp, 4
push eax
push esi
push edi
call fcn.009b1b00
add esp, 0x10
cmp eax, 2
jne 0x9b08d9
push eax
push esi
call fcn.009a83a0
add esp, 8
cmp byte [edi + 0x6e9], 0
je 0x9b1127
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xba], 0
cmp dword [eax], 0
je 0x9b1141
mov dword [ebx + 0x44], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
lea eax, [edi + 0x8b0]
push eax
call fcn.0099da00
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
mov cl, byte [edx]
cmp cl, 0xa
je 0x9b0ca8
cmp cl, 0xd
je 0x9b0ca8
mov ecx, dword [ebx + 0x48]
mov dword [ebp + 8], 4
lea eax, [ecx + 1]
mov dword [ebx + 0x48], eax
test ecx, ecx
jne 0x9b0c11
mov eax, dword [esi + 0x1e8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x9b0b21
mov al, byte [edx]
mov esi, edx
test al, al
je 0x9b0942
cmp al, 0x20
je 0x9b093a
cmp al, 9
jne 0x9b0942
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x9b0932
push 5
push str.HTTP_
push esi
call fcn.009f5dd0
add esp, 0xc
test eax, eax
jne 0x9b09ef
movsx ecx, byte [esi + 5]
mov eax, ecx
sub eax, 0x31
je 0x9b0a31
sub eax, 1
je 0x9b0977
sub eax, 1
jne 0x9b115c
mov al, byte [esi + 6]
cmp al, 0x20
je 0x9b0982
cmp al, 9
jne 0x9b09ef
lea edx, [ecx - 0x30]
mov cl, byte [esi + 7]
mov al, cl
lea edx, [edx + edx*4]
add edx, edx
sub al, 0x30
mov dword [ebp - 0xc], edx
cmp al, 9
ja 0x9b09ef
mov al, byte [esi + 8]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x9b09ef
mov al, byte [esi + 9]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x9b09ef
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp + 0xb]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [ebx + 0x58], ecx
mov al, byte [esi + 0xa]
cmp al, 0x20
je 0x9b0ac8
cmp al, 9
je 0x9b0ac8
cmp al, 0xa
jl 0x9b09ef
cmp al, 0xd
jle 0x9b0ac8
lea esi, [edi + 0x8b0]
push esi
call fcn.0099d9f0
add esp, 4
push eax
push esi
call fcn.0099da00
add esp, 4
push eax
push edi
call fcn.009b1a40
add esp, 0xc
cmp eax, 1
jne 0x9b11ed
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x58], 0xc8
mov byte [esi + 0x455], 0xa
jmp 0x9b0bf8
cmp byte [esi + 6], 0x2e
jne 0x9b11c7
mov al, byte [esi + 7]
cmp al, 0x30
je 0x9b0a4a
cmp al, 0x31
jne 0x9b11c7
mov cl, byte [esi + 8]
cmp cl, 0x20
je 0x9b0a5b
cmp cl, 9
jne 0x9b11c7
mov cl, byte [esi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 0xc], edx
cmp al, 9
ja 0x9b11c7
mov al, byte [esi + 0xa]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x9b11c7
mov al, byte [esi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x9b11c7
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, byte [ebp + 0xb]
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 1]
lea ecx, [ecx - 0xa68]
lea ecx, [eax + ecx*2]
mov dword [ebx + 0x58], ecx
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x9b0ac8
cmp al, 9
je 0x9b0ac8
sub al, 0xa
cmp al, 3
ja 0x9b11c7
cmp ecx, 0x64
jl 0x9b11ad
mov eax, edx
sub eax, 0xa
je 0x9b0ae1
sub eax, 1
jne 0x9b1176
mov esi, dword [ebp + 0xc]
mov byte [esi + 0x455], dl
cmp dword [ebx + 0x74], 3
jne 0x9b0b03
cmp dl, 0x14
je 0x9b0b03
push str.Lying_server__not_serving_HTTP_2
push edi
call fcn.009a7430
add esp, 8
cmp byte [esi + 0x455], 0x14
jae 0x9b0bf8
mov eax, dword [esi + 0x428]
mov dword [eax], 0xffffffff
jmp 0x9b0bf8
test eax, 0x40000
je 0x9b11ed
mov al, byte [edx]
mov esi, edx
test al, al
je 0x9b0b44
cmp al, 0x20
je 0x9b0b3c
cmp al, 9
jne 0x9b0b44
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x9b0b34
push 5
push str.RTSP_
push esi
call fcn.009f5dd0
add esp, 0xc
test eax, eax
jne 0x9b11ed
mov al, byte [esi + 5]
sub al, 0x30
cmp al, 9
ja 0x9b11e1
cmp byte [esi + 6], 0x2e
jne 0x9b11e1
mov al, byte [esi + 7]
sub al, 0x30
cmp al, 9
ja 0x9b11e1
mov al, byte [esi + 8]
cmp al, 0x20
je 0x9b0b8f
cmp al, 9
jne 0x9b11e1
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x9b11e1
mov dh, byte [esi + 0xa]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x9b11e1
mov dl, byte [esi + 0xb]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x9b11e1
movsx eax, cl
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 + 0x58], eax
mov al, byte [esi + 0xc]
cmp al, 0x20
je 0x9b0bee
cmp al, 9
je 0x9b0bee
sub al, 0xa
cmp al, 3
ja 0x9b11e1
mov esi, dword [ebp + 0xc]
mov byte [esi + 0x455], 0xb
push esi
push edi
call fcn.009b16a0
add esp, 8
test eax, eax
jne 0x9b08cf
mov dword [ebp + 8], 0xc
push edi
call fcn.009b2460
add esp, 4
test eax, eax
jne 0x9b08cf
push dword [ebp - 8]
push esi
push edi
call fcn.009af700
add esp, 0xc
test eax, eax
jne 0x9b08cf
mov eax, dword [ebx + 0x58]
sub eax, 0x64
cmp eax, 0x64
jae 0x9b0c46
or dword [ebp + 8], 0x20
lea eax, [edi + 0x8b0]
push eax
call fcn.0099d9f0
mov esi, dword [ebp - 8]
push eax
push esi
push 1
push edi
call fcn.009a72d0
lea eax, [edi + 0x8b0]
push eax
call fcn.0099d9f0
push eax
push esi
push dword [ebp + 8]
push edi
call fcn.009a7740
add esp, 0x28
test eax, eax
jne 0x9b08cf
push eax
lea eax, [edi + 0x8b0]
push eax
call fcn.0099d9f0
add esp, 4
push eax
push edi
call fcn.009ae1e0
add esp, 0xc
test eax, eax
jne 0x9b08cf
jmp 0x9b1075
mov ecx, dword [ebx + 0x58]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x9b0d16
sub ecx, 0x64
je 0x9b0ce6
sub ecx, 1
je 0x9b0cd0
mov byte [ebx + 0xba], 1
mov dword [ebx + 0x48], 0
jmp 0x9b0d81
cmp dword [ebx + 0x74], 2
je 0x9b11fd
mov byte [ebx + 0xba], 0
jmp 0x9b0d81
cmp dword [ebx + 0x70], 0
mov byte [ebx + 0xba], 1
mov dword [ebx + 0x48], 0
jle 0x9b0d81
or dword [ebx + 0x5c], 2
push 0
push edi
mov dword [ebx + 0x70], 0
call fcn.00997d30
add esp, 8
jmp 0x9b0d81
cmp dword [ebx + 0x74], 2
jne 0x9b0d27
push dword [edi + 0x7c]
call fcn.00997e10
add esp, 4
mov eax, dword [ebx]
and eax, dword [ebx + 4]
mov byte [ebx + 0xba], 0
cmp eax, 0xffffffff
jne 0x9b0d81
cmp byte [ebx + 0xbf], 0
jne 0x9b0d81
cmp byte [esi + 0x1ce], 0
jne 0x9b0d81
cmp byte [esi + 0x455], 0xb
jne 0x9b0d81
mov eax, dword [esi + 0x1e8]
test dword [eax + 0x44], 0x40000
jne 0x9b0d81
cmp byte [edi + 0xd6e], 5
je 0x9b0d81
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push edi
call fcn.009a7430
push 2
push esi
call fcn.009a83a0
add esp, 0x10
cmp byte [ebx + 0xba], 0
jne 0x9b0d9b
push edi
call fcn.009b15d0
add esp, 4
test eax, eax
jne 0x9b08cf
cmp byte [esi + 0x1ce], 0
je 0x9b0e2b
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
jne 0x9b0dc0
cmp dword [esi + 0x258], 2
je 0x9b0dd0
jmp 0x9b0de5
cmp eax, 0x197
jne 0x9b0de5
cmp dword [esi + 0x25c], 2
jne 0x9b0de5
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.009a7430
add esp, 8
mov byte [edi + 0xd75], 1
cmp byte [esi + 0x1ce], 0
je 0x9b0e2b
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
jne 0x9b0e06
cmp dword [esi + 0x2e0], 1
je 0x9b0e16
jmp 0x9b0e2b
cmp eax, 0x197
jne 0x9b0e2b
cmp dword [esi + 0x2e4], 1
jne 0x9b0e2b
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push edi
call fcn.009a7430
add esp, 8
mov byte [edi + 0xd75], 1
cmp dword [esi + 0x2e0], 3
jne 0x9b0e4a
cmp dword [edi + 0xe0], 0x191
je 0x9b0e4a
mov dword [esi + 0x2e0], 4
cmp dword [esi + 0x2e4], 3
jne 0x9b0e69
cmp dword [edi + 0xe0], 0x197
je 0x9b0e69
mov dword [esi + 0x2e4], 4
mov eax, dword [ebx + 0x58]
sub eax, 0x64
cmp eax, 0x64
lea eax, [edi + 0x8b0]
push eax
sbb esi, esi
and esi, 0x20
add esi, 4
call fcn.0099d9f0
add esp, 4
mov dword [ebp - 0xc], eax
push eax
lea eax, [edi + 0x8b0]
push eax
call fcn.0099da00
add esp, 4
push eax
push esi
push edi
call fcn.009a7740
add esp, 0x10
test eax, eax
jne 0x9b08cf
push eax
push dword [ebp - 0xc]
push edi
call fcn.009ae1e0
add esp, 0xc
test eax, eax
jne 0x9b08cf
mov esi, dword [ebx + 0x58]
push edi
call fcn.009b1fe0
add esp, 4
test al, al
jne 0x9b1294
lea eax, [esi - 0x64]
cmp eax, 0x63
ja 0x9b0ee8
mov eax, dword [edi + 0xc0]
jmp 0x9b0eea
xor eax, eax
push edi
mov dword [edi + 0xc8], eax
call fcn.009ae6f0
add esp, 4
test eax, eax
jne 0x9b08cf
cmp dword [ebx + 0x58], 0x12c
mov esi, dword [ebp + 0xc]
jl 0x9b1068
cmp byte [esi + 0x1d8], al
jne case.default.0x9b0f46
cmp byte [esi + 0x1ce], al
jne case.default.0x9b0f46
cmp byte [edi + 0xd83], al
jne 0x9b104d
movzx eax, byte [edi + 0xd6e]
dec eax
cmp eax, 3
ja case.default.0x9b0f46
jmp dword [eax*4 + 0x9b12b0]
push 0
push edi
call fcn.00997d30
add esp, 8
cmp byte [ebx + 0xbc], 0
jne case.default.0x9b0f46
cmp dword [ebx + 0x58], 0x1a1
jne 0x9b0fdf
cmp byte [edi + 0xd77], 0
je 0x9b0fdf
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
jne 0x9b0f95
cmp dword [ebx + 0x70], 1
jne 0x9b0f95
push str.Got_HTTP_failure_417_while_waiting_for_a_100
push edi
call fcn.009a7430
add esp, 8
jmp 0x9b0fba
push str.Got_HTTP_failure_417_while_sending_data
push edi
call fcn.009a7430
push 2
push esi
call fcn.009a83a0
push esi
push edi
call fcn.009b1dc0
add esp, 0x18
test eax, eax
jne 0x9b08cf
push dword [edi + 0xcc4]
mov byte [edi + 0xd78], 1
call dword [0xa3f184]
push ebx
push edi
mov dword [edi + 0x118], eax
call fcn.009b3460
add esp, 0xc
jmp case.default.0x9b0f46
cmp byte [edi + 0x6c7], 0
je 0x9b1009
push str.HTTP_error_before_end_of_send__keep_sending
push edi
call fcn.009a7430
add esp, 8
cmp dword [ebx + 0x70], 0
jle case.default.0x9b0f46
or dword [ebx + 0x5c], 2
mov dword [ebx + 0x70], 0
jmp case.default.0x9b0f46
push str.HTTP_error_before_end_of_send__stop_sending
push edi
call fcn.009a7430
push 2
push esi
call fcn.009a83a0
push ebx
push edi
call fcn.009b3460
add esp, 0x18
test eax, eax
jne 0x9b08cf
mov byte [ebx + 0xbc], 1
cmp byte [edi + 0xd77], al
je case.default.0x9b0f46
mov dword [ebx + 0x70], 3
cmp byte [edi + 0xd83], 0
je 0x9b1068
cmp dword [esi + 0x204], 0xffffffff
je 0x9b1068
push str.Keep_sending_data_to_get_tossed_away
push edi
call fcn.009a7430
add esp, 8
or dword [ebx + 0x5c], 2
cmp byte [ebx + 0xba], 0
je 0x9b122c
lea eax, [edi + 0x8b0]
push eax
call fcn.0099da10
mov esi, dword [ebx + 0x4c]
add esp, 4
cmp byte [esi], 0
je 0x9b08cd
mov eax, dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp + 8], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.009e89f0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x9b0844
push dword [ebp - 0xc]
lea esi, [edi + 0x8b0]
push dword [ebp + 8]
push esi
call fcn.0099d980
add esp, 0xc
test eax, eax
jne 0x9b08cf
cmp dword [ebx + 0x48], eax
jne 0x9b08cd
push esi
call fcn.0099d9f0
add esp, 4
push eax
push esi
call fcn.0099da00
mov esi, dword [ebp + 0xc]
add esp, 4
push eax
push esi
push edi
call fcn.009b1b00
add esp, 0x10
cmp eax, 2
jne 0x9b08cd
push eax
push esi
mov byte [ebx + 0xba], 0
mov dword [ebx + 0x44], eax
call fcn.009a83a0
add esp, 8
cmp byte [edi + 0x6e9], 0
jne 0x9b08cd
push str.Received_HTTP_0.9_when_not_allowed
push edi
call fcn.009a7370
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x44], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
pop edi
mov dword [ebx + 0x4c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push edi
call fcn.009a7370
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x66666667
imul edx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0xc]
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 edi
call fcn.009a7370
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_response_code_in_HTTP_response
push edi
call fcn.009a7370
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_1_subversion_in_response
push edi
call fcn.009a7370
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov byte [ebx + 0xba], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push edi
call fcn.009a7430
add esp, 8
mov dword [ebx + 0x74], 3
mov byte [ebx + 0xba], 1
mov eax, 1
mov dword [ebx + 0x48], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x14c], 0
mov ecx, dword [ebp + 0x14]
jne 0x9b125d
mov eax, dword [esi + 0x1e8]
test dword [eax + 0x44], 0x40000
je 0x9b1260
cmp dword [edi + 0x65c], 2
jne 0x9b1260
cmp dword [ebx + 4], 0xffffffff
jg 0x9b1260
jl 0x9b125d
cmp dword [ebx], 0xffffffff
ja 0x9b1260
mov byte [ecx], 1
cmp dword [ebx + 8], 0
jne 0x9b1271
cmp dword [ebx + 0xc], 0
jne 0x9b1271
mov byte [ecx], 1
jmp 0x9b1276
cmp byte [ecx], 0
je 0x9b127a
and dword [ebx + 0x5c], 0xfffffffe
push dword [ebp - 0xc]
push dword [ebp + 8]
push 1
push edi
call fcn.009a72d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.The_requested_URL_returned_error:__d
push edi
call fcn.009a7370
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret