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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [eax]
lea ebx, [esi + 0x88]
mov eax, dword [ebx + 0x50]
push edi
push edx
push 0xa
push eax
mov dword [ebp - 0x14], edx
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], edx
call fcn.00a2a980
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x9f53ad
nop
mov eax, dword [ebx + 0x50]
sub edi, ecx
mov edx, dword [ebp + 0x10]
dec edi
add eax, edi
lea edi, [esi + 0x8b8]
mov dword [edx], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x50], eax
sub eax, ecx
push eax
push ecx
push edi
call fcn.009e2440
add esp, 0xc
test eax, eax
jne 0x9f4a3b
cmp dword [ebx + 0x4c], eax
jne 0x9f4a42
push edi
call fcn.009e24b0
add esp, 4
push eax
push edi
call fcn.009e24c0
mov edi, dword [ebp + 0xc]
add esp, 4
push eax
push edi
push esi
call fcn.009f5b40
add esp, 0x10
cmp eax, 2
jne 0x9f4a45
push eax
push edi
call fcn.009ec900
add esp, 8
cmp byte [esi + 0x6f1], 0
je 0x9f542a
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xc2], 0
cmp dword [eax], 0
je 0x9f523f
mov dword [ebx + 0x48], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24c0
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
mov al, byte [edx]
cmp al, 0xa
je 0x9f4e43
cmp al, 0xd
je 0x9f4e43
mov ecx, dword [ebx + 0x4c]
mov dword [ebp + 8], 2
lea eax, [ecx + 1]
mov dword [ebx + 0x4c], eax
test ecx, ecx
jne 0x9f4d80
mov eax, dword [edi + 0x1e8]
mov eax, dword [eax + 0x44]
test al, 3
je 0x9f4c8b
mov al, byte [edx]
mov edi, edx
test al, al
je 0x9f4ab0
nop dword [eax]
cmp al, 0x20
je 0x9f4aa8
cmp al, 9
jne 0x9f4ab0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x9f4aa0
push 5
push str.HTTP_
push edi
call fcn.00a39160
add esp, 0xc
test eax, eax
jne 0x9f4b5a
mov cl, byte [edi + 5]
mov al, cl
cmp al, 0x31
je 0x9f4b9c
sub al, 0x32
cmp al, 1
ja 0x9f525a
mov al, byte [edi + 6]
cmp al, 0x20
je 0x9f4aea
cmp al, 9
jne 0x9f4b5a
movsx eax, cl
mov cl, byte [edi + 7]
sub eax, 0x30
lea edx, [eax + eax*4]
mov al, cl
add edx, edx
sub al, 0x30
mov dword [ebp - 0x10], edx
cmp al, 9
ja 0x9f4b5a
mov al, byte [edi + 8]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x9f4b5a
mov al, byte [edi + 9]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x9f4b5a
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 + 0x60], ecx
mov al, byte [edi + 0xa]
cmp al, 0x20
je 0x9f4c33
cmp al, 9
je 0x9f4c33
cmp al, 0xa
jl 0x9f4b5a
cmp al, 0xd
jle 0x9f4c33
lea edi, [esi + 0x8b8]
push edi
call fcn.009e24b0
add esp, 4
push eax
push edi
call fcn.009e24c0
add esp, 4
push eax
push esi
call fcn.009f5a80
add esp, 0xc
cmp eax, 1
jne 0x9f52eb
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x60], 0xc8
mov byte [edi + 0x455], 0xa
jmp 0x9f4d64
cmp byte [edi + 6], 0x2e
jne 0x9f52c5
mov al, byte [edi + 7]
cmp al, 0x30
je 0x9f4bb5
cmp al, 0x31
jne 0x9f52c5
mov cl, byte [edi + 8]
cmp cl, 0x20
je 0x9f4bc6
cmp cl, 9
jne 0x9f52c5
mov cl, byte [edi + 9]
movsx edx, al
mov al, cl
sub edx, 0x26
sub al, 0x30
mov dword [ebp - 0x10], edx
cmp al, 9
ja 0x9f52c5
mov al, byte [edi + 0xa]
mov byte [ebp + 0xb], al
sub al, 0x30
cmp al, 9
ja 0x9f52c5
mov al, byte [edi + 0xb]
mov byte [ebp - 1], al
sub al, 0x30
cmp al, 9
ja 0x9f52c5
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 + 0x60], ecx
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x9f4c33
cmp al, 9
je 0x9f4c33
sub al, 0xa
cmp al, 3
ja 0x9f52c5
cmp ecx, 0x64
jl 0x9f52ab
lea eax, [edx - 0xa]
cmp eax, 1
ja 0x9f5274
mov edi, dword [ebp + 0xc]
mov al, dl
mov byte [edi + 0x455], dl
cmp dword [ebx + 0x7c], 3
jne 0x9f4c72
cmp dl, 0x14
je 0x9f4c72
push str.Lying_server__not_serving_HTTP_2
push esi
call fcn.009ebd30
mov al, byte [edi + 0x455]
add esp, 8
cmp al, 0x14
jae 0x9f4d64
mov eax, dword [edi + 0x428]
mov dword [eax], 0xffffffff
jmp 0x9f4d64
test eax, 0x40000
je 0x9f52eb
mov al, byte [edx]
mov edi, edx
test al, al
je 0x9f4cb0
nop
cmp al, 0x20
je 0x9f4ca8
cmp al, 9
jne 0x9f4cb0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x9f4ca0
push 5
push str.RTSP_
push edi
call fcn.00a39160
add esp, 0xc
test eax, eax
jne 0x9f52eb
mov al, byte [edi + 5]
sub al, 0x30
cmp al, 9
ja 0x9f52df
cmp byte [edi + 6], 0x2e
jne 0x9f52df
mov al, byte [edi + 7]
sub al, 0x30
cmp al, 9
ja 0x9f52df
mov al, byte [edi + 8]
cmp al, 0x20
je 0x9f4cfb
cmp al, 9
jne 0x9f52df
mov cl, byte [edi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x9f52df
mov dl, byte [edi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x9f52df
mov dh, byte [edi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x9f52df
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [ebx + 0x60], eax
mov al, byte [edi + 0xc]
cmp al, 0x20
je 0x9f4d5a
cmp al, 9
je 0x9f4d5a
sub al, 0xa
cmp al, 3
ja 0x9f52df
mov edi, dword [ebp + 0xc]
mov byte [edi + 0x455], 0xb
push edi
push esi
call fcn.009f56e0
add esp, 8
test eax, eax
jne 0x9f4a3b
mov ebx, 6
mov dword [ebp + 8], ebx
jmp 0x9f4d85
mov ebx, 2
push esi
call fcn.009f6450
add esp, 4
test eax, eax
jne 0x9f4a3b
push dword [ebp - 8]
push edi
push esi
call fcn.009f38f0
add esp, 0xc
test eax, eax
jne 0x9f4a3b
mov edi, dword [esi + 0xe8]
or ebx, 1
cmp byte [esi + 0x6d3], al
lea eax, [esi + 0x8b8]
push eax
cmove ebx, dword [ebp + 8]
call fcn.009e24b0
push eax
push dword [ebp - 8]
push 1
push esi
call fcn.009ebbe0
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24b0
push eax
push dword [ebp - 8]
lea eax, [edi - 0x64]
mov ecx, ebx
or ecx, 0x10
cmp eax, 0x64
cmovae ecx, ebx
push ecx
push esi
call fcn.009ebdb0
add esp, 0x28
test eax, eax
jne 0x9f4a3b
lea ebx, [esi + 0x8b8]
push ebx
call fcn.009e24b0
add dword [esi + 0xd98], eax
push ebx
adc dword [esi + 0xd9c], 0
call fcn.009e24b0
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x88]
add esp, 8
add dword [esi + 0xa8], eax
adc dword [esi + 0xac], 0
jmp 0x9f51f6
mov ecx, dword [ebx + 0x60]
lea eax, [ecx - 0x64]
cmp eax, 0x63
ja 0x9f4ead
sub ecx, 0x64
je 0x9f4e81
sub ecx, 1
je 0x9f4e6b
mov byte [ebx + 0xc2], 1
mov dword [ebx + 0x4c], 0
jmp 0x9f4f09
cmp dword [ebx + 0x7c], 2
je 0x9f52fb
mov byte [ebx + 0xc2], 0
jmp 0x9f4f09
cmp dword [ebx + 0x78], 0
mov byte [ebx + 0xc2], 1
mov dword [ebx + 0x4c], 0
jle 0x9f4f09
or dword [ebx + 0x64], 2
push 0
push esi
mov dword [ebx + 0x78], 0
call fcn.009dc9d0
add esp, 8
jmp 0x9f4f09
mov eax, dword [ebx]
xor cl, cl
and eax, dword [ebx + 4]
mov byte [ebx + 0xc2], 0
cmp eax, 0xffffffff
jne 0x9f4f0f
cmp byte [ebx + 0xc7], cl
jne 0x9f4f0f
mov al, byte [edi + 0x1ce]
test al, al
jne 0x9f4f0f
cmp byte [edi + 0x455], 0xb
jne 0x9f4f0f
mov eax, dword [edi + 0x1e8]
test dword [eax + 0x44], 0x40000
jne 0x9f4f0f
cmp byte [esi + 0xd5e], 5
je 0x9f4f0f
push str.no_chunk__no_close__no_size._Assume_close_to_signal_end
push esi
call fcn.009ebd30
push 2
push edi
call fcn.009ec900
add esp, 0x10
mov cl, byte [ebx + 0xc2]
test cl, cl
jne 0x9f4f24
push esi
call fcn.009f5610
add esp, 4
test eax, eax
jne 0x9f4a3b
mov cl, byte [edi + 0x1ce]
mov al, cl
test cl, cl
je 0x9f4f75
mov edx, dword [esi + 0xe8]
cmp edx, 0x191
jne 0x9f4f47
cmp dword [edi + 0x258], 2
je 0x9f4f5a
mov al, cl
cmp edx, 0x197
jne 0x9f4f75
cmp dword [edi + 0x25c], 2
jne 0x9f4f75
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.009ebd30
mov byte [esi + 0xd65], 1
add esp, 8
mov al, byte [edi + 0x1ce]
test al, al
je 0x9f4fb6
mov eax, dword [esi + 0xe8]
cmp eax, 0x191
jne 0x9f4f91
cmp dword [edi + 0x2e0], 1
je 0x9f4fa1
jmp 0x9f4fb6
cmp eax, 0x197
jne 0x9f4fb6
cmp dword [edi + 0x2e4], 1
jne 0x9f4fb6
push str.Connection_closure_while_negotiating_auth__HTTP_1.0__
push esi
call fcn.009ebd30
add esp, 8
mov byte [esi + 0xd65], 1
cmp dword [edi + 0x2e0], 3
jne 0x9f4fd5
cmp dword [esi + 0xe8], 0x191
je 0x9f4fd5
mov dword [edi + 0x2e0], 4
cmp dword [edi + 0x2e4], 3
jne 0x9f4ff4
cmp dword [esi + 0xe8], 0x197
je 0x9f4ff4
mov dword [edi + 0x2e4], 4
mov eax, dword [ebx + 0x60]
sub eax, 0x64
cmp eax, 0x64
sbb edi, edi
xor eax, eax
and edi, 0x10
cmp byte [esi + 0x6d3], al
setne al
add eax, 2
or edi, eax
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24b0
add esp, 4
mov dword [ebp - 0x10], eax
push eax
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24c0
add esp, 4
push eax
push edi
push esi
call fcn.009ebdb0
add esp, 0x10
test eax, eax
jne 0x9f4a3b
mov eax, dword [ebp - 0x10]
cdq
mov edi, eax
mov eax, edx
add dword [esi + 0xd98], edi
push esi
adc dword [esi + 0xd9c], eax
add edi, dword [esi + 0xa8]
mov dword [esi + 0xa8], edi
adc eax, dword [esi + 0xac]
mov dword [ebp - 8], eax
mov dword [esi + 0xac], eax
call fcn.009f5ff0
add esp, 4
test al, al
mov eax, dword [ebx + 0x60]
jne 0x9f5392
add eax, 0xffffff9c
cmp eax, 0x63
ja 0x9f5097
mov eax, dword [ebp - 8]
jmp 0x9f50a5
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
push esi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], eax
call fcn.009f2910
add esp, 4
test eax, eax
jne 0x9f4a3b
cmp dword [ebx + 0x60], 0x12c
mov edi, dword [ebp + 0xc]
jl 0x9f51e9
cmp byte [edi + 0x1d8], al
jne 0x9f51c5
cmp byte [edi + 0x1ce], al
jne 0x9f51c5
cmp byte [esi + 0xd73], al
jne 0x9f51ce
mov al, byte [esi + 0xd5e]
dec al
cmp al, 3
ja 0x9f51c5
push 0
push esi
call fcn.009dc9d0
add esp, 8
cmp byte [ebx + 0xc4], 0
jne 0x9f51c5
cmp dword [ebx + 0x60], 0x1a1
jne 0x9f5160
cmp byte [esi + 0xd67], 0
je 0x9f5160
push str.Got_417_while_waiting_for_a_100
push esi
call fcn.009ebd30
push dword [esi + 0xcbc]
mov byte [esi + 0xd68], 1
call dword [0xa880bc]
push ebx
push esi
mov dword [esi + 0x120], eax
call fcn.009f7420
add esp, 0x14
jmp 0x9f51c5
cmp byte [esi + 0x6cf], 0
je 0x9f518a
push str.HTTP_error_before_end_of_send__keep_sending
push esi
call fcn.009ebd30
add esp, 8
cmp dword [ebx + 0x78], 0
jle 0x9f51c5
or dword [ebx + 0x64], 2
mov dword [ebx + 0x78], 0
jmp 0x9f51c5
push str.HTTP_error_before_end_of_send__stop_sending
push esi
call fcn.009ebd30
push 2
push edi
call fcn.009ec900
push ebx
push esi
call fcn.009f7420
add esp, 0x18
test eax, eax
jne 0x9f4a3b
mov byte [ebx + 0xc4], 1
cmp byte [esi + 0xd67], al
je 0x9f51c5
mov dword [ebx + 0x78], 3
cmp byte [esi + 0xd73], 0
je 0x9f51e9
cmp dword [edi + 0x204], 0xffffffff
je 0x9f51e9
push str.Keep_sending_data_to_get_tossed_away
push esi
call fcn.009ebd30
add esp, 8
or dword [ebx + 0x64], 2
cmp byte [ebx + 0xc2], 0
je 0x9f532a
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24d0
mov eax, dword [ebx + 0x50]
add esp, 4
cmp byte [eax], 0
je 0x9f4a39
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
mov eax, dword [eax]
push eax
push 0xa
push ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
call fcn.00a2a980
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x9f53b0
mov edi, dword [ebp - 8]
jmp 0x9f49b0
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x48], 2
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
pop edi
mov dword [ebx + 0x50], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unsupported_HTTP_version_in_response
push esi
call fcn.009ebc70
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 - 0x10]
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.009ebc70
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 esi
call fcn.009ebc70
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 esi
call fcn.009ebc70
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 + 0xc2], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Received_101__Switching_to_HTTP_2
push esi
call fcn.009ebd30
add esp, 8
mov dword [ebx + 0x7c], 3
mov byte [ebx + 0xc2], 1
mov eax, 1
mov dword [ebx + 0x4c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x154], 0
mov ecx, dword [ebp + 0x14]
jne 0x9f535b
mov eax, dword [edi + 0x1e8]
test dword [eax + 0x44], 0x40000
je 0x9f535e
cmp dword [esi + 0x664], 2
jne 0x9f535e
cmp dword [ebx + 4], 0xffffffff
jg 0x9f535e
jl 0x9f535b
cmp dword [ebx], 0xffffffff
ja 0x9f535e
mov byte [ecx], 1
cmp dword [ebx + 8], 0
jne 0x9f536f
cmp dword [ebx + 0xc], 0
jne 0x9f536f
mov byte [ecx], 1
jmp 0x9f5374
cmp byte [ecx], 0
je 0x9f5378
and dword [ebx + 0x64], 0xfffffffe
push dword [ebp - 0x10]
push dword [ebp + 8]
push 1
push esi
call fcn.009ebbe0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.The_requested_URL_returned_error:__d
push esi
call fcn.009ebc70
add esp, 0xc
mov eax, 0x16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x10]
lea eax, [esi + 0x8b8]
push dword [ebp + 8]
push eax
call fcn.009e2440
add esp, 0xc
test eax, eax
jne 0x9f4a3b
cmp dword [ebx + 0x4c], eax
jne 0x9f4a39
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24b0
add esp, 4
push eax
lea eax, [esi + 0x8b8]
push eax
call fcn.009e24c0
add esp, 4
push eax
push edi
push esi
call fcn.009f5b40
add esp, 0x10
cmp eax, 2
jne 0x9f4a39
push eax
push edi
mov byte [ebx + 0xc2], 0
mov dword [ebx + 0x48], eax
call fcn.009ec900
add esp, 8
cmp byte [esi + 0x6f1], 0
jne 0x9f4a39
push str.Received_HTTP_0.9_when_not_allowed
push esi
call fcn.009ebc70
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret